pub struct YuvPlaneLayout {
pub chroma_shift_x: u8,
pub chroma_shift_y: u8,
pub bit_depth: u8,
pub interleaved_chroma: bool,
pub msb_aligned: bool,
}Expand description
How a planar or semi-planar YCbCr pixel format stores its samples, as
yuv_layout reads it from FFmpeg’s descriptor.
Fields§
§chroma_shift_x: u8Log2 of the horizontal chroma subsampling.
chroma_shift_y: u8Log2 of the vertical chroma subsampling.
bit_depth: u8Significant bits per sample; above eight, samples are u16s.
interleaved_chroma: boolWhether U and V interleave in the second plane.
msb_aligned: boolWhether samples sit in the high bits of their u16.
Implementations§
Source§impl YuvPlaneLayout
impl YuvPlaneLayout
Sourcepub const fn bytes_per_sample(self) -> u32
pub const fn bytes_per_sample(self) -> u32
Bytes per stored sample.
Trait Implementations§
Source§impl Clone for YuvPlaneLayout
impl Clone for YuvPlaneLayout
impl Copy for YuvPlaneLayout
Source§impl Debug for YuvPlaneLayout
impl Debug for YuvPlaneLayout
impl Eq for YuvPlaneLayout
Source§impl PartialEq for YuvPlaneLayout
impl PartialEq for YuvPlaneLayout
impl StructuralPartialEq for YuvPlaneLayout
Auto Trait Implementations§
impl Freeze for YuvPlaneLayout
impl RefUnwindSafe for YuvPlaneLayout
impl Send for YuvPlaneLayout
impl Sync for YuvPlaneLayout
impl Unpin for YuvPlaneLayout
impl UnsafeUnpin for YuvPlaneLayout
impl UnwindSafe for YuvPlaneLayout
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