pub struct Plane {
pub data: Vec<u8>,
pub stride: usize,
}Expand description
One image plane of a DecodedFrame: raw bytes plus the row stride.
Fields§
§data: Vec<u8>The raw plane bytes, row-major. Sample encoding follows the frame’s
PixelFormat.
stride: usizeThe distance between the starts of two consecutive rows, in bytes (at least the row’s used width; may be larger for aligned surfaces).
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