Trait rav1e::Pixel[][src]

pub trait Pixel: 'static + RegisteredPrimitive + Into<u32> + Into<i32> + Send + Sync + Debug + Display {
    type Coeff: Coefficient;
    pub fn type_enum() -> PixelType;

    pub fn to_asm_stride(in_stride: usize) -> isize { ... }
}

A type that can be used as a pixel type.

Associated Types

Loading content...

Required methods

pub fn type_enum() -> PixelType[src]

Returns a PixelType variant corresponding to this type.

Loading content...

Provided methods

pub fn to_asm_stride(in_stride: usize) -> isize[src]

Converts stride in pixels to stride in bytes.

Loading content...

Implementations on Foreign Types

impl Pixel for u16[src]

type Coeff = i32

impl Pixel for u8[src]

type Coeff = i16

Loading content...

Implementors

Loading content...