ExternalBacking

Trait ExternalBacking 

Source
pub trait ExternalBacking: Send + Sync {
    // Required method
    fn plane_data(&self, index: usize) -> Option<&[u8]>;
}
Expand description

External backing for frames when zero-copy sharing external memory.

Implementations can map DMA buffers or other shared memory into slices.

Required Methods§

Source

fn plane_data(&self, index: usize) -> Option<&[u8]>

Borrow a plane by index; lifetime must be tied to self.

Implementors§