#[non_exhaustive]pub enum YuvMatrix {
Bt601,
Bt709,
Bt2020,
}Expand description
The matrix that relates YCbCr to RGB, in a ColorInfo and in image
encoding’s color policy.
This enum is marked #[non_exhaustive] so that matrices a later SDK names
can be added without a breaking change.
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.
Bt601
ITU-R BT.601: KR 0.299, KB 0.114. bt_601.
Bt709
ITU-R BT.709: KR 0.2126, KB 0.0722. bt_709.
Bt2020
ITU-R BT.2020 non-constant luminance: KR 0.2627,
KB 0.0593. bt_2020, or bt_2100, which uses the same
matrix.
Trait Implementations§
impl Copy for YuvMatrix
impl Eq for YuvMatrix
impl StructuralPartialEq for YuvMatrix
Auto Trait Implementations§
impl Freeze for YuvMatrix
impl RefUnwindSafe for YuvMatrix
impl Send for YuvMatrix
impl Sync for YuvMatrix
impl Unpin for YuvMatrix
impl UnsafeUnpin for YuvMatrix
impl UnwindSafe for YuvMatrix
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