pub mod channels;
#[allow(clippy::module_inception)]
mod luma;
use crate::encoding::{Gamma, Linear, Srgb};
use crate::white_point::D65;
pub use self::luma::{Iter, Luma, Lumaa};
pub type SrgbLuma<T = f32> = Luma<Srgb, T>;
pub type SrgbLumaa<T = f32> = Lumaa<Srgb, T>;
#[doc(alias = "linear")]
pub type LinLuma<Wp = D65, T = f32> = Luma<Linear<Wp>, T>;
#[doc(alias = "linear")]
pub type LinLumaa<Wp = D65, T = f32> = Lumaa<Linear<Wp>, T>;
pub type GammaLuma<T = f32> = Luma<Gamma<D65>, T>;
pub type GammaLumaa<T = f32> = Lumaa<Gamma<D65>, T>;
pub trait LumaStandard {
type WhitePoint;
type TransferFn;
}
impl<Wp, Tf> LumaStandard for (Wp, Tf) {
type WhitePoint = Wp;
type TransferFn = Tf;
}
pub type PackedLumaa<P = u16> = crate::cast::Packed<channels::La, P>;
pub type PackedAluma<P = u16> = crate::cast::Packed<channels::Al, P>;