Enum kolor::details::color::TransformFn
source · #[repr(u8)]
pub enum TransformFn {
Show 18 variants
NONE,
sRGB,
Oklab,
Oklch,
CIE_xyY,
CIELAB,
CIELCh,
CIE_1960_UCS,
CIE_1960_UCS_uvV,
CIE_1964_UVW,
CIE_1976_Luv,
HSL,
HSV,
HSI,
ICtCp_PQ,
ICtCp_HLG,
BT_601,
PQ,
}
Expand description
A TransformFn identifies an invertible mapping of colors in a linear ColorSpace.
Variants§
NONE
sRGB
The sRGB transfer functions (aka “gamma correction”)
Oklab
Oklab conversion from xyz
Oklch
Oklch (Oklab’s LCh variant) conversion from xyz
CIE_xyY
CIE xyY transform
CIELAB
CIELAB transform
CIELCh
CIELCh transform
CIE_1960_UCS
CIE 1960 UCS transform
CIE_1960_UCS_uvV
CIE 1960 UCS transform in uvV form
CIE_1964_UVW
CIE 1964 UVW transform
CIE_1976_Luv
CIE 1976 Luv transform
HSL
(Hue, Saturation, Lightness), where L is defined as the average of the largest and smallest color components
HSV
(Hue, Saturation, Value), where V is defined as the largest component of a color
HSI
(Hue, Saturation, Intensity), where I is defined as the average of the three components
ICtCp_PQ
BT.2100 ICtCp with PQ transfer function
ICtCp_HLG
BT.2100 ICtCp with HLG transfer function
BT_601
The BT.601/BT.709/BT.2020 (they are equivalent) OETF and inverse.
PQ
SMPTE ST 2084:2014 aka “Perceptual Quantizer” transfer functions used in BT.2100 for digitally created/distributed HDR content.
Implementations§
source§impl TransformFn
impl TransformFn
pub const ENUM_COUNT: TransformFn = TransformFn::ICtCp_HLG
Trait Implementations§
source§impl Clone for TransformFn
impl Clone for TransformFn
source§fn clone(&self) -> TransformFn
fn clone(&self) -> TransformFn
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransformFn
impl Debug for TransformFn
source§impl Hash for TransformFn
impl Hash for TransformFn
source§impl PartialEq<TransformFn> for TransformFn
impl PartialEq<TransformFn> for TransformFn
source§fn eq(&self, other: &TransformFn) -> bool
fn eq(&self, other: &TransformFn) -> bool
self
and other
values to be equal, and is used
by ==
.