Struct cint::EncodedRec709 [−][src]
#[repr(C)]pub struct EncodedRec709<ComponentTy> { pub r: ComponentTy, pub g: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the encoded Rec.709/BT.709 color space.
This color space uses the BT.709 primaries, D65 white point, and BT.601 (reused in BT.709) transfer function. The encoded version is nonlinear, with the BT.601 OETF applied.
Fields
r: ComponentTyExpand description
The red component.
g: ComponentTyExpand description
The green component.
b: ComponentTyExpand description
The blue component.
Trait Implementations
impl<ComponentTy> AsRef<[ComponentTy; 3]> for EncodedRec709<ComponentTy>[src]
impl<ComponentTy> AsRef<[ComponentTy; 3]> for EncodedRec709<ComponentTy>[src]impl<ComponentTy: Clone> Clone for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: Clone> Clone for EncodedRec709<ComponentTy>[src]fn clone(&self) -> EncodedRec709<ComponentTy>[src]
fn clone(&self) -> EncodedRec709<ComponentTy>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<ComponentTy: Debug> Debug for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: Debug> Debug for EncodedRec709<ComponentTy>[src]impl<ComponentTy> From<[ComponentTy; 3]> for EncodedRec709<ComponentTy>[src]
impl<ComponentTy> From<[ComponentTy; 3]> for EncodedRec709<ComponentTy>[src]fn from([r, g, b]: [ComponentTy; 3]) -> EncodedRec709<ComponentTy>[src]
fn from([r, g, b]: [ComponentTy; 3]) -> EncodedRec709<ComponentTy>[src]Performs the conversion.
impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>[src]
impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>[src]fn from(
col_alpha: ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>[src]
fn from(
col_alpha: ColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>[src]Performs the conversion.
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>[src]
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>> for EncodedRec709<ComponentTy>[src]fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>[src]
fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, EncodedRec709<ComponentTy>>
) -> EncodedRec709<ComponentTy>[src]Performs the conversion.
impl<ComponentTy: Hash> Hash for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: Hash> Hash for EncodedRec709<ComponentTy>[src]impl<ComponentTy> Into<[ComponentTy; 3]> for EncodedRec709<ComponentTy>[src]
impl<ComponentTy> Into<[ComponentTy; 3]> for EncodedRec709<ComponentTy>[src]impl<ComponentTy: Ord> Ord for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: Ord> Ord for EncodedRec709<ComponentTy>[src]impl<ComponentTy: PartialEq> PartialEq<EncodedRec709<ComponentTy>> for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: PartialEq> PartialEq<EncodedRec709<ComponentTy>> for EncodedRec709<ComponentTy>[src]fn eq(&self, other: &EncodedRec709<ComponentTy>) -> bool[src]
fn eq(&self, other: &EncodedRec709<ComponentTy>) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &EncodedRec709<ComponentTy>) -> bool[src]
fn ne(&self, other: &EncodedRec709<ComponentTy>) -> bool[src]This method tests for !=.
impl<ComponentTy: PartialOrd> PartialOrd<EncodedRec709<ComponentTy>> for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: PartialOrd> PartialOrd<EncodedRec709<ComponentTy>> for EncodedRec709<ComponentTy>[src]fn partial_cmp(&self, other: &EncodedRec709<ComponentTy>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &EncodedRec709<ComponentTy>) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<ComponentTy: Zeroable> Zeroable for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: Zeroable> Zeroable for EncodedRec709<ComponentTy>[src]impl<ComponentTy: Copy> Copy for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: Eq> Eq for EncodedRec709<ComponentTy>[src]
impl<ComponentTy: Pod> Pod for EncodedRec709<ComponentTy>[src]
impl<ComponentTy> StructuralEq for EncodedRec709<ComponentTy>[src]
impl<ComponentTy> StructuralPartialEq for EncodedRec709<ComponentTy>[src]
Auto Trait Implementations
impl<ComponentTy> Send for EncodedRec709<ComponentTy> where
ComponentTy: Send,
ComponentTy: Send,
impl<ComponentTy> Sync for EncodedRec709<ComponentTy> where
ComponentTy: Sync,
ComponentTy: Sync,
impl<ComponentTy> Unpin for EncodedRec709<ComponentTy> where
ComponentTy: Unpin,
ComponentTy: Unpin,