mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
dd585ecfcc
commit
04339c8df5
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue