mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 04:28:24 +02:00
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>
This commit is contained in:
parent
1db2fbef61
commit
727c4ef6fb
1 changed files with 16 additions and 0 deletions
|
|
@ -82,6 +82,22 @@
|
|||
* colour channels, are not supported.
|
||||
*/
|
||||
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),
|
||||
BITS_RGBA_FIXED(4, 4, 4, 0),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue