pub enum ColorPrimaries {
Bt709,
Bt601,
Bt2020,
DisplayP3,
Unknown(u16),
}Expand description
ISO/IEC 23091-2 (CICP) color primaries identifying the video gamut.
Variants§
Bt709
ITU-R BT.709 / sRGB primaries (1).
Bt601
ITU-R BT.601 525/625-line standard definition primaries (5 / 6).
Bt2020
ITU-R BT.2020 wide color gamut primaries (9).
DisplayP3
DCI-P3 / Display P3 primaries (12).
Unknown(u16)
Unrecognized CICP primary code preserved verbatim.
Trait Implementations§
Source§impl Clone for ColorPrimaries
impl Clone for ColorPrimaries
impl Copy for ColorPrimaries
Source§impl Debug for ColorPrimaries
impl Debug for ColorPrimaries
Source§impl Default for ColorPrimaries
impl Default for ColorPrimaries
Source§impl<'de> Deserialize<'de> for ColorPrimaries
impl<'de> Deserialize<'de> for ColorPrimaries
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ColorPrimaries
Source§impl Hash for ColorPrimaries
impl Hash for ColorPrimaries
Source§impl PartialEq for ColorPrimaries
impl PartialEq for ColorPrimaries
Source§impl Serialize for ColorPrimaries
impl Serialize for ColorPrimaries
impl StructuralPartialEq for ColorPrimaries
Auto Trait Implementations§
impl Forget for ColorPrimaries
impl Freeze for ColorPrimaries
impl Move for ColorPrimaries
impl RefUnwindSafe for ColorPrimaries
impl Send for ColorPrimaries
impl Sync for ColorPrimaries
impl Unpin for ColorPrimaries
impl UnsafeUnpin for ColorPrimaries
impl UnwindSafe for ColorPrimaries
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more