#[repr(u8)]pub enum ColorPrimaries {
Bt709 = 1,
Unspecified = 2,
Bt470M = 4,
Bt470BG = 5,
Smpte170M = 6,
Smpte240M = 7,
Film = 8,
Bt2020 = 9,
}Expand description
H.264 colour_primaries values (ITU-T H.264 Table E-3).
Specifies the chromaticity coordinates of the source primaries.
Variants§
Bt709 = 1
ITU-R BT.709-6 / sRGB / IEC 61966-2-1 (HD television, sRGB displays)
Unspecified = 2
Unspecified - decoder determines based on context
Bt470M = 4
ITU-R BT.470-6 System M (historical NTSC)
Bt470BG = 5
ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625 (PAL)
Smpte170M = 6
SMPTE 170M / ITU-R BT.601-7 525 (NTSC)
Smpte240M = 7
SMPTE 240M (historical)
Film = 8
Generic film (C illuminant)
Bt2020 = 9
ITU-R BT.2020-2 / ITU-R BT.2100-2 (UHD/HDR)
Implementations§
Trait Implementations§
Source§impl Clone for ColorPrimaries
impl Clone for ColorPrimaries
Source§fn clone(&self) -> ColorPrimaries
fn clone(&self) -> ColorPrimaries
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColorPrimaries
impl Debug for ColorPrimaries
Source§impl Default for ColorPrimaries
impl Default for ColorPrimaries
Source§fn default() -> ColorPrimaries
fn default() -> ColorPrimaries
Returns the “default value” for a type. Read more
Source§impl Hash for ColorPrimaries
impl Hash for ColorPrimaries
Source§impl PartialEq for ColorPrimaries
impl PartialEq for ColorPrimaries
impl Copy for ColorPrimaries
impl Eq for ColorPrimaries
impl StructuralPartialEq for ColorPrimaries
Auto Trait Implementations§
impl Freeze 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