Skip to content

gl: add support for choosing the backing configuration

Matthew Waters requested to merge ystreet/gst-plugins-base:gl-config into master

Allows influencing the EGLConfig, GLXFBConfig, etc chosen and used.

commit 17e82eab

glcontext: add support for influencing the backing configuration

New API:
- gst_gl_context_get_config()
- gst_gl_context_request_config()

A GL context configuration is a GstStructure that has some well-known
names for common values that can also be extended in platform-specific
ways if necessary.

Wrapped OpenGL contexts may be able to retrieve the GL context
configuration depending on the platform.  If that information is
available, GstGLContext will attempt to create an context that matches
the shared OpenGL context config unless gst_gl_context_request_config()
has been called.

A new environment variable 'GST_GL_CONFIG' will be read to influence the
configuration chosen.  The environment variable will only be used as a
fallback if gst_gl_context_request_config() has not been called.

commit 1daa52f3

gl/api: improve the to/from string for GstGLAPI/GstGLPlatform

With unit tests now!

commit d03d263a

gl/framebuffer: expand documentation on valid usage
Edited by Matthew Waters

Merge request reports