[][src]Enum dcv_color_primitives::PixelFormat

#[repr(C)]
pub enum PixelFormat {
    Argb,
    Bgra,
    Bgr,
    Rgba,
    Rgb,
    I444,
    I422,
    I420,
    Nv12,
}

An enumeration of supported pixel formats.

Variants

Argb

RGB with alpha channel first.

32 bits per pixel

Bgra

Reverse RGB with alpha channel last.

32 bits per pixel

Bgr

Reverse RGB packed into 24 bits without padding.

24 bits per pixel

Rgba

RGB with alpha channel last.

32 bits per pixel

Rgb

RGB packed into 24 bits without padding.

24 bits per pixel

I444

YUV with one luma plane Y then 2 chroma planes U and V. Chroma planes are not sub-sampled.

24 bits per pixel

I422

YUV with one luma plane Y then 2 chroma planes U, V. Chroma planes are sub-sampled in the horizontal dimension, by a factor of 2.

16 bits per pixel

I420

YUV with one luma plane Y then U chroma plane and last the V chroma plane. The two chroma planes are sub-sampled in both the horizontal and vertical dimensions by a factor of 2.

12 bits per pixel

Nv12

YUV with one luma plane Y then one plane with U and V values interleaved. Chroma planes are subsampled in both the horizontal and vertical dimensions by a factor of 2.

12 bits per pixel

Trait Implementations

impl Clone for PixelFormat[src]

impl Copy for PixelFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.