pub enum QuantizationSystem {
Qe1,
Qe2,
}Expand description
Quantization system per ST 2067-21:2023 Table 5.
Variants§
Qe1
QE.1: Narrow range (BT.709/BT.601 quantization) R’G’B’: D = INT((219 * X + 16) * 2^(n-8))
Qe2
QE.2: Full range R’G’B’: D = INT(X * (2^n - 1))
Trait Implementations§
Source§impl Clone for QuantizationSystem
impl Clone for QuantizationSystem
Source§fn clone(&self) -> QuantizationSystem
fn clone(&self) -> QuantizationSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QuantizationSystem
Source§impl Debug for QuantizationSystem
impl Debug for QuantizationSystem
impl Eq for QuantizationSystem
Source§impl PartialEq for QuantizationSystem
impl PartialEq for QuantizationSystem
Source§fn eq(&self, other: &QuantizationSystem) -> bool
fn eq(&self, other: &QuantizationSystem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuantizationSystem
Auto Trait Implementations§
impl Freeze for QuantizationSystem
impl RefUnwindSafe for QuantizationSystem
impl Send for QuantizationSystem
impl Sync for QuantizationSystem
impl Unpin for QuantizationSystem
impl UnsafeUnpin for QuantizationSystem
impl UnwindSafe for QuantizationSystem
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