eglimage: Add missing NV21/61 support
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 12 Apr 2022 16:18:06 +0000 (12:18 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 2 May 2022 19:10:43 +0000 (19:10 +0000)
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>

subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c

index 906f56e..18588c1 100644 (file)
@@ -510,6 +510,8 @@ _drm_rgba_fourcc_from_info (const GstVideoInfo * info, int plane,
 
     case GST_VIDEO_FORMAT_NV12:
     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;
       return plane == 0 ? DRM_FORMAT_R8 : rg_fourcc;