Enum v4l::format::quantization::Quantization
source · #[repr(u32)]pub enum Quantization {
Default = 0,
FullRange = 1,
LimitedRange = 2,
}
Expand description
Quantization for the colorspace.
The driver decides this for capture streams and the user sets it for output streams.
Variants§
Default = 0
default for the colorspace
FullRange = 1
maps to the full range; 0 goes to 0 and 1 goes to 255
LimitedRange = 2
maps to a limited range; 0 goes to 16 and 1 goes to 235
Trait Implementations§
source§impl Clone for Quantization
impl Clone for Quantization
source§fn clone(&self) -> Quantization
fn clone(&self) -> Quantization
Returns a copy 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 Quantization
impl Debug for Quantization
source§impl Display for Quantization
impl Display for Quantization
source§impl TryFrom<u32> for Quantization
impl TryFrom<u32> for Quantization
impl Copy for Quantization
Auto Trait Implementations§
impl Freeze for Quantization
impl RefUnwindSafe for Quantization
impl Send for Quantization
impl Sync for Quantization
impl Unpin for Quantization
impl UnwindSafe for Quantization
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)