Enum ColorPrimaries
#[repr(u8)]pub enum ColorPrimaries {
Bt709 = 0,
Bt470M = 1,
Bt470Bg = 2,
Smpte170M = 3,
Smpte240M = 4,
Film = 5,
Bt2020 = 6,
Smpte428 = 7,
DciP3 = 8,
DisplayP3 = 9,
}Expand description
Official color-primaries metadata values.
Variants§
Bt709 = 0
ITU-R BT.709 primaries.
Bt470M = 1
ITU-R BT.470 System M primaries.
Bt470Bg = 2
ITU-R BT.470 System B/G primaries.
Smpte170M = 3
SMPTE 170M primaries.
Smpte240M = 4
SMPTE 240M primaries.
Film = 5
Film primaries.
Bt2020 = 6
ITU-R BT.2020 primaries.
Smpte428 = 7
SMPTE ST 428 primaries.
DciP3 = 8
DCI-P3 primaries.
DisplayP3 = 9
Display P3 primaries.
Implementations§
§impl ColorPrimaries
impl ColorPrimaries
pub fn parse(value: &str) -> Result<ColorPrimaries, PixelFlowError>
pub fn parse(value: &str) -> Result<ColorPrimaries, PixelFlowError>
Parses canonical primaries metadata string.
Trait Implementations§
§impl Clone for ColorPrimaries
impl Clone for ColorPrimaries
§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 more§impl Debug for ColorPrimaries
impl Debug for ColorPrimaries
§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