Package org.freedesktop.wayland.shared
Enum Class WlShmFormat
- All Implemented Interfaces:
Serializable
,Comparable<WlShmFormat>
,Constable
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, except argb8888 and xrgb8888. The formats actually supported by the compositor will be reported by the format event.
For all wl_shm formats and unless specified in another protocol extension, pre-multiplied alpha is used for pixel values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription16-bit ABGR 1555 format, [15:0] A:B:G:R 1:5:5:5 little endian[63:0] A:B:G:R 16:16:16:16 little endian[63:0] A:B:G:R 16:16:16:16 little endian32-bit ABGR format, [31:0] A:B:G:R 2:10:10:10 little endian16-bit ABGR format, [15:0] A:B:G:R 4:4:4:4 little endian32-bit ABGR format, [31:0] A:B:G:R 8:8:8:8 little endian16-bit ARGB 1555 format, [15:0] A:R:G:B 1:5:5:5 little endian[63:0] A:R:G:B 16:16:16:16 little endian[63:0] A:R:G:B 16:16:16:16 little endian32-bit ARGB format, [31:0] A:R:G:B 2:10:10:10 little endian16-bit ARGB format, [15:0] A:R:G:B 4:4:4:4 little endian32-bit ARGB format, [31:0] A:R:G:B 8:8:8:8 little endian[31:0] A:Cr:Cb:Y 8:8:8:8 little endian[63:0] A:x:B:x:G:x:R:x 10:6:10:6:10:6:10:6 little endianpacked AYCbCr format, [31:0] A:Y:Cb:Cr 8:8:8:8 little endian8-bit BGR format, [7:0] B:G:R 2:3:316-bit BGR 565 format, [15:0] B:G:R 5:6:5 little endian24-bit BGR format, [23:0] B:G:R little endian32-bit BGRA format, [31:0] B:G:R:A 10:10:10:2 little endian16-bit BGRA format, [15:0] B:G:R:A 4:4:4:4 little endian16-bit BGRA 5551 format, [15:0] B:G:R:A 5:5:5:1 little endian32-bit BGRA format, [31:0] B:G:R:A 8:8:8:8 little endian32-bit BGRx format, [31:0] B:G:R:x 10:10:10:2 little endian16-bit BGRx format, [15:0] B:G:R:x 4:4:4:4 little endian16-bit BGRx 5551 format, [15:0] B:G:R:x 5:5:5:1 little endian32-bit BGRx format, [31:0] B:G:R:x 8:8:8:8 little endian[7:0] C0:C1:C2:C3:C4:C5:C6:C7 1:1:1:1:1:1:1:1 eight pixels/byte[7:0] C0:C1:C2:C3 2:2:2:2 four pixels/byte[7:0] C0:C1 4:4 two pixels/byte8-bit color index format, [7:0] C[7:0] D0:D1:D2:D3:D4:D5:D6:D7 1:1:1:1:1:1:1:1 eight pixels/byte[7:0] D0:D1:D2:D3 2:2:2:2 four pixels/byte[7:0] D0:D1 4:4 two pixels/byte[7:0] D[31:0] G:R 16:16 little endian[15:0] G:R 8:8 little endian2 plane YCbCr Cr:Cb format, 2x2 subsampled Cr:Cb plane2x2 subsampled Cr:Cb plane2 plane YCbCr Cr:Cb format, 2x1 subsampled Cr:Cb plane2 plane YCbCr Cb:Cr format, 2x2 subsampled Cb:Cr planenon-subsampled Cr:Cb planenon-subsampled Cb:Cr plane2 plane YCbCr Cb:Cr format, 2x1 subsampled Cb:Cr plane2x2 subsampled Cr:Cb plane 10 bits per channel2x2 subsampled Cr:Cb plane 12 bits per channel2x2 subsampled Cr:Cb plane 16 bits per channel2x2 subsampled Cr:Cb plane 10 bits per channel packed2x1 subsampled Cr:Cb plane, 10 bit per channel[7:0] R0:R1:R2:R3:R4:R5:R6:R7 1:1:1:1:1:1:1:1 eight pixels/byte[15:0] x:R 6:10 little endian[15:0] x:R 4:12 little endian[15:0] R little endian[7:0] R0:R1:R2:R3 2:2:2:2 four pixels/byte[7:0] R0:R1 4:4 two pixels/byte[7:0] R[31:0] R:G 16:16 little endian[15:0] R:G 8:8 little endian8-bit RGB format, [7:0] R:G:B 3:3:216-bit RGB 565 format, [15:0] R:G:B 5:6:5 little endian24-bit RGB format, [23:0] R:G:B little endian32-bit RGBA format, [31:0] R:G:B:A 10:10:10:2 little endian16-bit RBGA format, [15:0] R:G:B:A 4:4:4:4 little endian16-bit RGBA 5551 format, [15:0] R:G:B:A 5:5:5:1 little endian32-bit RGBA format, [31:0] R:G:B:A 8:8:8:8 little endian32-bit RGBx format, [31:0] R:G:B:x 10:10:10:2 little endian16-bit RGBx format, [15:0] R:G:B:x 4:4:4:4 little endian16-bit RGBx 5551 format, [15:0] R:G:B:x 5:5:5:1 little endian32-bit RGBx format, [31:0] R:G:B:x 8:8:8:8 little endianpacked YCbCr format, [31:0] Y1:Cr0:Y0:Cb0 8:8:8:8 little endianY followed by U then V, 10:10:10.[23:0] Cr:Cb:Y 8:8:8 little endianpacked YCbCr format, [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian[63:0] X3:X2:Y3:0:Cr0:0:Y2:0:X1:X0:Y1:0:Cb0:0:Y0:0 1:1:8:2:8:2:8:2:1:1:8:2:8:2:8:2 little endian[63:0] X3:X2:Y3:Cr0:Y2:X1:X0:Y1:Cb0:Y0 1:1:10:10:10:1:1:10:10:10 little endian16-bit xBGR 1555 format, [15:0] x:B:G:R 1:5:5:5 little endian[63:0] x:B:G:R 16:16:16:16 little endian[63:0] x:B:G:R 16:16:16:16 little endian32-bit xBGR format, [31:0] x:B:G:R 2:10:10:10 little endian16-bit xBGR format, [15:0] x:B:G:R 4:4:4:4 little endian32-bit xBGR format, [31:0] x:B:G:R 8:8:8:8 little endian16-bit xRGB format, [15:0] x:R:G:B 1:5:5:5 little endian[63:0] x:R:G:B 16:16:16:16 little endian[63:0] x:R:G:B 16:16:16:16 little endian32-bit xRGB format, [31:0] x:R:G:B 2:10:10:10 little endian16-bit xRGB format, [15:0] x:R:G:B 4:4:4:4 little endian32-bit RGB format, [31:0] x:R:G:B 8:8:8:8 little endian[31:0] X:Cr:Cb:Y 8:8:8:8 little endian[63:0] X:0:Cr:0:Y:0:Cb:0 12:4:12:4:12:4:12:4 little endian[63:0] X:Cr:Y:Cb 16:16:16:16 little endian[31:0] X:Cr:Y:Cb 2:10:10:10 little endian[31:0] X:Y:Cb:Cr 8:8:8:8 little endian[63:0] A3:A2:Y3:0:Cr0:0:Y2:0:A1:A0:Y1:0:Cb0:0:Y0:0 1:1:8:2:8:2:8:2:1:1:8:2:8:2:8:2 little endian[63:0] A3:A2:Y3:Cr0:Y2:A1:A0:Y1:Cb0:Y0 1:1:10:10:10:1:1:10:10:10 little endian[63:0] Cr0:0:Y1:0:Cb0:0:Y0:0 10:6:10:6:10:6:10:6 little endian per 2 Y pixels[63:0] Cr0:0:Y1:0:Cb0:0:Y0:0 12:4:12:4:12:4:12:4 little endian per 2 Y pixels[63:0] Cr0:Y1:Cb0:Y0 16:16:16:16 little endian per 2 Y pixels[31:0] A:Cr:Y:Cb 2:10:10:10 little endian[63:0] A:0:Cr:0:Y:0:Cb:0 12:4:12:4:12:4:12:4 little endian[63:0] A:Cr:Y:Cb 16:16:16:16 little endian3 plane YCbCr format, 4x4 subsampled Cb (1) and Cr (2) planes3 plane YCbCr format, 4x1 subsampled Cb (1) and Cr (2) planes3 plane YCbCr format, 2x2 subsampled Cb (1) and Cr (2) planes3 plane YCbCr format, 2x1 subsampled Cb (1) and Cr (2) planes3 plane YCbCr format, non-subsampled Cb (1) and Cr (2) planespacked YCbCr format, [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian3 plane YCbCr format, 4x4 subsampled Cr (1) and Cb (2) planes3 plane YCbCr format, 4x1 subsampled Cr (1) and Cb (2) planes3 plane YCbCr format, 2x2 subsampled Cr (1) and Cb (2) planes3 plane YCbCr format, 2x1 subsampled Cr (1) and Cb (2) planes3 plane YCbCr format, non-subsampled Cr (1) and Cb (2) planespacked YCbCr format, [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static WlShmFormat
of
(int i) static WlShmFormat
Returns the enum constant of this class with the specified name.static WlShmFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARGB8888
32-bit ARGB format, [31:0] A:R:G:B 8:8:8:8 little endian -
XRGB8888
32-bit RGB format, [31:0] x:R:G:B 8:8:8:8 little endian -
C8
8-bit color index format, [7:0] C -
RGB332
8-bit RGB format, [7:0] R:G:B 3:3:2 -
BGR233
8-bit BGR format, [7:0] B:G:R 2:3:3 -
XRGB4444
16-bit xRGB format, [15:0] x:R:G:B 4:4:4:4 little endian -
XBGR4444
16-bit xBGR format, [15:0] x:B:G:R 4:4:4:4 little endian -
RGBX4444
16-bit RGBx format, [15:0] R:G:B:x 4:4:4:4 little endian -
BGRX4444
16-bit BGRx format, [15:0] B:G:R:x 4:4:4:4 little endian -
ARGB4444
16-bit ARGB format, [15:0] A:R:G:B 4:4:4:4 little endian -
ABGR4444
16-bit ABGR format, [15:0] A:B:G:R 4:4:4:4 little endian -
RGBA4444
16-bit RBGA format, [15:0] R:G:B:A 4:4:4:4 little endian -
BGRA4444
16-bit BGRA format, [15:0] B:G:R:A 4:4:4:4 little endian -
XRGB1555
16-bit xRGB format, [15:0] x:R:G:B 1:5:5:5 little endian -
XBGR1555
16-bit xBGR 1555 format, [15:0] x:B:G:R 1:5:5:5 little endian -
RGBX5551
16-bit RGBx 5551 format, [15:0] R:G:B:x 5:5:5:1 little endian -
BGRX5551
16-bit BGRx 5551 format, [15:0] B:G:R:x 5:5:5:1 little endian -
ARGB1555
16-bit ARGB 1555 format, [15:0] A:R:G:B 1:5:5:5 little endian -
ABGR1555
16-bit ABGR 1555 format, [15:0] A:B:G:R 1:5:5:5 little endian -
RGBA5551
16-bit RGBA 5551 format, [15:0] R:G:B:A 5:5:5:1 little endian -
BGRA5551
16-bit BGRA 5551 format, [15:0] B:G:R:A 5:5:5:1 little endian -
RGB565
16-bit RGB 565 format, [15:0] R:G:B 5:6:5 little endian -
BGR565
16-bit BGR 565 format, [15:0] B:G:R 5:6:5 little endian -
RGB888
24-bit RGB format, [23:0] R:G:B little endian -
BGR888
24-bit BGR format, [23:0] B:G:R little endian -
XBGR8888
32-bit xBGR format, [31:0] x:B:G:R 8:8:8:8 little endian -
RGBX8888
32-bit RGBx format, [31:0] R:G:B:x 8:8:8:8 little endian -
BGRX8888
32-bit BGRx format, [31:0] B:G:R:x 8:8:8:8 little endian -
ABGR8888
32-bit ABGR format, [31:0] A:B:G:R 8:8:8:8 little endian -
RGBA8888
32-bit RGBA format, [31:0] R:G:B:A 8:8:8:8 little endian -
BGRA8888
32-bit BGRA format, [31:0] B:G:R:A 8:8:8:8 little endian -
XRGB2101010
32-bit xRGB format, [31:0] x:R:G:B 2:10:10:10 little endian -
XBGR2101010
32-bit xBGR format, [31:0] x:B:G:R 2:10:10:10 little endian -
RGBX1010102
32-bit RGBx format, [31:0] R:G:B:x 10:10:10:2 little endian -
BGRX1010102
32-bit BGRx format, [31:0] B:G:R:x 10:10:10:2 little endian -
ARGB2101010
32-bit ARGB format, [31:0] A:R:G:B 2:10:10:10 little endian -
ABGR2101010
32-bit ABGR format, [31:0] A:B:G:R 2:10:10:10 little endian -
RGBA1010102
32-bit RGBA format, [31:0] R:G:B:A 10:10:10:2 little endian -
BGRA1010102
32-bit BGRA format, [31:0] B:G:R:A 10:10:10:2 little endian -
YUYV
packed YCbCr format, [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian -
YVYU
packed YCbCr format, [31:0] Cb0:Y1:Cr0:Y0 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 -
AYUV
packed AYCbCr format, [31:0] A:Y:Cb:Cr 8:8:8:8 little endian -
NV12
2 plane YCbCr Cr:Cb format, 2x2 subsampled Cr:Cb plane -
NV21
2 plane YCbCr Cb:Cr format, 2x2 subsampled Cb:Cr plane -
NV16
2 plane YCbCr Cr:Cb format, 2x1 subsampled Cr:Cb plane -
NV61
2 plane YCbCr Cb:Cr format, 2x1 subsampled Cb:Cr plane -
YUV410
3 plane YCbCr format, 4x4 subsampled Cb (1) and Cr (2) planes -
YVU410
3 plane YCbCr format, 4x4 subsampled Cr (1) and Cb (2) planes -
YUV411
3 plane YCbCr format, 4x1 subsampled Cb (1) and Cr (2) planes -
YVU411
3 plane YCbCr format, 4x1 subsampled Cr (1) and Cb (2) planes -
YUV420
3 plane YCbCr format, 2x2 subsampled Cb (1) and Cr (2) planes -
YVU420
3 plane YCbCr format, 2x2 subsampled Cr (1) and Cb (2) planes -
YUV422
3 plane YCbCr format, 2x1 subsampled Cb (1) and Cr (2) planes -
YVU422
3 plane YCbCr format, 2x1 subsampled Cr (1) and Cb (2) planes -
YUV444
3 plane YCbCr format, non-subsampled Cb (1) and Cr (2) planes -
YVU444
3 plane YCbCr format, non-subsampled Cr (1) and Cb (2) planes -
R8
[7:0] R -
R16
[15:0] R little endian -
RG88
[15:0] R:G 8:8 little endian -
GR88
[15:0] G:R 8:8 little endian -
RG1616
[31:0] R:G 16:16 little endian -
GR1616
[31:0] G:R 16:16 little endian -
XRGB16161616F
[63:0] x:R:G:B 16:16:16:16 little endian -
XBGR16161616F
[63:0] x:B:G:R 16:16:16:16 little endian -
ARGB16161616F
[63:0] A:R:G:B 16:16:16:16 little endian -
ABGR16161616F
[63:0] A:B:G:R 16:16:16:16 little endian -
XYUV8888
[31:0] X:Y:Cb:Cr 8:8:8:8 little endian -
VUY888
[23:0] Cr:Cb:Y 8:8:8 little endian -
VUY101010
Y followed by U then V, 10:10:10. Non-linear modifier only -
Y210
[63:0] Cr0:0:Y1:0:Cb0:0:Y0:0 10:6:10:6:10:6:10:6 little endian per 2 Y pixels -
Y212
[63:0] Cr0:0:Y1:0:Cb0:0:Y0:0 12:4:12:4:12:4:12:4 little endian per 2 Y pixels -
Y216
[63:0] Cr0:Y1:Cb0:Y0 16:16:16:16 little endian per 2 Y pixels -
Y410
[31:0] A:Cr:Y:Cb 2:10:10:10 little endian -
Y412
[63:0] A:0:Cr:0:Y:0:Cb:0 12:4:12:4:12:4:12:4 little endian -
Y416
[63:0] A:Cr:Y:Cb 16:16:16:16 little endian -
XVYU2101010
[31:0] X:Cr:Y:Cb 2:10:10:10 little endian -
XVYU12_16161616
[63:0] X:0:Cr:0:Y:0:Cb:0 12:4:12:4:12:4:12:4 little endian -
XVYU16161616
[63:0] X:Cr:Y:Cb 16:16:16:16 little endian -
Y0L0
[63:0] A3:A2:Y3:0:Cr0:0:Y2:0:A1:A0:Y1:0:Cb0:0:Y0:0 1:1:8:2:8:2:8:2:1:1:8:2:8:2:8:2 little endian -
X0L0
[63:0] X3:X2:Y3:0:Cr0:0:Y2:0:X1:X0:Y1:0:Cb0:0:Y0:0 1:1:8:2:8:2:8:2:1:1:8:2:8:2:8:2 little endian -
Y0L2
[63:0] A3:A2:Y3:Cr0:Y2:A1:A0:Y1:Cb0:Y0 1:1:10:10:10:1:1:10:10:10 little endian -
X0L2
[63:0] X3:X2:Y3:Cr0:Y2:X1:X0:Y1:Cb0:Y0 1:1:10:10:10:1:1:10:10:10 little endian -
YUV420_8BIT
-
YUV420_10BIT
-
XRGB8888_A8
-
XBGR8888_A8
-
RGBX8888_A8
-
BGRX8888_A8
-
RGB888_A8
-
BGR888_A8
-
RGB565_A8
-
BGR565_A8
-
NV24
non-subsampled Cr:Cb plane -
NV42
non-subsampled Cb:Cr plane -
P210
2x1 subsampled Cr:Cb plane, 10 bit per channel -
P010
2x2 subsampled Cr:Cb plane 10 bits per channel -
P012
2x2 subsampled Cr:Cb plane 12 bits per channel -
P016
2x2 subsampled Cr:Cb plane 16 bits per channel -
AXBXGXRX106106106106
[63:0] A:x:B:x:G:x:R:x 10:6:10:6:10:6:10:6 little endian -
NV15
2x2 subsampled Cr:Cb plane -
Q410
-
Q401
-
XRGB16161616
[63:0] x:R:G:B 16:16:16:16 little endian -
XBGR16161616
[63:0] x:B:G:R 16:16:16:16 little endian -
ARGB16161616
[63:0] A:R:G:B 16:16:16:16 little endian -
ABGR16161616
[63:0] A:B:G:R 16:16:16:16 little endian -
C1
[7:0] C0:C1:C2:C3:C4:C5:C6:C7 1:1:1:1:1:1:1:1 eight pixels/byte -
C2
[7:0] C0:C1:C2:C3 2:2:2:2 four pixels/byte -
C4
[7:0] C0:C1 4:4 two pixels/byte -
D1
[7:0] D0:D1:D2:D3:D4:D5:D6:D7 1:1:1:1:1:1:1:1 eight pixels/byte -
D2
[7:0] D0:D1:D2:D3 2:2:2:2 four pixels/byte -
D4
[7:0] D0:D1 4:4 two pixels/byte -
D8
[7:0] D -
R1
[7:0] R0:R1:R2:R3:R4:R5:R6:R7 1:1:1:1:1:1:1:1 eight pixels/byte -
R2
[7:0] R0:R1:R2:R3 2:2:2:2 four pixels/byte -
R4
[7:0] R0:R1 4:4 two pixels/byte -
R10
[15:0] x:R 6:10 little endian -
R12
[15:0] x:R 4:12 little endian -
AVUY8888
[31:0] A:Cr:Cb:Y 8:8:8:8 little endian -
XVUY8888
[31:0] X:Cr:Cb:Y 8:8:8:8 little endian -
P030
2x2 subsampled Cr:Cb plane 10 bits per channel packed
-
-
Field Details
-
value
public final int value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
of
-