Struct cint::EncodedBt2100PQ [−][src]
#[repr(C)]pub struct EncodedBt2100PQ<ComponentTy> { pub r: ComponentTy, pub g: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the encoded BT.2100 color space with PQ (Perceptual Quantizer) transfer function.
This color space uses the BT.2020 primaries and D65 white point and the ST 2084/“PQ” transfer function. It is nonlinear.
Fields
r: ComponentTy
The red component.
g: ComponentTy
The green component.
b: ComponentTy
The blue component.
Trait Implementations
type ComponentTy = CTy
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Clone + Copy> From<Alpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
Performs the conversion.
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: Clone + Copy> From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>> for EncodedBt2100PQ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
fn from(
col_alpha: PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>
) -> EncodedBt2100PQ<ComponentTy>
Performs the conversion.
impl<ComponentTy: PartialEq> PartialEq<EncodedBt2100PQ<ComponentTy>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: PartialEq> PartialEq<EncodedBt2100PQ<ComponentTy>> for EncodedBt2100PQ<ComponentTy>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<ComponentTy: PartialOrd> PartialOrd<EncodedBt2100PQ<ComponentTy>> for EncodedBt2100PQ<ComponentTy>
impl<ComponentTy: PartialOrd> PartialOrd<EncodedBt2100PQ<ComponentTy>> for EncodedBt2100PQ<ComponentTy>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<ComponentTy> Send for EncodedBt2100PQ<ComponentTy> where
ComponentTy: Send,
impl<ComponentTy> Sync for EncodedBt2100PQ<ComponentTy> where
ComponentTy: Sync,
impl<ComponentTy> Unpin for EncodedBt2100PQ<ComponentTy> where
ComponentTy: Unpin,