pub enum MatrixCoefficients {
Identity,
Bt709,
Bt601,
Bt2020Ncl,
Unknown(u16),
}Expand description
ISO/IEC 23091-2 (CICP) YCbCr matrix coefficients for YUV-to-RGB conversion.
Variants§
Identity
RGB identity matrix (0).
Bt709
ITU-R BT.709 matrix (1).
Bt601
ITU-R BT.601 matrix (5 / 6).
Bt2020Ncl
ITU-R BT.2020 non-constant luminance matrix (9).
Unknown(u16)
Unrecognized CICP matrix code preserved verbatim.
Trait Implementations§
Source§impl Clone for MatrixCoefficients
impl Clone for MatrixCoefficients
impl Copy for MatrixCoefficients
Source§impl Debug for MatrixCoefficients
impl Debug for MatrixCoefficients
Source§impl Default for MatrixCoefficients
impl Default for MatrixCoefficients
Source§impl<'de> Deserialize<'de> for MatrixCoefficients
impl<'de> Deserialize<'de> for MatrixCoefficients
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MatrixCoefficients
Source§impl Hash for MatrixCoefficients
impl Hash for MatrixCoefficients
Source§impl PartialEq for MatrixCoefficients
impl PartialEq for MatrixCoefficients
Source§impl Serialize for MatrixCoefficients
impl Serialize for MatrixCoefficients
impl StructuralPartialEq for MatrixCoefficients
Auto Trait Implementations§
impl Forget for MatrixCoefficients
impl Freeze for MatrixCoefficients
impl Move 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