pub struct PlaneConfig {
pub stride: usize,
pub alloc_height: usize,
pub width: usize,
pub height: usize,
pub xdec: usize,
pub ydec: usize,
pub xpad: usize,
pub ypad: usize,
pub xorigin: usize,
pub yorigin: usize,
}Expand description
Plane-specific configuration.
Fields§
§stride: usizeData stride.
alloc_height: usizeAllocated height in pixels.
width: usizeWidth in pixels.
height: usizeHeight in pixels.
xdec: usizeDecimator along the X axis.
For example, for chroma planes in a 4:2:0 configuration this would be 1.
ydec: usizeDecimator along the Y axis.
For example, for chroma planes in a 4:2:0 configuration this would be 1.
xpad: usizeNumber of padding pixels on the right.
ypad: usizeNumber of padding pixels on the bottom.
xorigin: usizeX where the data starts.
yorigin: usizeY where the data starts.
Implementations§
Trait Implementations§
Source§impl Clone for PlaneConfig
impl Clone for PlaneConfig
Source§fn clone(&self) -> PlaneConfig
fn clone(&self) -> PlaneConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlaneConfig
impl Debug for PlaneConfig
Source§impl PartialEq for PlaneConfig
impl PartialEq for PlaneConfig
impl Eq for PlaneConfig
impl StructuralPartialEq for PlaneConfig
Auto Trait Implementations§
impl Freeze for PlaneConfig
impl RefUnwindSafe for PlaneConfig
impl Send for PlaneConfig
impl Sync for PlaneConfig
impl Unpin for PlaneConfig
impl UnwindSafe for PlaneConfig
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