pub enum FrameData {
Host(Vec<u8>),
Dmabuf(DmabufFrame),
CvPixelBuffer(CvPixelBufferHandle),
D3D11Texture(D3D11TextureHandle),
}Expand description
Where a frame’s pixels live.
Every backend currently produces Host (a plain CPU byte buffer); the
native-handle variants are reserved for opt-in zero-copy support.
Variants§
Host(Vec<u8>)
CPU memory, rows packed at VideoFrame::stride bytes.
Dmabuf(DmabufFrame)
CvPixelBuffer(CvPixelBufferHandle)
D3D11Texture(D3D11TextureHandle)
Trait Implementations§
impl StructuralPartialEq for FrameData
Auto Trait Implementations§
impl Freeze for FrameData
impl RefUnwindSafe for FrameData
impl Send for FrameData
impl Sync for FrameData
impl Unpin for FrameData
impl UnsafeUnpin for FrameData
impl UnwindSafe for FrameData
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