mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
multi-texture-format: Initialize format info list with enums
To make the relations more obvious. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3244>
This commit is contained in:
parent
15320b5a66
commit
6be2add1b0
@ -101,9 +101,9 @@ typedef struct _MetaMultiTextureFormatInfo
|
|||||||
* loop over the table */
|
* loop over the table */
|
||||||
static MetaMultiTextureFormatInfo multi_format_table[] = {
|
static MetaMultiTextureFormatInfo multi_format_table[] = {
|
||||||
/* Invalid */
|
/* Invalid */
|
||||||
{},
|
[META_MULTI_TEXTURE_FORMAT_INVALID] = {},
|
||||||
/* Simple */
|
/* Simple */
|
||||||
{
|
[META_MULTI_TEXTURE_FORMAT_SIMPLE] = {
|
||||||
.name = "",
|
.name = "",
|
||||||
.n_planes = 1,
|
.n_planes = 1,
|
||||||
.subformats = { COGL_PIXEL_FORMAT_ANY },
|
.subformats = { COGL_PIXEL_FORMAT_ANY },
|
||||||
@ -114,7 +114,7 @@ static MetaMultiTextureFormatInfo multi_format_table[] = {
|
|||||||
.snippet_once = G_ONCE_INIT,
|
.snippet_once = G_ONCE_INIT,
|
||||||
},
|
},
|
||||||
/* Packed YUV */
|
/* Packed YUV */
|
||||||
{
|
[META_MULTI_TEXTURE_FORMAT_YUYV] = {
|
||||||
.name = "YUYV",
|
.name = "YUYV",
|
||||||
.n_planes = 2,
|
.n_planes = 2,
|
||||||
.subformats = { COGL_PIXEL_FORMAT_RG_88, COGL_PIXEL_FORMAT_BGRA_8888_PRE },
|
.subformats = { COGL_PIXEL_FORMAT_RG_88, COGL_PIXEL_FORMAT_BGRA_8888_PRE },
|
||||||
@ -125,7 +125,7 @@ static MetaMultiTextureFormatInfo multi_format_table[] = {
|
|||||||
.snippet_once = G_ONCE_INIT,
|
.snippet_once = G_ONCE_INIT,
|
||||||
},
|
},
|
||||||
/* 2 plane YUV */
|
/* 2 plane YUV */
|
||||||
{
|
[META_MULTI_TEXTURE_FORMAT_NV12] = {
|
||||||
.name = "NV12",
|
.name = "NV12",
|
||||||
.n_planes = 2,
|
.n_planes = 2,
|
||||||
.subformats = { COGL_PIXEL_FORMAT_G_8, COGL_PIXEL_FORMAT_RG_88 },
|
.subformats = { COGL_PIXEL_FORMAT_G_8, COGL_PIXEL_FORMAT_RG_88 },
|
||||||
@ -136,7 +136,7 @@ static MetaMultiTextureFormatInfo multi_format_table[] = {
|
|||||||
.snippet_once = G_ONCE_INIT,
|
.snippet_once = G_ONCE_INIT,
|
||||||
},
|
},
|
||||||
/* 3 plane YUV */
|
/* 3 plane YUV */
|
||||||
{
|
[META_MULTI_TEXTURE_FORMAT_YUV420] = {
|
||||||
.name = "YUV420",
|
.name = "YUV420",
|
||||||
.n_planes = 3,
|
.n_planes = 3,
|
||||||
.subformats = { COGL_PIXEL_FORMAT_G_8, COGL_PIXEL_FORMAT_G_8, COGL_PIXEL_FORMAT_G_8 },
|
.subformats = { COGL_PIXEL_FORMAT_G_8, COGL_PIXEL_FORMAT_G_8, COGL_PIXEL_FORMAT_G_8 },
|
||||||
|
Loading…
Reference in New Issue
Block a user