gl/egl: Add gst_egl_image_from_dmabuf_direct() function
authorMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 30 Oct 2018 11:25:02 +0000 (12:25 +0100)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 30 Oct 2018 11:25:02 +0000 (12:25 +0100)
commit5d0e1917107f96b59ab2db3b017fb750e73b98d7
tree9db61dcc726f1d26b8b33ce6832e804bb638fa11
parent0ac646f7f4aa43399084dd63143cd47030885f5f
gl/egl: Add gst_egl_image_from_dmabuf_direct() function

The colorspace conversion happens during the upload so the necessary hints
must be provided to ensure that the conversion works correctly.

At least the Mesa Intel driver will create a texture without error but
produces an incorrect result. Use eglQueryDmaBufModifiersEXT() to check if
non-external upload is supported for the given format.

Based on a patch from Carlos Rafael Giani <dv@pseudoterminal.org>.

https://bugzilla.gnome.org/show_bug.cgi?id=783521
gst-libs/gst/gl/egl/gstegl.h
gst-libs/gst/gl/egl/gsteglimage.c
gst-libs/gst/gl/egl/gsteglimage.h