[−][src]Enum wayland_server::protocol::wl_shm::Format
pixel formats
This describes the memory layout of an individual pixel.
All renderers should support argb8888 and xrgb8888 but any other formats are optional and may not be supported by the particular renderer in use.
The drm format codes match the macros defined in drm_fourcc.h. The formats actually supported by the compositor will be reported by the format event.
Variants
Argb888832-bit ARGB format, [31:0] A:R:G:B 8:8:8:8 little endian
Xrgb888832-bit RGB format, [31:0] x:R:G:B 8:8:8:8 little endian
C88-bit color index format, [7:0] C
Rgb3328-bit RGB format, [7:0] R:G:B 3:3:2
Bgr2338-bit BGR format, [7:0] B:G:R 2:3:3
Xrgb444416-bit xRGB format, [15:0] x:R:G:B 4:4:4:4 little endian
Xbgr444416-bit xBGR format, [15:0] x:B:G:R 4:4:4:4 little endian
Rgbx444416-bit RGBx format, [15:0] R:G:B:x 4:4:4:4 little endian
Bgrx444416-bit BGRx format, [15:0] B:G:R:x 4:4:4:4 little endian
Argb444416-bit ARGB format, [15:0] A:R:G:B 4:4:4:4 little endian
Abgr444416-bit ABGR format, [15:0] A:B:G:R 4:4:4:4 little endian
Rgba444416-bit RBGA format, [15:0] R:G:B:A 4:4:4:4 little endian
Bgra444416-bit BGRA format, [15:0] B:G:R:A 4:4:4:4 little endian
Xrgb155516-bit xRGB format, [15:0] x:R:G:B 1:5:5:5 little endian
Xbgr155516-bit xBGR 1555 format, [15:0] x:B:G:R 1:5:5:5 little endian
Rgbx555116-bit RGBx 5551 format, [15:0] R:G:B:x 5:5:5:1 little endian
Bgrx555116-bit BGRx 5551 format, [15:0] B:G:R:x 5:5:5:1 little endian
Argb155516-bit ARGB 1555 format, [15:0] A:R:G:B 1:5:5:5 little endian
Abgr155516-bit ABGR 1555 format, [15:0] A:B:G:R 1:5:5:5 little endian
Rgba555116-bit RGBA 5551 format, [15:0] R:G:B:A 5:5:5:1 little endian
Bgra555116-bit BGRA 5551 format, [15:0] B:G:R:A 5:5:5:1 little endian
Rgb56516-bit RGB 565 format, [15:0] R:G:B 5:6:5 little endian
Bgr56516-bit BGR 565 format, [15:0] B:G:R 5:6:5 little endian
Rgb88824-bit RGB format, [23:0] R:G:B little endian
Bgr88824-bit BGR format, [23:0] B:G:R little endian
Xbgr888832-bit xBGR format, [31:0] x:B:G:R 8:8:8:8 little endian
Rgbx888832-bit RGBx format, [31:0] R:G:B:x 8:8:8:8 little endian
Bgrx888832-bit BGRx format, [31:0] B:G:R:x 8:8:8:8 little endian
Abgr888832-bit ABGR format, [31:0] A:B:G:R 8:8:8:8 little endian
Rgba888832-bit RGBA format, [31:0] R:G:B:A 8:8:8:8 little endian
Bgra888832-bit BGRA format, [31:0] B:G:R:A 8:8:8:8 little endian
Xrgb210101032-bit xRGB format, [31:0] x:R:G:B 2:10:10:10 little endian
Xbgr210101032-bit xBGR format, [31:0] x:B:G:R 2:10:10:10 little endian
Rgbx101010232-bit RGBx format, [31:0] R:G:B:x 10:10:10:2 little endian
Bgrx101010232-bit BGRx format, [31:0] B:G:R:x 10:10:10:2 little endian
Argb210101032-bit ARGB format, [31:0] A:R:G:B 2:10:10:10 little endian
Abgr210101032-bit ABGR format, [31:0] A:B:G:R 2:10:10:10 little endian
Rgba101010232-bit RGBA format, [31:0] R:G:B:A 10:10:10:2 little endian
Bgra101010232-bit BGRA format, [31:0] B:G:R:A 10:10:10:2 little endian
Yuyvpacked YCbCr format, [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian
Yvyupacked YCbCr format, [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian
Uyvypacked YCbCr format, [31:0] Y1:Cr0:Y0:Cb0 8:8:8:8 little endian
Vyuypacked YCbCr format, [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian
Ayuvpacked AYCbCr format, [31:0] A:Y:Cb:Cr 8:8:8:8 little endian
Nv122 plane YCbCr Cr:Cb format, 2x2 subsampled Cr:Cb plane
Nv212 plane YCbCr Cb:Cr format, 2x2 subsampled Cb:Cr plane
Nv162 plane YCbCr Cr:Cb format, 2x1 subsampled Cr:Cb plane
Nv612 plane YCbCr Cb:Cr format, 2x1 subsampled Cb:Cr plane
Yuv4103 plane YCbCr format, 4x4 subsampled Cb (1) and Cr (2) planes
Yvu4103 plane YCbCr format, 4x4 subsampled Cr (1) and Cb (2) planes
Yuv4113 plane YCbCr format, 4x1 subsampled Cb (1) and Cr (2) planes
Yvu4113 plane YCbCr format, 4x1 subsampled Cr (1) and Cb (2) planes
Yuv4203 plane YCbCr format, 2x2 subsampled Cb (1) and Cr (2) planes
Yvu4203 plane YCbCr format, 2x2 subsampled Cr (1) and Cb (2) planes
Yuv4223 plane YCbCr format, 2x1 subsampled Cb (1) and Cr (2) planes
Yvu4223 plane YCbCr format, 2x1 subsampled Cr (1) and Cb (2) planes
Yuv4443 plane YCbCr format, non-subsampled Cb (1) and Cr (2) planes
Yvu4443 plane YCbCr format, non-subsampled Cr (1) and Cb (2) planes
Methods
impl Format[src]
Trait Implementations
impl Clone for Format[src]
fn clone(&self) -> Format[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Format[src]
impl PartialEq<Format> for Format[src]
fn eq(&self, other: &Format) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Debug for Format[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Downcast for T where
T: Any, [src]
T: Any,