pub struct YuvPlanes {
pub y: Vec<u8>,
pub u: Vec<u8>,
pub v: Vec<u8>,
pub y_width: u32,
pub y_height: u32,
pub uv_width: u32,
pub uv_height: u32,
}Expand description
Decoded YUV 4:2:0 planar image data.
Contains separate Y, U, and V planes at their native resolutions. Y is full resolution, U and V are half resolution in each dimension.
Fields§
§y: Vec<u8>Luma plane (full resolution).
u: Vec<u8>Chroma blue plane (half resolution in each dimension).
v: Vec<u8>Chroma red plane (half resolution in each dimension).
y_width: u32Width of the luma plane in pixels.
y_height: u32Height of the luma plane in pixels.
uv_width: u32Width of each chroma plane in pixels.
uv_height: u32Height of each chroma plane in pixels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YuvPlanes
impl RefUnwindSafe for YuvPlanes
impl Send for YuvPlanes
impl Sync for YuvPlanes
impl Unpin for YuvPlanes
impl UnsafeUnpin for YuvPlanes
impl UnwindSafe for YuvPlanes
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