#[non_exhaustive]#[repr(u8)]pub enum SignalRange {
Full = 0,
Narrow = 1,
}Expand description
Signal range for pixel values.
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.
Full = 0
Full range: 0-2^N-1 (e.g. 0-255 for 8-bit).
Narrow = 1
Narrow (limited/studio) range: 16-235 luma, 16-240 chroma (for 8-bit).
Trait Implementations§
Source§impl Clone for SignalRange
impl Clone for SignalRange
Source§fn clone(&self) -> SignalRange
fn clone(&self) -> SignalRange
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 SignalRange
impl Debug for SignalRange
Source§impl Default for SignalRange
impl Default for SignalRange
Source§fn default() -> SignalRange
fn default() -> SignalRange
Returns the “default value” for a type. Read more
Source§impl Display for SignalRange
impl Display for SignalRange
Source§impl Hash for SignalRange
impl Hash for SignalRange
Source§impl PartialEq for SignalRange
impl PartialEq for SignalRange
impl Copy for SignalRange
impl Eq for SignalRange
impl StructuralPartialEq for SignalRange
Auto Trait Implementations§
impl Freeze for SignalRange
impl RefUnwindSafe for SignalRange
impl Send for SignalRange
impl Sync for SignalRange
impl Unpin for SignalRange
impl UnsafeUnpin for SignalRange
impl UnwindSafe for SignalRange
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