pub struct FrameSourceRawVideoAdapter<S> { /* private fields */ }Expand description
Adapter that exposes a Source of owned frames as a raw-frame callback.
This is useful at API boundaries where frames are naturally produced by a pipeline stage, but an encoder wants to pull one raw frame into a caller supplied buffer.
Implementations§
Source§impl<S> FrameSourceRawVideoAdapter<S>
impl<S> FrameSourceRawVideoAdapter<S>
Sourcepub fn new(source: S, info: FrameInfo) -> Self
pub fn new(source: S, info: FrameInfo) -> Self
Create an adapter for a source that must emit frames matching info.
Sourcepub const fn info(&self) -> FrameInfo
pub const fn info(&self) -> FrameInfo
Return the raw frame metadata expected from the wrapped source.
Sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Consume the adapter and return the wrapped source.
Trait Implementations§
Source§impl<S> RawVideoFrameSource for FrameSourceRawVideoAdapter<S>
impl<S> RawVideoFrameSource for FrameSourceRawVideoAdapter<S>
Auto Trait Implementations§
impl<S> Forget for FrameSourceRawVideoAdapter<S>
impl<S> Freeze for FrameSourceRawVideoAdapter<S>where
S: Freeze,
impl<S> RefUnwindSafe for FrameSourceRawVideoAdapter<S>where
S: RefUnwindSafe,
impl<S> Send for FrameSourceRawVideoAdapter<S>where
S: Send,
impl<S> Sync for FrameSourceRawVideoAdapter<S>where
S: Sync,
impl<S> Unpin for FrameSourceRawVideoAdapter<S>where
S: Unpin,
impl<S> UnsafeUnpin for FrameSourceRawVideoAdapter<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FrameSourceRawVideoAdapter<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more