pub struct VideoFrame {
pub width: u32,
pub height: u32,
pub format: PixelFormat,
pub planes: Vec<Vec<u8>>,
pub strides: Vec<usize>,
pub pts: Option<i64>,
}Expand description
A decoded raw video frame.
Fields§
§width: u32§height: u32§format: PixelFormat§planes: Vec<Vec<u8>>Plane buffers (e.g. Y, U, V for planar YUV). Packed formats use one plane.
strides: Vec<usize>Bytes per row for each plane (the “stride”; may exceed width for alignment).
pts: Option<i64>Presentation timestamp in the source stream’s time base. None if unset.
Trait Implementations§
Source§impl Clone for VideoFrame
impl Clone for VideoFrame
Auto Trait Implementations§
impl Forget for VideoFrame
impl Freeze for VideoFrame
impl Move for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Send for VideoFramewhere
RawVecInner: Send,
impl Sync for VideoFramewhere
RawVecInner: Sync,
impl Unpin for VideoFrame
impl UnsafeUnpin for VideoFramewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Vec<u8>>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for VideoFramewhere
RawVecInner: UnwindSafe,
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