gstreamer/subprojects/gst-plugins-base/gst-libs/gst/gl/egl
Robert Mader 414512d922 glcontext/egl: Prefer GLES2 over GL/GL3 by default
From a multimedia perspective GLES >= 2 has the big advantage of
supporting external textures (`OES_EGL_image_external` /
`OES_EGL_image_external_essl3`), allowing various YUV formats to be
imported directly by drivers.

It appears unlikely by now that the extension will ever be ported to
GL with Vulkan becoming more popular, leaving GL without an "official"
way to import YUV formats.

Further more, for Gst internal purposes it's likely that GLES2 works
equally well if not better on most drivers these days, especially on
embedded devices.

Thus switch the default for EGL context creation to GLES2. This won't
affect apps that create their own context, but `gst-launch-1.0` etc.,
which are often used for testing so people don't have to pass
`GST_GL_API=gles2`.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5509>
2023-11-17 15:02:50 +00:00
..
egl.h
gstegl.c
gstegl.h
gsteglimage.c
gsteglimage.h
gsteglimage_private.h
gstglcontext_egl.c
gstglcontext_egl.h
gstgldisplay_egl.c
gstgldisplay_egl.h
gstgldisplay_egl_device.c
gstgldisplay_egl_device.h
gstglmemoryegl.c
gstglmemoryegl.h