pub struct YCbCr<P: Primaries, TF: TransferFunction, L: YCbCrLayout = Ycbcr>(/* private fields */);Expand description
YCbCr derived from an RGB space with primaries P and transfer function TF.
Y’ is luma, Cb is scaled blue chroma difference, Cr is scaled red chroma
difference. The conversion matrix is derived from the primaries’ luma
weights. Used in JPEG, H.264, H.265, and broadcast video. Layout defaults
to Ycbcr.
Trait Implementations§
Source§impl<P: Clone + Primaries, TF: Clone + TransferFunction, L: Clone + YCbCrLayout> Clone for YCbCr<P, TF, L>
impl<P: Clone + Primaries, TF: Clone + TransferFunction, L: Clone + YCbCrLayout> Clone for YCbCr<P, TF, L>
Source§impl<P: Debug + Primaries, TF: Debug + TransferFunction, L: Debug + YCbCrLayout> Debug for YCbCr<P, TF, L>
impl<P: Debug + Primaries, TF: Debug + TransferFunction, L: Debug + YCbCrLayout> Debug for YCbCr<P, TF, L>
Source§impl<P: Default + Primaries, TF: Default + TransferFunction, L: Default + YCbCrLayout> Default for YCbCr<P, TF, L>
impl<P: Default + Primaries, TF: Default + TransferFunction, L: Default + YCbCrLayout> Default for YCbCr<P, TF, L>
Source§impl<P: PartialEq + Primaries, TF: PartialEq + TransferFunction, L: PartialEq + YCbCrLayout> PartialEq for YCbCr<P, TF, L>
impl<P: PartialEq + Primaries, TF: PartialEq + TransferFunction, L: PartialEq + YCbCrLayout> PartialEq for YCbCr<P, TF, L>
impl<P: Primaries, TF: TransferFunction, L: YCbCrLayout + BackingStore<[f32; 3]>> BackingStore<[f32; 3]> for YCbCr<P, TF, L>
impl<P: Primaries, TF: TransferFunction, L: YCbCrLayout + BackingStore<[f32; 4]>> BackingStore<[f32; 4]> for YCbCr<P, TF, L>
impl<P: Copy + Primaries, TF: Copy + TransferFunction, L: Copy + YCbCrLayout> Copy for YCbCr<P, TF, L>
impl<P: Eq + Primaries, TF: Eq + TransferFunction, L: Eq + YCbCrLayout> Eq for YCbCr<P, TF, L>
impl<P: Primaries, TF: TransferFunction, L: YCbCrLayout> StructuralPartialEq for YCbCr<P, TF, L>
Auto Trait Implementations§
impl<P, TF, L> Freeze for YCbCr<P, TF, L>
impl<P, TF, L> RefUnwindSafe for YCbCr<P, TF, L>
impl<P, TF, L> Send for YCbCr<P, TF, L>
impl<P, TF, L> Sync for YCbCr<P, TF, L>
impl<P, TF, L> Unpin for YCbCr<P, TF, L>
impl<P, TF, L> UnsafeUnpin for YCbCr<P, TF, L>
impl<P, TF, L> UnwindSafe for YCbCr<P, TF, L>
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