#[repr(C)]pub enum JxlPrimaries {
SRgb = 1,
Custom = 2,
Rec2100 = 9,
P3 = 11,
}Expand description
Built-in primaries for color encoding. When decoding, the primaries can be
read from the JxlColorEncoding::primaries_red_xy, JxlColorEncoding::primaries_green_xy,
and JxlColorEncoding::primaries_blue_xy fields regardless of the enum value. When encoding,
the enum values except JxlPrimaries::Custom override the numerical fields. Some enum values
match a subset of CICP (Rec. ITU-T H.273 | ISO/IEC 23091-2:2019(E)), however the white point
and RGB primaries are separate enums here.
Variants§
SRgb = 1
The CIE xy values of the red, green and blue primaries are: 0.639998686, 0.330010138; 0.300003784, 0.600003357; 0.150002046, 0.059997204
Custom = 2
Primaries must be read from the JxlColorEncoding::primaries_red_xy,
JxlColorEncoding::primaries_green_xy and JxlColorEncoding::primaries_blue_xy fields,
or as ICC profile. This enum value is not an exact match of the corresponding CICP value.
Rec2100 = 9
As specified in Rec. ITU-R BT.2100-1
P3 = 11
As specified in SMPTE RP 431-2
Trait Implementations§
Source§impl Clone for JxlPrimaries
impl Clone for JxlPrimaries
Source§fn clone(&self) -> JxlPrimaries
fn clone(&self) -> JxlPrimaries
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more