pub enum YuvMatrix {
Bt601,
Bt709,
Bt2020,
}Expand description
The colour matrix relating an Nv12 buffer’s luma/chroma to RGB.
The producer’s declaration, not the format’s: an Nv12 buffer carries YCbCr either way, and which
matrix turns it back into RGB is a property of the video, not the buffer. A renderer inverts the
matrix named here when it converts.
Variants§
Bt601
BT.601 — SMPTE 170M / BT.470 BG / FCC. The default, and what standard definition is in.
Bt709
BT.709 — what high definition is in.
Bt2020
BT.2020 non-constant-luminance — UHD and wide gamut.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.