Trait av_metrics::video::Pixel
source · [−]pub trait Pixel: 'static + RegisteredPrimitive + Into<u32> + Into<i32> + Debug + Display + Send + Sync {
type Coeff: Coefficient;
fn type_enum() -> PixelType;
fn to_asm_stride(in_stride: usize) -> isize { ... }
}
Expand description
A type that can be used as a pixel type.
Associated Types
type Coeff: Coefficient
Required methods
Provided methods
fn to_asm_stride(in_stride: usize) -> isize
fn to_asm_stride(in_stride: usize) -> isize
Converts stride in pixels to stride in bytes.