[][src]Trait v_frame::pixel::Pixel

pub trait Pixel: RegisteredPrimitive + Into<u32> + Into<i32> + Debug + Display + Send + Sync + 'static {
    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 u8[src]

type Coeff = i16

impl Pixel for u16[src]

type Coeff = i32

Loading content...

Implementors

Loading content...