Trait yuv::convert::ToRGB

source ·
pub trait ToRGB<F = u8, T = u8> {
    // Required methods
    fn to_rgb(&self, px: YUV<F>) -> RGB<T>;
    fn to_luma(&self, y: F) -> T;
}
Expand description

Trait for YUV -> RGB conversion implemented by color-space-specific converters. See RGBConvert

Required Methods§

source

fn to_rgb(&self, px: YUV<F>) -> RGB<T>

Convert YUV (YCbCr, etc.) to RGB

source

fn to_luma(&self, y: F) -> T

Ignore UV channels, and just convert Y

Implementors§

source§

impl ToRGB for IdentityScale<u8>

source§

impl ToRGB<u16, u16> for IdentityScale<u16>

source§

impl<T> ToRGB<T> for Matrix<T>
where T: Into<f32>,

source§

impl<T> ToRGB<T, u16> for Matrix<T>
where T: Into<f32>,

source§

impl<T> ToRGB<T, T> for RGBConvert<T>
where Matrix<T>: ToRGB<T, T>, IdentityScale<T>: ToRGB<T, T>,

source§

impl<T> ToRGB<T, T> for CopyGBR<T>