pub enum YuvRange {
Full,
Limited,
}Expand description
Whether an Nv12 buffer’s bytes are full or limited (“studio”) range.
Variants§
Full
Full range: luma over 0..255, chroma over 0..255. JPEG/PC range, and the default here.
Limited
Limited range: luma over 16..235, chroma over 16..240. MPEG/TV range, and what almost
every real stream is in — a full-range buffer read as limited loses contrast, and the reverse
clips.
Trait Implementations§
impl Copy for YuvRange
impl Eq for YuvRange
impl StructuralPartialEq for YuvRange
Auto Trait Implementations§
impl Freeze for YuvRange
impl RefUnwindSafe for YuvRange
impl Send for YuvRange
impl Sync for YuvRange
impl Unpin for YuvRange
impl UnsafeUnpin for YuvRange
impl UnwindSafe for YuvRange
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.