glcolorconvert: Ensure glcolorconvert does not miss supported RGB formats

Add RGB16 and other RGB formats to rgb_formats to ensure glcolorconvert
does not miss the RGB formats it supports

Signed-off-by: Chao Guo <chao.guo@nxp.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6497>
This commit is contained in:
Chao Guo 2024-04-01 14:26:11 +09:00
parent 5fb2bbc2eb
commit 69f4d98844

View file

@ -1182,7 +1182,8 @@ gst_gl_color_convert_caps_transform_format_info (GstGLContext * context,
_init_value_string_list (&rgb_formats, "RGBA", "ARGB", "BGRA", "ABGR", "RGBx", _init_value_string_list (&rgb_formats, "RGBA", "ARGB", "BGRA", "ABGR", "RGBx",
"xRGB", "BGRx", "xBGR", "RGB", "BGR", "ARGB64", "BGR10A2_LE", "xRGB", "BGRx", "xBGR", "RGB", "BGR", "ARGB64", "BGR10A2_LE",
"RGB10A2_LE", "RGBA64_LE", "RGBA64_BE", "RBGA", NULL); "RGB10A2_LE", "RGBA64_LE", "RGBA64_BE", "RBGA", "GBRA", "GBR",
"RGBP", "BGRP", "RGB16", "BGR16", NULL);
_init_supported_formats (context, output, &supported_formats); _init_supported_formats (context, output, &supported_formats);
gst_value_intersect (&supported_rgb_formats, &rgb_formats, gst_value_intersect (&supported_rgb_formats, &rgb_formats,
&supported_formats); &supported_formats);