#[repr(C)]pub struct ICtCpHLG<ComponentTy = f32> {
pub i: ComponentTy,
pub ct: ComponentTy,
pub cp: ComponentTy,
}Expand description
A color in the ICtCp color space with HLG (Hybrid Log-Gamma) 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: ComponentTyThe I (intensity) component.
ct: ComponentTyThe Ct (chroma-tritan) component.
cp: ComponentTyThe Cp (chroma-protan) component.
Trait Implementations§
Source§impl<ComponentTy> AsMut<[ComponentTy; 3]> for ICtCpHLG<ComponentTy>
impl<ComponentTy> AsMut<[ComponentTy; 3]> for ICtCpHLG<ComponentTy>
Source§fn as_mut(&mut self) -> &mut [ComponentTy; 3]
fn as_mut(&mut self) -> &mut [ComponentTy; 3]
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<ComponentTy> AsRef<[ComponentTy; 3]> for ICtCpHLG<ComponentTy>
impl<ComponentTy> AsRef<[ComponentTy; 3]> for ICtCpHLG<ComponentTy>
Source§fn as_ref(&self) -> &[ComponentTy; 3]
fn as_ref(&self) -> &[ComponentTy; 3]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<ComponentTy> From<[ComponentTy; 3]> for ICtCpHLG<ComponentTy>
impl<ComponentTy> From<[ComponentTy; 3]> for ICtCpHLG<ComponentTy>
Source§fn from([i, ct, cp]: [ComponentTy; 3]) -> ICtCpHLG<ComponentTy>
fn from([i, ct, cp]: [ComponentTy; 3]) -> ICtCpHLG<ComponentTy>
Converts to this type from the input type.
Source§impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy>
impl<ComponentTy: Copy> From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>> for ICtCpHLG<ComponentTy>
Source§impl<ComponentTy> Into<[ComponentTy; 3]> for ICtCpHLG<ComponentTy>
impl<ComponentTy> Into<[ComponentTy; 3]> for ICtCpHLG<ComponentTy>
Source§fn into(self) -> [ComponentTy; 3]
fn into(self) -> [ComponentTy; 3]
Converts this type into the (usually inferred) input type.
Source§impl<ComponentTy: Ord> Ord for ICtCpHLG<ComponentTy>
impl<ComponentTy: Ord> Ord for ICtCpHLG<ComponentTy>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<ComponentTy: PartialOrd> PartialOrd for ICtCpHLG<ComponentTy>
impl<ComponentTy: PartialOrd> PartialOrd for ICtCpHLG<ComponentTy>
impl<ComponentTy: Copy> Copy for ICtCpHLG<ComponentTy>
impl<ComponentTy: Eq> Eq for ICtCpHLG<ComponentTy>
impl<ComponentTy: Pod> Pod for ICtCpHLG<ComponentTy>
impl<ComponentTy> StructuralPartialEq for ICtCpHLG<ComponentTy>
Auto Trait Implementations§
impl<ComponentTy> Freeze for ICtCpHLG<ComponentTy>where
ComponentTy: Freeze,
impl<ComponentTy> RefUnwindSafe for ICtCpHLG<ComponentTy>where
ComponentTy: RefUnwindSafe,
impl<ComponentTy> Send for ICtCpHLG<ComponentTy>where
ComponentTy: Send,
impl<ComponentTy> Sync for ICtCpHLG<ComponentTy>where
ComponentTy: Sync,
impl<ComponentTy> Unpin for ICtCpHLG<ComponentTy>where
ComponentTy: Unpin,
impl<ComponentTy> UnwindSafe for ICtCpHLG<ComponentTy>where
ComponentTy: UnwindSafe,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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.Source§fn 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.