pub struct SpecFrame {
pub width: u32,
pub height: u32,
pub planes: Vec<Vec<u8>>,
pub plane_dims: Vec<(u32, u32)>,
pub bit_depth: u8,
}Expand description
One frame decoded by the spec-faithful driver. Planes are surfaced
at their §5.9.8 cropped extents (FrameWidth × FrameHeight for
luma, the §5.5.2 subsampled extent for chroma), row-major, 8-bit.
Fields§
§width: u32Luma width in pixels (FrameWidth, post-superres if any).
height: u32Luma height in pixels (FrameHeight).
planes: Vec<Vec<u8>>Decoded planes: [Y] (monochrome) or [Y, U, V]. For
bit_depth == 8 one byte per sample; for 10/12-bit output two
bytes per sample, little-endian (the yuv4xxp1{0,2}le layout).
plane_dims: Vec<(u32, u32)>(width, height) per surfaced plane (in samples).
bit_depth: u8§5.5.2 BitDepth (8, 10 or 12).
Trait Implementations§
impl Eq for SpecFrame
impl StructuralPartialEq for SpecFrame
Auto Trait Implementations§
impl Freeze for SpecFrame
impl RefUnwindSafe for SpecFrame
impl Send for SpecFrame
impl Sync for SpecFrame
impl Unpin for SpecFrame
impl UnsafeUnpin for SpecFrame
impl UnwindSafe for SpecFrame
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