Trait ToRGBAPLU

Source
pub trait ToRGBAPLU {
    // Required methods
    fn to_rgbaplu(&self) -> Vec<RGBAPLU> ;
    fn to_rgblu(&self) -> Vec<RGBLU> ;
}
Expand description

RGBA Premultiplied Linear-light Unit scale

Convenience function .to_rgbaplu() to convert RGBA bitmaps to a format useful for DSSIM.

Required Methods§

Source

fn to_rgbaplu(&self) -> Vec<RGBAPLU>

Convert with alpha channel preserved

Source

fn to_rgblu(&self) -> Vec<RGBLU>

Discard alpha channel, if any

Implementations on Foreign Types§

Source§

impl<P> ToRGBAPLU for [P]
where P: GammaPixel<Output = RGBAPLU>,

Implementors§