#[non_exhaustive]pub enum MatrixCoefficients {
Rgb = 0,
Bt709 = 1,
Unspecified = 2,
Bt601 = 6,
Ycgco = 8,
Bt2020Ncl = 9,
Bt2020Cl = 10,
}
Expand description
This is the format of color channels.
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.
Rgb = 0
GBR (sRGB). This isn’t actually good for most RGB images. Use Bt709
for lossy and Ycgco
for lossless.
Bt709 = 1
ITU-R BT1361
Unspecified = 2
Bt601 = 6
ITU-R BT601-6 525. This matches luma in JPEG’s YCbCr when used with sRGB transfer characteristics, but is a bit off for chroma.
Ycgco = 8
Bt2020Ncl = 9
ITU-R BT2020 non-constant luminance system
Bt2020Cl = 10
ITU-R BT2020 constant luminance system
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 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 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