Struct framing::Yuv [] [src]

pub struct Yuv<T = u8>(pub T, pub T, pub T);

A three-byte long pixel in the Y'CbCr format.

Conversion to and from RGBA follows the BT.709 standard for 8-bit digital representation of Y'CbCr encoded pixels.

Trait Implementations

impl<T: Clone> Clone for Yuv<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Yuv<T>
[src]

impl<T: Debug> Debug for Yuv<T>
[src]

Formats the value using the given formatter.

impl<T: Eq> Eq for Yuv<T>
[src]

impl<T: PartialEq> PartialEq for Yuv<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Hash> Hash for Yuv<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl AsBytes for Yuv
[src]

The type that represents the collection of bytes. Read more

The number of channels in each pixel. Read more

impl From<[u8; 3]> for Yuv
[src]

Performs the conversion.

impl From<Rgba> for Yuv
[src]

Performs the conversion.