From: Nicolas Dufresne Date: Tue, 12 Apr 2022 16:18:06 +0000 (-0400) Subject: eglimage: Add missing NV21/61 support X-Git-Tag: 1.22.0~1700 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04339c8df5e3652ef3f962c6cd084a873be67706;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c index 906f56e..18588c1 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c @@ -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;