pub struct YuvFrame {
pub width: usize,
pub height: usize,
pub y: Vec<u8>,
pub u: Vec<u8>,
pub v: Vec<u8>,
}Expand description
A raw planar YUV 4:2:0 frame (8-bit). Plane strides equal their widths; chroma planes are half-resolution in each dimension.
Fields§
§width: usizeLuma width in pixels.
height: usizeLuma height in pixels.
y: Vec<u8>Y plane, width * height bytes.
u: Vec<u8>Cb plane, (width/2) * (height/2) bytes.
v: Vec<u8>Cr plane, (width/2) * (height/2) bytes.
Implementations§
Trait Implementations§
impl Eq for YuvFrame
impl StructuralPartialEq for YuvFrame
Auto Trait Implementations§
impl Freeze for YuvFrame
impl RefUnwindSafe for YuvFrame
impl Send for YuvFrame
impl Sync for YuvFrame
impl Unpin for YuvFrame
impl UnsafeUnpin for YuvFrame
impl UnwindSafe for YuvFrame
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