[PATCH] gl-renderer: Add support for DRM_FORMAT_YUV444 buffers
Matthias Treydte
mt at waldheinz.de
Fri Jul 22 10:53:12 UTC 2016
This uses the existing infrastructure for dealing with planar YUV buffers and only adds the
relevant yuv_format_descriptor to the table.
---
libweston/gl-renderer.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
index 28c0b50..6e041ed 100644
--- a/libweston/gl-renderer.c
+++ b/libweston/gl-renderer.c
@@ -1612,6 +1612,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
+ }}
}
};
--
2.9.0
More information about the wayland-devel
mailing list