Struct rav1e::prelude::PlaneConfig[][src]

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[src]

pub fn new(
    width: usize,
    height: usize,
    xdec: usize,
    ydec: usize,
    xpad: usize,
    ypad: usize,
    type_size: usize
) -> PlaneConfig
[src]

Trait Implementations

impl Clone for PlaneConfig[src]

impl Debug for PlaneConfig[src]

impl Eq for PlaneConfig[src]

impl PartialEq<PlaneConfig> for PlaneConfig[src]

impl StructuralEq for PlaneConfig[src]

impl StructuralPartialEq for PlaneConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.