#[repr(C)]pub struct ColorPrimaries {
pub red: Chromaticity,
pub green: Chromaticity,
pub blue: Chromaticity,
}
Fields§
§red: Chromaticity
§green: Chromaticity
§blue: Chromaticity
Implementations§
Source§impl ColorPrimaries
See Rec. ITU-T H.273 (12/2016) Table 2.
impl ColorPrimaries
See Rec. ITU-T H.273 (12/2016) Table 2.
Sourcepub const ACES_CG: ColorPrimaries
pub const ACES_CG: ColorPrimaries
Sourcepub const ACES_2065_1: ColorPrimaries
pub const ACES_2065_1: ColorPrimaries
Sourcepub const ADOBE_RGB: ColorPrimaries
pub const ADOBE_RGB: ColorPrimaries
Adobe RGB (1998).
Sourcepub const DCI_P3: ColorPrimaries
pub const DCI_P3: ColorPrimaries
This is the same as DISPLAY_P3
,
SMPTE_431
and SMPTE_432
.
Sourcepub const DISPLAY_P3: ColorPrimaries = Self::DCI_P3
pub const DISPLAY_P3: ColorPrimaries = Self::DCI_P3
Sourcepub const SMPTE_431: ColorPrimaries = Self::DCI_P3
pub const SMPTE_431: ColorPrimaries = Self::DCI_P3
SMPTE RP 431-2 (2011).
This is the same as DCI_P3
,
DISPLAY_P3
and SMPTE_432
.
Sourcepub const SMPTE_432: ColorPrimaries = Self::DCI_P3
pub const SMPTE_432: ColorPrimaries = Self::DCI_P3
SMPTE EG 432-1 (2010).
This is the same as DCI_P3
,
DISPLAY_P3
and SMPTE_431
.
Sourcepub const PRO_PHOTO_RGB: ColorPrimaries
pub const PRO_PHOTO_RGB: ColorPrimaries
Sourcepub const BT_709: ColorPrimaries
pub const BT_709: ColorPrimaries
Rec. ITU-R BT.709-6
Rec. ITU-R BT.1361-0 conventional colour gamut system and extended colour gamut system (historical).
IEC 61966-2-1 sRGB or sYCC IEC 61966-2-4).
Society of Motion Picture and Television Engineers (MPTE) RP 177 (1993) Annex B.
Sourcepub const BT_470M: ColorPrimaries
pub const BT_470M: ColorPrimaries
Rec. ITU-R BT.470-6 System M (historical).
United States National Television System Committee 1953 Recommendation for transmission standards for color television.
United States Federal Communications Commission (2003) Title 47 Code of Federal Regulations 73.682 (a) (20).
Sourcepub const BT_470BG: ColorPrimaries
pub const BT_470BG: ColorPrimaries
Rec. ITU-R BT.470-6 System B, G (historical) Rec. ITU-R BT.601-7 625.
Rec. ITU-R BT.1358-0 625 (historical). Rec. ITU-R BT.1700-0 625 PAL and 625 SECAM.
Sourcepub const BT_601: ColorPrimaries
pub const BT_601: ColorPrimaries
Rec. ITU-R BT.601-7 525.
Rec. ITU-R BT.1358-1 525 or 625 (historical) Rec. ITU-R BT.1700-0 NTSC.
SMPTE 170M (2004) (functionally the same as the SMPTE_240
).
Sourcepub const SMPTE_240: ColorPrimaries = Self::BT_601
pub const SMPTE_240: ColorPrimaries = Self::BT_601
SMPTE 240M (1999) (historical) (functionally the same as BT_601
).
Sourcepub const GENERIC_FILM: ColorPrimaries
pub const GENERIC_FILM: ColorPrimaries
Generic film (colour filters using Illuminant C).
Sourcepub const BT_2020: ColorPrimaries
pub const BT_2020: ColorPrimaries
Rec. ITU-R BT.2020-2.
Rec. ITU-R BT.2100-0.
Sourcepub const XYZ: ColorPrimaries
pub const XYZ: ColorPrimaries
SMPTE ST 428-1 (CIE 1931 XYZ as in ISO 11664-1).
Sourcepub const EBU_3213: ColorPrimaries
pub const EBU_3213: ColorPrimaries
EBU Tech. 3213-E (1975).
Source§impl ColorPrimaries
impl ColorPrimaries
Sourcepub fn transform_to_xyz_d(self, white_point: impl XyYRepresentable) -> Matrix3d
pub fn transform_to_xyz_d(self, white_point: impl XyYRepresentable) -> Matrix3d
Returns RGB -> XYZ conversion matrix
§Arguments
white_point
: Chromaticity or crate::XyY or any item conforming XyYRepresentable
returns: Matrix3d
Sourcepub fn transform_to_xyz(self, white_point: impl XyYRepresentable) -> Matrix3f
pub fn transform_to_xyz(self, white_point: impl XyYRepresentable) -> Matrix3f
Returns RGB -> XYZ conversion matrix
§Arguments
white_point
: Chromaticity or crate::XyY or any item conforming XyYRepresentable
returns: Matrix3f
Trait Implementations§
Source§impl Clone for ColorPrimaries
impl Clone for ColorPrimaries
Source§fn clone(&self) -> ColorPrimaries
fn clone(&self) -> ColorPrimaries
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more