mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-17 15:48:12 +02:00
gl-renderer: Add support for DRM_FORMAT_YUV444 buffers
This uses the existing infrastructure for dealing with planar YUV buffers and only adds the relevant yuv_format_descriptor to the table. Reviewed-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
This commit is contained in:
parent
eaf5841f0c
commit
aca3ffb3a9
1 changed files with 21 additions and 0 deletions
|
|
@ -1599,6 +1599,27 @@ struct yuv_format_descriptor yuv_formats[] = {
|
|||
.format = DRM_FORMAT_R8,
|
||||
.plane_index = 2
|
||||
}}
|
||||
}, {
|
||||
.format = DRM_FORMAT_YUV444,
|
||||
.input_planes = 3,
|
||||
.output_planes = 3,
|
||||
.texture_type = EGL_TEXTURE_Y_U_V_WL,
|
||||
{{
|
||||
.width_divisor = 1,
|
||||
.height_divisor = 1,
|
||||
.format = DRM_FORMAT_R8,
|
||||
.plane_index = 0
|
||||
}, {
|
||||
.width_divisor = 1,
|
||||
.height_divisor = 1,
|
||||
.format = DRM_FORMAT_R8,
|
||||
.plane_index = 1
|
||||
}, {
|
||||
.width_divisor = 1,
|
||||
.height_divisor = 1,
|
||||
.format = DRM_FORMAT_R8,
|
||||
.plane_index = 2
|
||||
}}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue