Trait av_data::frame::FrameBufferCopy
source · [−]pub trait FrameBufferCopy {
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.
Copies a frame to an output buffer.