26 #define MAKE_RGB_INFO(rl, ro, gl, go, bl, bo, al, ao) \ 27 .rgb = { { (rl), (ro) }, { (gl), (go) }, { (bl), (bo) }, { (al), (ao) } } 29 #define MAKE_YUV_INFO(order, xsub, ysub, chroma_stride) \ 30 .yuv = { (order), (xsub), (ysub), (chroma_stride) } 84 { DRM_FORMAT_ARGB4444,
"AR12",
MAKE_RGB_INFO(4, 8, 4, 4, 4, 0, 4, 12) },
85 { DRM_FORMAT_XRGB4444,
"XR12",
MAKE_RGB_INFO(4, 8, 4, 4, 4, 0, 0, 0) },
86 { DRM_FORMAT_ABGR4444,
"AB12",
MAKE_RGB_INFO(4, 0, 4, 4, 4, 8, 4, 12) },
87 { DRM_FORMAT_XBGR4444,
"XB12",
MAKE_RGB_INFO(4, 0, 4, 4, 4, 8, 0, 0) },
88 { DRM_FORMAT_RGBA4444,
"RA12",
MAKE_RGB_INFO(4, 12, 4, 8, 4, 4, 4, 0) },
89 { DRM_FORMAT_RGBX4444,
"RX12",
MAKE_RGB_INFO(4, 12, 4, 8, 4, 4, 0, 0) },
90 { DRM_FORMAT_BGRA4444,
"BA12",
MAKE_RGB_INFO(4, 4, 4, 8, 4, 12, 4, 0) },
91 { DRM_FORMAT_BGRX4444,
"BX12",
MAKE_RGB_INFO(4, 4, 4, 8, 4, 12, 0, 0) },
92 { DRM_FORMAT_ARGB1555,
"AR15",
MAKE_RGB_INFO(5, 10, 5, 5, 5, 0, 1, 15) },
93 { DRM_FORMAT_XRGB1555,
"XR15",
MAKE_RGB_INFO(5, 10, 5, 5, 5, 0, 0, 0) },
94 { DRM_FORMAT_ABGR1555,
"AB15",
MAKE_RGB_INFO(5, 0, 5, 5, 5, 10, 1, 15) },
95 { DRM_FORMAT_XBGR1555,
"XB15",
MAKE_RGB_INFO(5, 0, 5, 5, 5, 10, 0, 0) },
96 { DRM_FORMAT_RGBA5551,
"RA15",
MAKE_RGB_INFO(5, 11, 5, 6, 5, 1, 1, 0) },
97 { DRM_FORMAT_RGBX5551,
"RX15",
MAKE_RGB_INFO(5, 11, 5, 6, 5, 1, 0, 0) },
98 { DRM_FORMAT_BGRA5551,
"BA15",
MAKE_RGB_INFO(5, 1, 5, 6, 5, 11, 1, 0) },
99 { DRM_FORMAT_BGRX5551,
"BX15",
MAKE_RGB_INFO(5, 1, 5, 6, 5, 11, 0, 0) },
100 { DRM_FORMAT_RGB565,
"RG16",
MAKE_RGB_INFO(5, 11, 6, 5, 5, 0, 0, 0) },
101 { DRM_FORMAT_BGR565,
"BG16",
MAKE_RGB_INFO(5, 0, 6, 5, 5, 11, 0, 0) },
103 { DRM_FORMAT_BGR888,
"BG24",
MAKE_RGB_INFO(8, 0, 8, 8, 8, 16, 0, 0) },
104 { DRM_FORMAT_RGB888,
"RG24",
MAKE_RGB_INFO(8, 16, 8, 8, 8, 0, 0, 0) },
106 { DRM_FORMAT_ARGB8888,
"AR24",
MAKE_RGB_INFO(8, 16, 8, 8, 8, 0, 8, 24) },
107 { DRM_FORMAT_XRGB8888,
"XR24",
MAKE_RGB_INFO(8, 16, 8, 8, 8, 0, 0, 0) },
108 { DRM_FORMAT_ABGR8888,
"AB24",
MAKE_RGB_INFO(8, 0, 8, 8, 8, 16, 8, 24) },
109 { DRM_FORMAT_XBGR8888,
"XB24",
MAKE_RGB_INFO(8, 0, 8, 8, 8, 16, 0, 0) },
110 { DRM_FORMAT_RGBA8888,
"RA24",
MAKE_RGB_INFO(8, 24, 8, 16, 8, 8, 8, 0) },
111 { DRM_FORMAT_RGBX8888,
"RX24",
MAKE_RGB_INFO(8, 24, 8, 16, 8, 8, 0, 0) },
112 { DRM_FORMAT_BGRA8888,
"BA24",
MAKE_RGB_INFO(8, 8, 8, 16, 8, 24, 8, 0) },
113 { DRM_FORMAT_BGRX8888,
"BX24",
MAKE_RGB_INFO(8, 8, 8, 16, 8, 24, 0, 0) },
114 { DRM_FORMAT_ARGB2101010,
"AR30",
MAKE_RGB_INFO(10, 20, 10, 10, 10, 0, 2, 30) },
115 { DRM_FORMAT_XRGB2101010,
"XR30",
MAKE_RGB_INFO(10, 20, 10, 10, 10, 0, 0, 0) },
116 { DRM_FORMAT_ABGR2101010,
"AB30",
MAKE_RGB_INFO(10, 0, 10, 10, 10, 20, 2, 30) },
117 { DRM_FORMAT_XBGR2101010,
"XB30",
MAKE_RGB_INFO(10, 0, 10, 10, 10, 20, 0, 0) },
118 { DRM_FORMAT_RGBA1010102,
"RA30",
MAKE_RGB_INFO(10, 22, 10, 12, 10, 2, 2, 0) },
119 { DRM_FORMAT_RGBX1010102,
"RX30",
MAKE_RGB_INFO(10, 22, 10, 12, 10, 2, 0, 0) },
120 { DRM_FORMAT_BGRA1010102,
"BA30",
MAKE_RGB_INFO(10, 2, 10, 12, 10, 22, 2, 0) },
121 { DRM_FORMAT_BGRX1010102,
"BX30",
MAKE_RGB_INFO(10, 2, 10, 12, 10, 22, 0, 0) },
const struct yuv_info yuv
Definition: drm_pixformats.h:66
struct color_component red
Definition: drm_pixformats.h:42
Definition: drm_pixformats.h:50
unsigned int ysub
Definition: drm_pixformats.h:58
const struct rgb_info rgb
Definition: drm_pixformats.h:65
Definition: drm_pixformats.h:52
enum yuv_order order
Definition: drm_pixformats.h:56
#define MAKE_RGB_INFO(rl, ro, gl, go, bl, bo, al, ao)
Definition: drm_pixformats.h:26
const char * name
Definition: drm_pixformats.h:64
unsigned int chroma_stride
Definition: drm_pixformats.h:59
Definition: drm_pixformats.h:55
GLfloat GLfloat blue
Definition: glext.h:6290
unsigned int format
Definition: drm_pixformats.h:63
unsigned int offset
Definition: drm_pixformats.h:38
Definition: drm_pixformats.h:51
Definition: drm_pixformats.h:49
GLfloat GLfloat GLfloat alpha
Definition: glext.h:6290
#define MAKE_YUV_INFO(order, xsub, ysub, chroma_stride)
Definition: drm_pixformats.h:29
yuv_order
Definition: drm_pixformats.h:48
GLfloat green
Definition: glext.h:6290
unsigned int xsub
Definition: drm_pixformats.h:57
Definition: drm_pixformats.h:41
unsigned int length
Definition: drm_pixformats.h:37
Definition: drm_pixformats.h:62
Definition: drm_pixformats.h:36