glcolorconvert: add A422/A444 to output switch statement

Fixes glcolorconvert writing to A422 or A444 formats.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5455>
This commit is contained in:
Matthew Waters 2023-10-10 22:45:30 +11:00
parent 64a58c37ac
commit 714c78ac51

View file

@ -2225,12 +2225,14 @@ _RGB_to_YUV (GstGLColorConvert * convert)
case GST_VIDEO_FORMAT_A420_12BE:
case GST_VIDEO_FORMAT_A420_16LE:
case GST_VIDEO_FORMAT_A420_16BE:
case GST_VIDEO_FORMAT_A422:
case GST_VIDEO_FORMAT_A422_10LE:
case GST_VIDEO_FORMAT_A422_10BE:
case GST_VIDEO_FORMAT_A422_12LE:
case GST_VIDEO_FORMAT_A422_12BE:
case GST_VIDEO_FORMAT_A422_16LE:
case GST_VIDEO_FORMAT_A422_16BE:
case GST_VIDEO_FORMAT_A444:
case GST_VIDEO_FORMAT_A444_10LE:
case GST_VIDEO_FORMAT_A444_10BE:
case GST_VIDEO_FORMAT_A444_12LE:
@ -2238,7 +2240,7 @@ _RGB_to_YUV (GstGLColorConvert * convert)
case GST_VIDEO_FORMAT_A444_16LE:
case GST_VIDEO_FORMAT_A444_16BE:
info->templ = &templ_RGB_to_PLANAR_YUV;
if (out_format == GST_VIDEO_FORMAT_A420) {
if (GST_VIDEO_FORMAT_INFO_HAS_ALPHA (out_finfo)) {
alpha = "gl_FragData[3] = vec4(yuva.a, 0.0, 0.0, 1.0);\n";
} else {
alpha = "";