From 04339c8df5e3652ef3f962c6cd084a873be67706 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 12 Apr 2022 12:18:06 -0400 Subject: [PATCH] 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: --- subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gsteglimage.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.7.4