[][src]Trait prisma::ycbcr::YCbCrModel

pub trait YCbCrModel<T>: Clone + PartialEq + YCbCrTransform {
    type Shift: YCbCrShift<T>;
    fn shift(&self) -> (T, T, T);
}

An object that can transform from YCbCr to Rgb and back.

Associated Types

type Shift: YCbCrShift<T>

The shift type used by the YCbCrModel

Loading content...

Required methods

fn shift(&self) -> (T, T, T)

Return a shift to be added to each channel after conversion.

Loading content...

Implementors

impl<'a, T> YCbCrModel<T> for &'a CustomYCbCrModel where
    T: PosNormalChannelScalar + NormalChannelScalar,
    StandardShift<T>: YCbCrShift<T>, 
[src]

type Shift = StandardShift<T>

impl<T> YCbCrModel<T> for Bt709Model where
    T: PosNormalChannelScalar + NormalChannelScalar,
    StandardShift<T>: YCbCrShift<T>, 
[src]

type Shift = StandardShift<T>

impl<T> YCbCrModel<T> for CustomYCbCrModel where
    T: PosNormalChannelScalar + NormalChannelScalar,
    StandardShift<T>: YCbCrShift<T>, 
[src]

type Shift = StandardShift<T>

impl<T> YCbCrModel<T> for JpegModel where
    T: PosNormalChannelScalar + NormalChannelScalar,
    StandardShift<T>: YCbCrShift<T>, 
[src]

type Shift = StandardShift<T>

impl<T> YCbCrModel<T> for YiqModel where
    T: PosNormalChannelScalar + NormalChannelScalar,
    StandardShift<T>: YCbCrShift<T>, 
[src]

type Shift = StandardShift<T>

Loading content...