Struct PlaneConfig
struct PlaneConfig { ... }
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
impl Clone for PlaneConfig
fn clone(self: &Self) -> PlaneConfig
impl Debug for PlaneConfig
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for PlaneConfig
impl Freeze for PlaneConfig
impl PartialEq for PlaneConfig
fn eq(self: &Self, other: &PlaneConfig) -> bool
impl RefUnwindSafe for PlaneConfig
impl Send for PlaneConfig
impl StructuralPartialEq for PlaneConfig
impl Sync for PlaneConfig
impl Unpin for PlaneConfig
impl UnsafeUnpin for PlaneConfig
impl UnwindSafe for PlaneConfig
impl<T> Any for PlaneConfig
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for PlaneConfig
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for PlaneConfig
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for PlaneConfig
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for PlaneConfig
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for PlaneConfig
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for PlaneConfig
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for PlaneConfig
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for PlaneConfig
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>