Trait dssim_core::GammaPixel [−][src]
Downsampling should be done in linear RGB color space.
Used by ToRGBAPLU
This trait provides gamma to linear conversion via lookup table, and there’s implementation for sRGB for common RGB types.
Associated Types
type Component: GammaComponent
[src]
type Output
[src]
Required methods
Loading content...Provided methods
fn make_lut() -> <Self::Component as GammaComponent>::Lut
[src]
Implementations on Foreign Types
impl<M> GammaPixel for RGBA<M> where
M: Clone + Into<f32> + GammaComponent,
[src]
M: Clone + Into<f32> + GammaComponent,
impl<M> GammaPixel for BGRA<M> where
M: Clone + Into<f32> + GammaComponent,
[src]
M: Clone + Into<f32> + GammaComponent,
impl<M> GammaPixel for RGB<M> where
M: GammaComponent,
[src]
M: GammaComponent,
impl<M> GammaPixel for BGR<M> where
M: GammaComponent,
[src]
M: GammaComponent,
impl<M> GammaPixel for GrayAlpha<M> where
M: Copy + Clone + Into<f32> + GammaComponent,
[src]
M: Copy + Clone + Into<f32> + GammaComponent,
impl<M> GammaPixel for Gray<M> where
M: Copy + GammaComponent,
[src]
Loading content...M: Copy + GammaComponent,
Implementors
impl<M> GammaPixel for M where
M: GammaComponent,
[src]
M: GammaComponent,