#[repr(C)]pub struct ICtCpPQ<ComponentTy = f32> {
pub i: ComponentTy,
pub ct: ComponentTy,
pub cp: ComponentTy,
}
Expand description
A color in the ICtCp color space with PQ (Perceptual Quantizer) nonlinearity.
This color space is based on the BT.2020 primaries and D65 white point, but is not an RGB color space. Instead it is a roughly perceptual color space meant to more efficiently encode HDR content.
Fields
i: ComponentTy
The I (intensity) component.
ct: ComponentTy
The Ct (chroma-tritan) component.
cp: ComponentTy
The Cp (chroma-protan) component.
Trait Implementations
sourceimpl<CTy: Clone + Copy> ColorType for ICtCpPQ<CTy>
impl<CTy: Clone + Copy> ColorType for ICtCpPQ<CTy>
type ComponentTy = CTy
const SPACE: Spaces = Spaces::ICtCpPQ
const NUM_COMPONENTS: usize = 3usize
sourceimpl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>> for ICtCpPQ<ComponentTy>
sourcefn from(
col_alpha: PremultipliedAlpha<ICtCpPQ<ComponentTy>>
) -> ICtCpPQ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<ICtCpPQ<ComponentTy>>
) -> ICtCpPQ<ComponentTy>
Converts to this type from the input type.
sourceimpl<ComponentTy: Ord> Ord for ICtCpPQ<ComponentTy>
impl<ComponentTy: Ord> Ord for ICtCpPQ<ComponentTy>
sourceimpl<ComponentTy: PartialOrd> PartialOrd<ICtCpPQ<ComponentTy>> for ICtCpPQ<ComponentTy>
impl<ComponentTy: PartialOrd> PartialOrd<ICtCpPQ<ComponentTy>> for ICtCpPQ<ComponentTy>
sourcefn partial_cmp(&self, other: &ICtCpPQ<ComponentTy>) -> Option<Ordering>
fn partial_cmp(&self, other: &ICtCpPQ<ComponentTy>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<ComponentTy: Copy> Copy for ICtCpPQ<ComponentTy>
impl<ComponentTy: Eq> Eq for ICtCpPQ<ComponentTy>
impl<ComponentTy: Pod> Pod for ICtCpPQ<ComponentTy>
impl<ComponentTy> StructuralEq for ICtCpPQ<ComponentTy>
impl<ComponentTy> StructuralPartialEq for ICtCpPQ<ComponentTy>
Auto Trait Implementations
impl<ComponentTy> RefUnwindSafe for ICtCpPQ<ComponentTy> where
ComponentTy: RefUnwindSafe,
impl<ComponentTy> Send for ICtCpPQ<ComponentTy> where
ComponentTy: Send,
impl<ComponentTy> Sync for ICtCpPQ<ComponentTy> where
ComponentTy: Sync,
impl<ComponentTy> Unpin for ICtCpPQ<ComponentTy> where
ComponentTy: Unpin,
impl<ComponentTy> UnwindSafe for ICtCpPQ<ComponentTy> where
ComponentTy: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
.