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: 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

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

Returns the argument unchanged.

impl<T> ToOwned for PlaneConfig where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for PlaneConfig where U: From<T>,

fn into(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<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>