mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 09:41:07 +00:00
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:
parent
64a58c37ac
commit
714c78ac51
1 changed files with 3 additions and 1 deletions
|
@ -2225,12 +2225,14 @@ _RGB_to_YUV (GstGLColorConvert * convert)
|
||||||
case GST_VIDEO_FORMAT_A420_12BE:
|
case GST_VIDEO_FORMAT_A420_12BE:
|
||||||
case GST_VIDEO_FORMAT_A420_16LE:
|
case GST_VIDEO_FORMAT_A420_16LE:
|
||||||
case GST_VIDEO_FORMAT_A420_16BE:
|
case GST_VIDEO_FORMAT_A420_16BE:
|
||||||
|
case GST_VIDEO_FORMAT_A422:
|
||||||
case GST_VIDEO_FORMAT_A422_10LE:
|
case GST_VIDEO_FORMAT_A422_10LE:
|
||||||
case GST_VIDEO_FORMAT_A422_10BE:
|
case GST_VIDEO_FORMAT_A422_10BE:
|
||||||
case GST_VIDEO_FORMAT_A422_12LE:
|
case GST_VIDEO_FORMAT_A422_12LE:
|
||||||
case GST_VIDEO_FORMAT_A422_12BE:
|
case GST_VIDEO_FORMAT_A422_12BE:
|
||||||
case GST_VIDEO_FORMAT_A422_16LE:
|
case GST_VIDEO_FORMAT_A422_16LE:
|
||||||
case GST_VIDEO_FORMAT_A422_16BE:
|
case GST_VIDEO_FORMAT_A422_16BE:
|
||||||
|
case GST_VIDEO_FORMAT_A444:
|
||||||
case GST_VIDEO_FORMAT_A444_10LE:
|
case GST_VIDEO_FORMAT_A444_10LE:
|
||||||
case GST_VIDEO_FORMAT_A444_10BE:
|
case GST_VIDEO_FORMAT_A444_10BE:
|
||||||
case GST_VIDEO_FORMAT_A444_12LE:
|
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_16LE:
|
||||||
case GST_VIDEO_FORMAT_A444_16BE:
|
case GST_VIDEO_FORMAT_A444_16BE:
|
||||||
info->templ = &templ_RGB_to_PLANAR_YUV;
|
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";
|
alpha = "gl_FragData[3] = vec4(yuva.a, 0.0, 0.0, 1.0);\n";
|
||||||
} else {
|
} else {
|
||||||
alpha = "";
|
alpha = "";
|
||||||
|
|
Loading…
Reference in a new issue