Struct Cicp
pub struct Cicp { pub primaries: CicpColorPrimaries, pub transfer: CicpTransferCharacteristics, pub matrix: CicpMatrixCoefficients, pub full_range: CicpVideoFullRangeFlag }
Reference: https://www.itu.int/rec/T-REC-H.273-202407-I/en (V4)
Fields
primaries: CicpColorPrimariesDefines the exact color of red, green, blue primary colors.
transfer: CicpTransferCharacteristicsThe electro-optical transfer function (EOTF) that maps color components to linear values.
matrix: CicpMatrixCoefficientsA matrix between linear values and primary color representation.
For an RGB space this is the identity matrix.
full_range: CicpVideoFullRangeFlagWhether the color components use all bits of the encoded values, or have headroom.
For compute purposes,
imageonly supportsCicpVideoFullRangeFlag::FullRangeand you get errors when trying to pass a non-full-range color profile to transform APIs such asDynamicImage::apply_color_spaceorCicpTransform::new.
Implementations
impl Cicp
const SRGB: Self = _;The sRGB color space, BT.709 transfer function and D65 whitepoint.
const SRGB_LINEAR: Self = _;SRGB primaries and whitepoint with linear samples.
const DISPLAY_P3: Self = _;The Display-P3 color space, a wide-gamut choice with SMPTE RP 432-2 primaries.
Note that this modern Display P3 uses a D65 whitepoint. Use the primaries
SmpteRp431for the previous standard. The advantage of the new standard is the color system shares its whitepoint with sRGB and BT.2020.
Trait Implementations
impl Clone for Cicp
fn clone(&self) -> Self
impl Copy for Cicp
impl Debug for Cicp
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Cicp
impl Hash for Cicp
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for Cicp
fn eq(&self, other: &Self) -> bool