pub struct Plane {
pub bytes: Bytes,
pub stride: u32,
pub width: u32,
pub height: u32,
}Expand description
One decoded image plane.
The bytes are shared rather than owned outright, so a decoder can hand over its own reference-counted frame memory without copying it, and a cloned frame shares its planes.
Fields§
§bytes: BytesPlane bytes, including row padding: stride * height of them.
stride: u32Bytes between adjacent rows.
width: u32Plane width in sample positions; an interleaved chroma plane holds a U, V pair at each.
height: u32Plane height in samples.
Trait Implementations§
impl Eq for Plane
impl StructuralPartialEq for Plane
Auto Trait Implementations§
impl !Freeze for Plane
impl RefUnwindSafe for Plane
impl Send for Plane
impl Sync for Plane
impl Unpin for Plane
impl UnsafeUnpin for Plane
impl UnwindSafe for Plane
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