pub trait FrameBuffer: Send + Sync {
    fn linesize(&self, idx: usize) -> Result<usize, FrameError>;
    fn count(&self) -> usize;
    fn as_slice_inner(&self, idx: usize) -> Result<&[u8], FrameError>;
    fn as_mut_slice_inner(&mut self, idx: usize) -> Result<&mut [u8], FrameError>;
}
Expand description

A series of methods to interact with the planes of frame.

Required Methods

Returns the linesize (stride) of the idx-th frame plane.

Counts the number of frame planes.

Returns an immutable buffer with the data associated to the idx-th frame plane.

Returns a mutable buffer with the data associated to the idx-th frame plane.

Trait Implementations

Formats the value using the given formatter. Read more

Returns an immutable slice of datatype T with the data associated to the idx-th frame plane. Read more

Returns a mutable slice of datatype T with the data associated to the idx-th frame plane. Read more

Returns an immutable slice of datatype T with the data associated to the idx-th frame plane. Read more

Returns a mutable slice of datatype T with the data associated to the idx-th frame plane. Read more

Returns an immutable slice of datatype T with the data associated to the idx-th frame plane. Read more

Returns a mutable slice of datatype T with the data associated to the idx-th frame plane. Read more

Implementors