Enum drm::buffer::PixelFormat [] [src]

pub enum PixelFormat {
    C8,
    R8,
    GR88,
    RGB332,
    BGR233,
    XRGB4444,
    XBGR4444,
    RGBX4444,
    BGRX4444,
    ARGB4444,
    ABGR4444,
    RGBA4444,
    BGRA4444,
    XRGB1555,
    XBGR1555,
    RGBX5551,
    BGRX5551,
    ARGB1555,
    ABGR1555,
    RGBA5551,
    BGRA5551,
    RGB565,
    BGR565,
    XRGB8888,
    XBGR8888,
    RGBX8888,
    BGRX8888,
    ARGB8888,
    ABGR8888,
    RGBA8888,
    BGRA8888,
    XRGB2101010,
    XBGR2101010,
    RGBX1010102,
    BGRX1010102,
    ARGB2101010,
    ABGR2101010,
    RGBA1010102,
    BGRA1010102,
    YUYV,
    YVYU,
    UYVY,
    VYUY,
    AYUV,
}

Possible pixel formats of a buffer

Variants

Methods

impl PixelFormat
[src]

[src]

Convert into the raw fourcc code

[src]

Depth value of the format

[src]

Bytes per pixel of the used format

[src]

Try to parse format from raw fourcc code

Trait Implementations

impl Debug for PixelFormat
[src]

[src]

Formats the value using the given formatter.

impl Clone for PixelFormat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for PixelFormat
[src]

impl PartialEq for PixelFormat
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for PixelFormat
[src]

impl Hash for PixelFormat
[src]

[src]

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

1.3.0
[src]

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