Trait rav1e::Pixel

source ·
pub trait Pixel: RegisteredPrimitive + Into<u32> + Into<i32> + Debug + Display + Send + Sync + 'static {
    type Coeff: Coefficient;

    // Required method
    fn type_enum() -> PixelType;

    // Provided method
    fn to_asm_stride(in_stride: usize) -> isize { ... }
}
Expand description

A type that can be used as a pixel type.

Required Associated Types§

Required Methods§

source

fn type_enum() -> PixelType

Returns a PixelType variant corresponding to this type.

Provided Methods§

source

fn to_asm_stride(in_stride: usize) -> isize

Converts stride in pixels to stride in bytes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Pixel for u8

source§

impl Pixel for u16

Implementors§