[][src]Trait prisma::FromYCbCr

pub trait FromYCbCr<From> {
    fn from_ycbcr(from: &From, out_of_gamut_mode: YCbCrOutOfGamutMode) -> Self;
}

Convert from YCbCr to another color model

This is a separate trait as YCbCr can go out of gamut. This trait accepts an enum describing how to handle out of gamut colors.

Required methods

fn from_ycbcr(from: &From, out_of_gamut_mode: YCbCrOutOfGamutMode) -> Self

Construct Self from from, describing what to do if the color is out of gamut for Self

Loading content...

Implementors

impl<C, E, T, M> FromYCbCr<EncodedColor<YCbCr<T, M>, E>> for EncodedColor<C, E> where
    C: Color + EncodableColor + FromYCbCr<YCbCr<T, M>>,
    E: ColorEncoding,
    T: PosNormalChannelScalar + Float,
    M: YCbCrModel<T>, 
[src]

impl<T, C, E, S, M> FromYCbCr<SpacedColor<T, YCbCr<T, M>, E, S>> for SpacedColor<T, C, E, S> where
    C: Color + EncodableColor + FromYCbCr<YCbCr<T, M>>,
    S: ColorSpace<T> + PartialEq + Clone,
    E: ColorEncoding + PartialEq,
    T: PosNormalChannelScalar + Float,
    M: YCbCrModel<T> + Clone
[src]

impl<T, InnerColor, M> FromYCbCr<Alpha<T, YCbCr<T, M>>> for Alpha<T, InnerColor> where
    T: PosNormalChannelScalar + NormalChannelScalar,
    InnerColor: Color + FromYCbCr<YCbCr<T, M>>,
    M: YCbCrModel<T>, 
[src]

impl<T, M> FromYCbCr<YCbCr<T, M>> for Rgb<T> where
    T: NormalChannelScalar + PosNormalChannelScalar + NumCast,
    M: YCbCrModel<T>, 
[src]

Loading content...