Enum rav1e::color::ColorPrimaries
source · #[repr(C)]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
Supported Color Primaries
As defined by “Color primaries” section of ISO/IEC 23091-4/ITU-T H.273
Variants§
BT709 = 1
BT.709
Unspecified = 2
Unspecified, must be signaled or inferred outside of the bitstream
BT470M = 4
BT.470 System M (historical)
BT470BG = 5
BT.470 System B, G (historical)
BT601 = 6
BT.601-7 525 (SMPTE 170 M)
SMPTE240 = 7
SMPTE 240M (historical)
GenericFilm = 8
Generic film
BT2020 = 9
BT.2020, BT.2100
XYZ = 10
SMPTE 248 (CIE 1921 XYZ)
SMPTE431 = 11
SMPTE RP 431-2
SMPTE432 = 12
SMPTE EG 432-1
EBU3213 = 22
EBU Tech. 3213-E
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 Display for ColorPrimaries
impl Display for ColorPrimaries
source§impl FromPrimitive for ColorPrimaries
impl FromPrimitive for ColorPrimaries
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresource§impl FromStr for ColorPrimaries
impl FromStr for ColorPrimaries
source§impl PartialEq for ColorPrimaries
impl PartialEq for ColorPrimaries
source§fn eq(&self, other: &ColorPrimaries) -> bool
fn eq(&self, other: &ColorPrimaries) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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