pub struct Frame {
pub kind: MediaKind,
pub buf: Box<dyn FrameBuffer>,
pub t: TimeInfo,
}
Expand description
Decoded frame information.
Fields§
§kind: MediaKind
The kind of frame (audio or video).
buf: Box<dyn FrameBuffer>
Frame buffer containing the data associated to each plane.
t: TimeInfo
Timestamp information associated to a frame.
Implementations§
Trait Implementations§
Source§impl FrameBufferCopy for Frame
impl FrameBufferCopy for Frame
Source§fn copy_from_slice<'a, I, IU>(&mut self, src: I, src_linesize: IU)
fn copy_from_slice<'a, I, IU>(&mut self, src: I, src_linesize: IU)
Copies from a slice into a frame.
Auto Trait Implementations§
impl Freeze for Frame
impl !RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl !UnwindSafe for Frame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more