pub struct Frame {
pub kind: MediaKind,
pub buf: Box<dyn FrameBuffer>,
pub t: TimeInfo,
}Expand description
Decoded frame information.
Fields
kind: MediaKindThe kind of frame (audio or video).
buf: Box<dyn FrameBuffer>Frame buffer containing the data associated to each plane.
t: TimeInfoTimestamp information associated to a frame.
Implementations
Trait Implementations
sourceimpl FrameBufferCopy for Frame
impl FrameBufferCopy for Frame
sourcefn copy_from_slice<'a, I, IU>(&mut self, src: I, src_linesize: IU) where
I: Iterator<Item = &'a [u8]>,
IU: Iterator<Item = usize>,
fn copy_from_slice<'a, I, IU>(&mut self, src: I, src_linesize: IU) where
I: Iterator<Item = &'a [u8]>,
IU: Iterator<Item = usize>,
Copies from a slice into a frame.
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.
Auto Trait Implementations
impl !RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl !UnwindSafe for Frame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more