gstreamer/gst-libs/gst/gl/egl
Sjoerd Simons 99ac4e6600 gl/egl: Determine correct format on dmabuf import
When importing an egl image from dmabuf gst_gl_format_from_video_info
was used to work what the result GL format will be. Unfortunately that
will only work if the conventional format and the choosen DRM fourcc for
the format match up.

On etnaviv platforms there is no support for GL_EXT_texture_rg, so the
GL format chosen for YUY2 ends up being GST_GL_LUMINANCE_ALPHA. However
DRM does not do luminance + alpha as it's a legacy GL thing, so the
dmabuf import ends up using DRM_FORMAT_GR88.

To fix this, tie the DRM_FORMAT and the GL format together so they
always match up.
2018-11-11 16:15:54 -05:00
..
gstegl.c gst-libs: include config.h in all source files 2018-08-13 09:23:34 +01:00
gstegl.h gl/egl: Add gst_egl_image_from_dmabuf_direct() function 2018-10-30 12:25:02 +01:00
gsteglimage.c gl/egl: Determine correct format on dmabuf import 2018-11-11 16:15:54 -05:00
gsteglimage.h gl/egl: Add gst_egl_image_from_dmabuf_direct() function 2018-10-30 12:25:02 +01:00
gstglcontext_egl.c glcontextegl: only dump configs once 2018-06-22 22:43:08 +10:00
gstglcontext_egl.h gl: remove more deprecated type aliases 2018-02-08 21:14:56 +11:00
gstgldisplay_egl.c Add GBM_CFLAGS and define EGL_PLATFORM_GBM_MESA 2018-08-02 12:17:56 +10:00
gstgldisplay_egl.h gl: GST_EXPORT -> GST_GL_API 2018-03-13 12:10:29 +00:00
gstglmemoryegl.c libs: Documentation cleanup 2018-04-02 08:53:28 +02:00
gstglmemoryegl.h libs: Documentation cleanup 2018-04-02 08:53:28 +02:00
Makefile.am libs: fix API export/import and 'inconsistent linkage' on MSVC 2018-09-24 08:45:34 +01:00