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
Source§fn clone(&self) -> VideoFrame
fn clone(&self) -> VideoFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Send for VideoFrame
impl Sync for VideoFrame
impl Unpin for VideoFrame
impl UnsafeUnpin for VideoFrame
impl UnwindSafe for VideoFrame
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