Struct PlaneConfig
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 }
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
impl PlaneConfig
fn new(width: usize, height: usize, xdec: usize, ydec: usize, xpad: usize, ypad: usize, type_size: usize) -> Self
Trait Implementations
impl Clone for PlaneConfig
fn clone(&self) -> PlaneConfig
impl Debug for PlaneConfig
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for PlaneConfig
impl PartialEq for PlaneConfig
fn eq(&self, other: &PlaneConfig) -> bool
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 UnsafeUnpin for PlaneConfig
impl UnwindSafe for PlaneConfig
Blanket Implementations
impl<T> Any for PlaneConfig
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PlaneConfig
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PlaneConfig
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for PlaneConfig
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for PlaneConfig
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for PlaneConfig
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for PlaneConfig
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PlaneConfig
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for PlaneConfig
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>