#[non_exhaustive]pub enum YuvRange {
Limited,
Full,
}Expand description
The range of a YUV frame’s code values.
This enum is marked #[non_exhaustive] so that ranges 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.
Limited
Limited, or video, range: at 8 bits, luma 16 to 235 and chroma 16 to 240; at 16 bits, those values times 256. NDI video uses it.
Full
Full range: every code value.
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