pub enum ColorPrimaries {
Bt709 = 1,
Unspecified = 2,
Bt470M = 4,
Bt470bg = 5,
Bt601 = 6,
Smpte240 = 7,
GenericFilm = 8,
Bt2020 = 9,
Xyz = 10,
Smpte431 = 11,
Smpte432 = 12,
Ebu3213 = 22,
}
Expand description
Defined by the “Color primaries” section of ISO/IEC 23091-4/ITU-T H.273 See 6.4.2
Variants§
Bt709 = 1
Unspecified = 2
Bt470M = 4
Bt470bg = 5
Bt601 = 6
Smpte240 = 7
GenericFilm = 8
Bt2020 = 9
Xyz = 10
Smpte431 = 11
Smpte432 = 12
Ebu3213 = 22
Implementations§
Trait Implementations§
Source§impl Clone for ColorPrimaries
impl Clone for ColorPrimaries
Source§fn clone(&self) -> ColorPrimaries
fn clone(&self) -> ColorPrimaries
Returns a copy 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 Ord for ColorPrimaries
impl Ord for ColorPrimaries
Source§fn cmp(&self, other: &ColorPrimaries) -> Ordering
fn cmp(&self, other: &ColorPrimaries) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ColorPrimaries
impl PartialEq for ColorPrimaries
Source§impl PartialOrd for ColorPrimaries
impl PartialOrd 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 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