#[non_exhaustive]#[repr(u32)]pub enum AVColorPrimaries {
Show 15 variants
AVCOL_PRI_RESERVED0 = 0,
AVCOL_PRI_BT709 = 1,
AVCOL_PRI_UNSPECIFIED = 2,
AVCOL_PRI_RESERVED = 3,
AVCOL_PRI_BT470M = 4,
AVCOL_PRI_BT470BG = 5,
AVCOL_PRI_SMPTE170M = 6,
AVCOL_PRI_SMPTE240M = 7,
AVCOL_PRI_FILM = 8,
AVCOL_PRI_BT2020 = 9,
AVCOL_PRI_SMPTE428 = 10,
AVCOL_PRI_SMPTE431 = 11,
AVCOL_PRI_SMPTE432 = 12,
AVCOL_PRI_EBU3213 = 22,
AVCOL_PRI_NB = 23,
}
Expand description
Chromaticity coordinates of the source primaries. These values match the ones defined by ISO/IEC 23001-8_2013 § 7.1.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AVCOL_PRI_RESERVED0 = 0
AVCOL_PRI_BT709 = 1
< also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B
AVCOL_PRI_UNSPECIFIED = 2
AVCOL_PRI_RESERVED = 3
AVCOL_PRI_BT470M = 4
< also FCC Title 47 Code of Federal Regulations 73.682 (a)(20)
AVCOL_PRI_BT470BG = 5
< also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
AVCOL_PRI_SMPTE170M = 6
< also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
AVCOL_PRI_SMPTE240M = 7
< functionally identical to above
AVCOL_PRI_FILM = 8
< colour filters using Illuminant C
AVCOL_PRI_BT2020 = 9
< ITU-R BT2020
AVCOL_PRI_SMPTE428 = 10
< SMPTE ST 428-1 (CIE 1931 XYZ)
AVCOL_PRI_SMPTE431 = 11
< SMPTE ST 431-2 (2011) / DCI P3
AVCOL_PRI_SMPTE432 = 12
< SMPTE ST 432-1 (2010) / P3 D65 / Display P3
AVCOL_PRI_EBU3213 = 22
< EBU Tech. 3213-E / JEDEC P22 phosphors
AVCOL_PRI_NB = 23
< Not part of ABI
Implementations§
source§impl AVColorPrimaries
impl AVColorPrimaries
pub const AVCOL_PRI_SMPTEST428_1: AVColorPrimaries = AVColorPrimaries::AVCOL_PRI_SMPTE428
source§impl AVColorPrimaries
impl AVColorPrimaries
pub const AVCOL_PRI_JEDEC_P22: AVColorPrimaries = AVColorPrimaries::AVCOL_PRI_EBU3213
Trait Implementations§
source§impl Clone for AVColorPrimaries
impl Clone for AVColorPrimaries
source§fn clone(&self) -> AVColorPrimaries
fn clone(&self) -> AVColorPrimaries
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 AVColorPrimaries
impl Debug for AVColorPrimaries
source§impl Hash for AVColorPrimaries
impl Hash for AVColorPrimaries
source§impl PartialEq for AVColorPrimaries
impl PartialEq for AVColorPrimaries
source§fn eq(&self, other: &AVColorPrimaries) -> bool
fn eq(&self, other: &AVColorPrimaries) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AVColorPrimaries
impl Eq for AVColorPrimaries
impl StructuralPartialEq for AVColorPrimaries
Auto Trait Implementations§
impl Freeze for AVColorPrimaries
impl RefUnwindSafe for AVColorPrimaries
impl Send for AVColorPrimaries
impl Sync for AVColorPrimaries
impl Unpin for AVColorPrimaries
impl UnwindSafe for AVColorPrimaries
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