diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-12-18 11:08:29 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-12-18 15:56:34 -0500 |
commit | b17a732d5f02ef4e46641b0c62109fbe9874af36 (patch) | |
tree | c772c22052b2e2f41c54355f32ffee115f773709 | |
parent | 1cd97865982da5cecf1f9ca7df9ea2714aab7f2b (diff) | |
download | gstreamer-plugins-bad-b17a732d5f02ef4e46641b0c62109fbe9874af36.tar.gz |
eglimagememory: Add RGB/BGR DMABuf importation support
https://bugzilla.gnome.org/show_bug.cgi?id=743345
-rw-r--r-- | gst-libs/gst/gl/egl/gsteglimagememory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/egl/gsteglimagememory.c b/gst-libs/gst/gl/egl/gsteglimagememory.c index cba98f8bb..86521d76c 100644 --- a/gst-libs/gst/gl/egl/gsteglimagememory.c +++ b/gst-libs/gst/gl/egl/gsteglimagememory.c @@ -346,9 +346,11 @@ _drm_fourcc_from_info (GstVideoInfo * info, int plane) GstVideoFormat format = GST_VIDEO_INFO_FORMAT (info); #if G_BYTE_ORDER == G_LITTLE_ENDIAN const gint rgba_fourcc = DRM_FORMAT_ABGR8888; + const gint rgb_fourcc = DRM_FORMAT_BGR888; const gint rg_fourcc = DRM_FORMAT_GR88; #else const gint rgba_fourcc = DRM_FORMAT_RGBA8888; + const gint rgb_fourcc = DRM_FORMAT_RGB888; const gint rg_fourcc = DRM_FORMAT_RG88; #endif @@ -359,6 +361,10 @@ _drm_fourcc_from_info (GstVideoInfo * info, int plane) case GST_VIDEO_FORMAT_RGB16: return DRM_FORMAT_RGB565; + case GST_VIDEO_FORMAT_RGB: + case GST_VIDEO_FORMAT_BGR: + return rgb_fourcc; + case GST_VIDEO_FORMAT_RGBA: case GST_VIDEO_FORMAT_RGBx: case GST_VIDEO_FORMAT_BGRA: |