pixel-formats: Add R8 and GR88

These formats are used within gl-renderer to do YUV -> RGB colourspace
conversion.

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 3 years ago committed by Pekka Paalanen
parent 1db2fbef61
commit 727c4ef6fb
  1. 16
      libweston/pixel-formats.c

@ -82,6 +82,22 @@
* colour channels, are not supported. * colour channels, are not supported.
*/ */
static const struct pixel_format_info pixel_format_table[] = { static const struct pixel_format_info pixel_format_table[] = {
{
DRM_FORMAT(R8),
BITS_RGBA_FIXED(8, 0, 0, 0),
.bpp = 8,
.hide_from_clients = true,
GL_FORMAT(GL_R8_EXT),
GL_TYPE(GL_UNSIGNED_BYTE),
},
{
DRM_FORMAT(GR88),
BITS_RGBA_FIXED(8, 8, 0, 0),
.bpp = 16,
.hide_from_clients = true,
GL_FORMAT(GL_RG8_EXT),
GL_TYPE(GL_UNSIGNED_BYTE),
},
{ {
DRM_FORMAT(XRGB4444), DRM_FORMAT(XRGB4444),
BITS_RGBA_FIXED(4, 4, 4, 0), BITS_RGBA_FIXED(4, 4, 4, 0),

Loading…
Cancel
Save