[][src]Trait pix::GammaMode

pub trait GammaMode: Copy + Clone + Debug + PartialEq + Default {
    const ID: GammaModeID;

    fn encode<C: Channel>(c: C) -> C;
fn decode<C: Channel>(c: C) -> C; }

Trait for handling associated versus separated alpha

Associated Constants

Loading content...

Required methods

fn encode<C: Channel>(c: C) -> C

Encode one Channel using the gamma mode.

fn decode<C: Channel>(c: C) -> C

Decode one Channel using the gamma mode.

Loading content...

Implementors

impl GammaMode for LinearGamma[src]

fn encode<C: Channel>(c: C) -> C[src]

Encode one Channel using the gamma mode.

fn decode<C: Channel>(c: C) -> C[src]

Decode one Channel using the gamma mode.

impl GammaMode for SrgbGamma[src]

fn encode<C: Channel>(c: C) -> C[src]

Encode one Channel using the gamma mode.

fn decode<C: Channel>(c: C) -> C[src]

Decode one Channel using the gamma mode.

impl<A: Alpha> GammaMode for Mask<A>[src]

fn encode<H: Channel>(h: H) -> H[src]

Encode one Channel using the gamma mode.

fn decode<H: Channel>(h: H) -> H[src]

Decode one Channel using the gamma mode.

impl<C: Channel, A: Alpha, M: AlphaMode, G: GammaMode> GammaMode for Gray<C, A, M, G>[src]

fn encode<H: Channel>(h: H) -> H[src]

Encode one Channel using the gamma mode.

fn decode<H: Channel>(h: H) -> H[src]

Decode one Channel using the gamma mode.

impl<C: Channel, A: Alpha, M: AlphaMode, G: GammaMode> GammaMode for Rgb<C, A, M, G>[src]

fn encode<H: Channel>(h: H) -> H[src]

Encode one Channel using the gamma mode.

fn decode<H: Channel>(h: H) -> H[src]

Decode one Channel using the gamma mode.

Loading content...