pub trait FrameBufferCopy {
// Required methods
fn copy_plane_to_buffer(
&self,
plane_index: usize,
dst: &mut [u8],
dst_linesize: usize,
);
fn copy_frame_to_buffer<'a, IM: Iterator<Item = &'a mut [u8]>, IU: Iterator<Item = usize>>(
&self,
dst: IM,
dst_linesizes: IU,
);
fn copy_from_slice<'a, I: Iterator<Item = &'a [u8]>, IU: Iterator<Item = usize>>(
&mut self,
src: I,
src_linesize: IU,
);
}
Expand description
A series of methods to copy the content of a frame from or to a buffer.
Required Methods§
Sourcefn copy_plane_to_buffer(
&self,
plane_index: usize,
dst: &mut [u8],
dst_linesize: usize,
)
fn copy_plane_to_buffer( &self, plane_index: usize, dst: &mut [u8], dst_linesize: usize, )
Copies a determined plane to an output buffer.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.