mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
eglimagememory: Also import BGR16, ABGR, xBGR, AYUV, GRAY16_LE/BE and Y444
https://bugzilla.gnome.org/show_bug.cgi?id=743345
This commit is contained in:
parent
b17a732d5f
commit
7b335c4dd5
1 changed files with 8 additions and 1 deletions
|
@ -359,6 +359,7 @@ _drm_fourcc_from_info (GstVideoInfo * info, int plane)
|
|||
|
||||
switch (format) {
|
||||
case GST_VIDEO_FORMAT_RGB16:
|
||||
case GST_VIDEO_FORMAT_BGR16:
|
||||
return DRM_FORMAT_RGB565;
|
||||
|
||||
case GST_VIDEO_FORMAT_RGB:
|
||||
|
@ -371,6 +372,9 @@ _drm_fourcc_from_info (GstVideoInfo * info, int plane)
|
|||
case GST_VIDEO_FORMAT_BGRx:
|
||||
case GST_VIDEO_FORMAT_ARGB:
|
||||
case GST_VIDEO_FORMAT_xRGB:
|
||||
case GST_VIDEO_FORMAT_ABGR:
|
||||
case GST_VIDEO_FORMAT_xBGR:
|
||||
case GST_VIDEO_FORMAT_AYUV:
|
||||
return rgba_fourcc;
|
||||
|
||||
case GST_VIDEO_FORMAT_GRAY8:
|
||||
|
@ -378,6 +382,8 @@ _drm_fourcc_from_info (GstVideoInfo * info, int plane)
|
|||
|
||||
case GST_VIDEO_FORMAT_YUY2:
|
||||
case GST_VIDEO_FORMAT_UYVY:
|
||||
case GST_VIDEO_FORMAT_GRAY16_LE:
|
||||
case GST_VIDEO_FORMAT_GRAY16_BE:
|
||||
return rg_fourcc;
|
||||
|
||||
case GST_VIDEO_FORMAT_NV12:
|
||||
|
@ -385,9 +391,10 @@ _drm_fourcc_from_info (GstVideoInfo * info, int plane)
|
|||
return plane == 0 ? DRM_FORMAT_R8 : rg_fourcc;
|
||||
|
||||
case GST_VIDEO_FORMAT_I420:
|
||||
case GST_VIDEO_FORMAT_YV12:
|
||||
case GST_VIDEO_FORMAT_Y41B:
|
||||
case GST_VIDEO_FORMAT_Y42B:
|
||||
case GST_VIDEO_FORMAT_YV12:
|
||||
case GST_VIDEO_FORMAT_Y444:
|
||||
return DRM_FORMAT_R8;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue