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
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
Methods
impl PixelFormat
[src]
fn as_raw(&self) -> u32
[src]
Convert into the raw fourcc code
fn depth(&self) -> Option<u8>
[src]
Depth value of the format
fn bpp(&self) -> Option<u8>
[src]
Bytes per pixel of the used format
fn from_raw(raw: u32) -> Option<PixelFormat>
[src]
Try to parse format from raw fourcc code
Trait Implementations
impl Debug for PixelFormat
[src]
impl Clone for PixelFormat
[src]
fn clone(&self) -> PixelFormat
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for PixelFormat
[src]
impl PartialEq for PixelFormat
[src]
fn eq(&self, __arg_0: &PixelFormat) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.