#[repr(u8)]pub enum MatrixCoefficients {
Identity = 0,
Bt709 = 1,
Unspecified = 2,
Fcc = 4,
Bt470Bg = 5,
Smpte170M = 6,
Smpte240M = 7,
Ycgco = 8,
Bt2020Ncl = 9,
Bt2020Cl = 10,
}Expand description
H.264 matrix_coefficients values (ITU-T H.264 Table E-5).
Specifies the matrix coefficients for deriving luma and chroma from RGB.
Variants§
Identity = 0
Identity (RGB, no matrix transformation)
Bt709 = 1
ITU-R BT.709-6 (Kr=0.2126, Kb=0.0722) - HD television
Unspecified = 2
Unspecified
Fcc = 4
FCC 73.682 (historical)
Bt470Bg = 5
ITU-R BT.470-6 System B, G (same as BT.601-7 625)
Smpte170M = 6
SMPTE 170M / ITU-R BT.601-7 525 (Kr=0.299, Kb=0.114) - SD television
Smpte240M = 7
SMPTE 240M
Ycgco = 8
YCgCo (lossless)
Bt2020Ncl = 9
ITU-R BT.2020 non-constant luminance
Bt2020Cl = 10
ITU-R BT.2020 constant luminance
Implementations§
Trait Implementations§
Source§impl Clone for MatrixCoefficients
impl Clone for MatrixCoefficients
Source§fn clone(&self) -> MatrixCoefficients
fn clone(&self) -> MatrixCoefficients
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 MatrixCoefficients
impl Debug for MatrixCoefficients
Source§impl Default for MatrixCoefficients
impl Default for MatrixCoefficients
Source§fn default() -> MatrixCoefficients
fn default() -> MatrixCoefficients
Returns the “default value” for a type. Read more
Source§impl Hash for MatrixCoefficients
impl Hash for MatrixCoefficients
Source§impl PartialEq for MatrixCoefficients
impl PartialEq for MatrixCoefficients
impl Copy for MatrixCoefficients
impl Eq for MatrixCoefficients
impl StructuralPartialEq for MatrixCoefficients
Auto Trait Implementations§
impl Freeze for MatrixCoefficients
impl RefUnwindSafe for MatrixCoefficients
impl Send for MatrixCoefficients
impl Sync for MatrixCoefficients
impl Unpin for MatrixCoefficients
impl UnsafeUnpin for MatrixCoefficients
impl UnwindSafe for MatrixCoefficients
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