Struct PlaneConfig

struct PlaneConfig { ... }

Plane-specific configuration.

Fields

stride: usize

Data stride.

alloc_height: usize

Allocated height in pixels.

width: usize

Width in pixels.

height: usize

Height in pixels.

xdec: usize

Decimator along the X axis.

For example, for chroma planes in a 4:2:0 configuration this would be 1.

ydec: usize

Decimator along the Y axis.

For example, for chroma planes in a 4:2:0 configuration this would be 1.

xpad: usize

Number of padding pixels on the right.

ypad: usize

Number of padding pixels on the bottom.

xorigin: usize

X where the data starts.

yorigin: usize

Y 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) -> T

Returns the argument unchanged.

impl<T> ToOwned for PlaneConfig

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for PlaneConfig

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses 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>