Enum dcv_color_primitives::ColorSpace
source · #[repr(C)]pub enum ColorSpace {
Rgb = 0,
Bt601 = 1,
Bt709 = 2,
Bt601FR = 3,
Bt709FR = 4,
}
Expand description
An enumeration of supported color models.
It includes:
- Colorimetry
- Gamma
- Range (headroom / footroom)
- Primaries
Variants§
Rgb = 0
Gamma-corrected R’G’B’. The gamma is the one defined in ITU-R Recommendation BT.709-6 page 3, item 1.2 The relationship between gamma-corrected component (C’) and its linear value (C) is the following one: C’ = 4.5 * C if C < 0.018, 1.099 * pow(C, 0.45) - 0.099 otherwise.
Bt601 = 1
YCbCr, ITU-R Recommendation BT.601 (standard video system)
Bt709 = 2
YCbCr, ITU-R Recommendation BT.709 (CSC systems)
Bt601FR = 3
YCbCr, BT.601 (full range)
Bt709FR = 4
YCbCr, BT.709 (full range)
Trait Implementations§
source§impl Clone for ColorSpace
impl Clone for ColorSpace
source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
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 ColorSpace
impl Debug for ColorSpace
source§impl Display for ColorSpace
impl Display for ColorSpace
impl Copy for ColorSpace
Auto Trait Implementations§
impl RefUnwindSafe for ColorSpace
impl Send for ColorSpace
impl Sync for ColorSpace
impl Unpin for ColorSpace
impl UnwindSafe for ColorSpace
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