eglimage: Add missing NV21/61 support

Caps would allow that, but selecting this format would lead to
an "no reached" assertion in the code.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2190>
This commit is contained in:
Nicolas Dufresne 2022-04-12 12:18:06 -04:00 committed by GStreamer Marge Bot
parent dd585ecfcc
commit 04339c8df5

View file

@ -510,6 +510,8 @@ _drm_rgba_fourcc_from_info (const GstVideoInfo * info, int plane,
case GST_VIDEO_FORMAT_NV12: case GST_VIDEO_FORMAT_NV12:
case GST_VIDEO_FORMAT_NV21: case GST_VIDEO_FORMAT_NV21:
case GST_VIDEO_FORMAT_NV16:
case GST_VIDEO_FORMAT_NV61:
*out_format = plane == 0 ? GST_GL_RED : GST_GL_RG; *out_format = plane == 0 ? GST_GL_RED : GST_GL_RG;
return plane == 0 ? DRM_FORMAT_R8 : rg_fourcc; return plane == 0 ? DRM_FORMAT_R8 : rg_fourcc;