public enum WlShmFormat extends Enum<WlShmFormat>
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.
| Enum Constant and Description |
|---|
ABGR1555
16-bit ABGR 1555 format, [15:0] A:B:G:R 1:5:5:5 little endian
|
ABGR2101010
32-bit ABGR format, [31:0] A:B:G:R 2:10:10:10 little endian
|
ABGR4444
16-bit ABGR format, [15:0] A:B:G:R 4:4:4:4 little endian
|
ABGR8888
32-bit ABGR format, [31:0] A:B:G:R 8:8:8:8 little endian
|
ARGB1555
16-bit ARGB 1555 format, [15:0] A:R:G:B 1:5:5:5 little endian
|
ARGB2101010
32-bit ARGB format, [31:0] A:R:G:B 2:10:10:10 little endian
|
ARGB4444
16-bit ARGB format, [15:0] A:R:G:B 4:4:4:4 little endian
|
ARGB8888
32-bit ARGB format, [31:0] A:R:G:B 8:8:8:8 little endian
|
AYUV
packed AYCbCr format, [31:0] A:Y:Cb:Cr 8:8:8:8 little endian
|
BGR233
8-bit BGR format, [7:0] B:G:R 2:3:3
|
BGR565
16-bit BGR 565 format, [15:0] B:G:R 5:6:5 little endian
|
BGR888
24-bit BGR format, [23:0] B:G:R little endian
|
BGRA1010102
32-bit BGRA format, [31:0] B:G:R:A 10:10:10:2 little endian
|
BGRA4444
16-bit BGRA format, [15:0] B:G:R:A 4:4:4:4 little endian
|
BGRA5551
16-bit BGRA 5551 format, [15:0] B:G:R:A 5:5:5:1 little endian
|
BGRA8888
32-bit BGRA format, [31:0] B:G:R:A 8:8:8:8 little endian
|
BGRX1010102
32-bit BGRx format, [31:0] B:G:R:x 10:10:10:2 little endian
|
BGRX4444
16-bit BGRx format, [15:0] B:G:R:x 4:4:4:4 little endian
|
BGRX5551
16-bit BGRx 5551 format, [15:0] B:G:R:x 5:5:5:1 little endian
|
BGRX8888
32-bit BGRx format, [31:0] B:G:R:x 8:8:8:8 little endian
|
C8
8-bit color index format, [7:0] C
|
NV12
2 plane YCbCr Cr:Cb format, 2x2 subsampled Cr:Cb plane
|
NV16
2 plane YCbCr Cr:Cb format, 2x1 subsampled Cr:Cb plane
|
NV21
2 plane YCbCr Cb:Cr format, 2x2 subsampled Cb:Cr plane
|
NV61
2 plane YCbCr Cb:Cr format, 2x1 subsampled Cb:Cr plane
|
RGB332
8-bit RGB format, [7:0] R:G:B 3:3:2
|
RGB565
16-bit RGB 565 format, [15:0] R:G:B 5:6:5 little endian
|
RGB888
24-bit RGB format, [23:0] R:G:B little endian
|
RGBA1010102
32-bit RGBA format, [31:0] R:G:B:A 10:10:10:2 little endian
|
RGBA4444
16-bit RBGA format, [15:0] R:G:B:A 4:4:4:4 little endian
|
RGBA5551
16-bit RGBA 5551 format, [15:0] R:G:B:A 5:5:5:1 little endian
|
RGBA8888
32-bit RGBA format, [31:0] R:G:B:A 8:8:8:8 little endian
|
RGBX1010102
32-bit RGBx format, [31:0] R:G:B:x 10:10:10:2 little endian
|
RGBX4444
16-bit RGBx format, [15:0] R:G:B:x 4:4:4:4 little endian
|
RGBX5551
16-bit RGBx 5551 format, [15:0] R:G:B:x 5:5:5:1 little endian
|
RGBX8888
32-bit RGBx format, [31:0] R:G:B:x 8:8:8:8 little endian
|
UYVY
packed YCbCr format, [31:0] Y1:Cr0:Y0:Cb0 8:8:8:8 little endian
|
VYUY
packed YCbCr format, [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian
|
XBGR1555
16-bit xBGR 1555 format, [15:0] x:B:G:R 1:5:5:5 little endian
|
XBGR2101010
32-bit xBGR format, [31:0] x:B:G:R 2:10:10:10 little endian
|
XBGR4444
16-bit xBGR format, [15:0] x:B:G:R 4:4:4:4 little endian
|
XBGR8888
32-bit xBGR format, [31:0] x:B:G:R 8:8:8:8 little endian
|
XRGB1555
16-bit xRGB format, [15:0] x:R:G:B 1:5:5:5 little endian
|
XRGB2101010
32-bit xRGB format, [31:0] x:R:G:B 2:10:10:10 little endian
|
XRGB4444
16-bit xRGB format, [15:0] x:R:G:B 4:4:4:4 little endian
|
XRGB8888
32-bit RGB format, [31:0] x:R:G:B 8:8:8:8 little endian
|
YUV410
3 plane YCbCr format, 4x4 subsampled Cb (1) and Cr (2) planes
|
YUV411
3 plane YCbCr format, 4x1 subsampled Cb (1) and Cr (2) planes
|
YUV420
3 plane YCbCr format, 2x2 subsampled Cb (1) and Cr (2) planes
|
YUV422
3 plane YCbCr format, 2x1 subsampled Cb (1) and Cr (2) planes
|
YUV444
3 plane YCbCr format, non-subsampled Cb (1) and Cr (2) planes
|
YUYV
packed YCbCr format, [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian
|
YVU410
3 plane YCbCr format, 4x4 subsampled Cr (1) and Cb (2) planes
|
YVU411
3 plane YCbCr format, 4x1 subsampled Cr (1) and Cb (2) planes
|
YVU420
3 plane YCbCr format, 2x2 subsampled Cr (1) and Cb (2) planes
|
YVU422
3 plane YCbCr format, 2x1 subsampled Cr (1) and Cb (2) planes
|
YVU444
3 plane YCbCr format, non-subsampled Cr (1) and Cb (2) planes
|
YVYU
packed YCbCr format, [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
static WlShmFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WlShmFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WlShmFormat ARGB8888
public static final WlShmFormat XRGB8888
public static final WlShmFormat C8
public static final WlShmFormat RGB332
public static final WlShmFormat BGR233
public static final WlShmFormat XRGB4444
public static final WlShmFormat XBGR4444
public static final WlShmFormat RGBX4444
public static final WlShmFormat BGRX4444
public static final WlShmFormat ARGB4444
public static final WlShmFormat ABGR4444
public static final WlShmFormat RGBA4444
public static final WlShmFormat BGRA4444
public static final WlShmFormat XRGB1555
public static final WlShmFormat XBGR1555
public static final WlShmFormat RGBX5551
public static final WlShmFormat BGRX5551
public static final WlShmFormat ARGB1555
public static final WlShmFormat ABGR1555
public static final WlShmFormat RGBA5551
public static final WlShmFormat BGRA5551
public static final WlShmFormat RGB565
public static final WlShmFormat BGR565
public static final WlShmFormat RGB888
public static final WlShmFormat BGR888
public static final WlShmFormat XBGR8888
public static final WlShmFormat RGBX8888
public static final WlShmFormat BGRX8888
public static final WlShmFormat ABGR8888
public static final WlShmFormat RGBA8888
public static final WlShmFormat BGRA8888
public static final WlShmFormat XRGB2101010
public static final WlShmFormat XBGR2101010
public static final WlShmFormat RGBX1010102
public static final WlShmFormat BGRX1010102
public static final WlShmFormat ARGB2101010
public static final WlShmFormat ABGR2101010
public static final WlShmFormat RGBA1010102
public static final WlShmFormat BGRA1010102
public static final WlShmFormat YUYV
public static final WlShmFormat YVYU
public static final WlShmFormat UYVY
public static final WlShmFormat VYUY
public static final WlShmFormat AYUV
public static final WlShmFormat NV12
public static final WlShmFormat NV21
public static final WlShmFormat NV16
public static final WlShmFormat NV61
public static final WlShmFormat YUV410
public static final WlShmFormat YVU410
public static final WlShmFormat YUV411
public static final WlShmFormat YVU411
public static final WlShmFormat YUV420
public static final WlShmFormat YVU420
public static final WlShmFormat YUV422
public static final WlShmFormat YVU422
public static final WlShmFormat YUV444
public static final WlShmFormat YVU444
public static WlShmFormat[] values()
for (WlShmFormat c : WlShmFormat.values()) System.out.println(c);
public static WlShmFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.