summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglcontext.c
Commit message (Collapse)AuthorAgeFilesLines
* gl: Add/Update more debug statementsEdward Hervey2015-02-121-18/+44
| | | | | | | | | Where possible, use the _OBJECT variants in order to track better from which object the debug statement is coming from Define (and use) GST_CAT_DEFAULT where applicable Use GST_PTR_FORMAT where applicable
* glcontext: allow wrapped contexts to be utilised like non-wrapped contextsMatthew Waters2015-01-131-59/+105
| | | | Fill in the missing pieces like get_proc_address, the gl function vtable
* glcontext: try cgl before glxJulien Isorce2014-12-031-4/+4
| | | | | | | It was already done by commit f506e80686eedc66912583db11914ec3f713b478 but it has been broken by commit 45ec777cea0e69b2597d1ec02b18ec31d618c920
* glcontext: require GL_ARB_ES2_compatibility for opengl3Matthew Waters2014-11-301-0/+9
| | | | | | until we generate gl3 compliant shaders https://bugzilla.gnome.org/show_bug.cgi?id=740012
* gldisplay: implement runtime GL api filteringMatthew Waters2014-11-281-18/+40
| | | | | Needed so that the pipeline/application can limit the choice of GL api to what it supports
* glcontext: Fix unused variable warning by moving declaration where it is ↵Ramprakash Jelari2014-11-241-3/+2
| | | | actually used
* glcontext: build errors when GST_GL_HAVE_OPENGL is 0Vineeth T M2014-11-171-0/+6
| | | | | | | Moving variables within #if GST_GL_HAVE_OPENGL, which are not going to be used otherwise. and which are needed only when OpenGl is present https://bugzilla.gnome.org/show_bug.cgi?id=740235
* glcontext: fail context creation if glGetString returns NULLMatthew Waters2014-11-061-0/+6
|
* gl: sprinkle some Since markersMatthew Waters2014-10-311-1/+37
|
* glcontext: add more functionality to wrapped contextsMatthew Waters2014-10-301-0/+34
| | | | | Implements get_current_context() and get_proc_address() for wrapped contexts.
* glcontext: add api for retreiving the current context and apiMatthew Waters2014-10-281-8/+161
| | | | that is current in the calling thread.
* glcontext: Initialize variableEdward Hervey2014-09-291-1/+1
| | | | | | | Avoids the following warning: gstglcontext.c:647:58: error: 'prev' may be used uninitialized in this function [-Werror=maybe-uninitialized]
* glcontext: fixup error in sharegroup commentMatthew Waters2014-09-291-1/+1
|
* glcontext: detect the sharegroup case where the context are in different chainsMatthew Waters2014-09-291-5/+31
| | | | | In the end they will lead to the same root context in the tree so check that for equality.
* glcontext: add gst_gl_context_can_shareMatthew Waters2014-09-231-3/+53
| | | | | Which determines whether two GstGLContext's can share sharable OpenGL resources.
* gl: Let gst_gl_context_get_thread() return a new reference to the GThreadSebastian Dröge2014-09-221-1/+3
| | | | Otherwise it might go away in the meantime and the caller has some random pointer.
* gl: add since markers for new APITim-Philipp Müller2014-09-211-0/+2
|
* glcontext: add API to retreive the thread that context is active inMatthew Waters2014-09-211-0/+24
|
* gl: Add GSTGLAPI macro to the debug callback functionWang Xin-yu (王昕宇)2014-08-281-1/+1
| | | | | | Fixes the Windows build. https://bugzilla.gnome.org/show_bug.cgi?id=735565
* glcontext: implement the debug callbackMatthew Waters2014-08-201-0/+160
| | | | | | For both GL_KHR_debug and ARB_debug_output. This allows us to receive errors and other hints from the GL instead of querying after every GL operation.
* glcontext: add a destroy functionMatthew Waters2014-07-311-0/+21
| | | | that just calls the subclass
* glcontext: Handle (unlikely) NULL return of gl->GetString (GL_VERSION) more ↵Sebastian Dröge2014-06-021-9/+13
| | | | | | gracefully CID 1219858
* glcontext: fix up assertionMatthew Waters2014-05-301-1/+1
| | | | error: 'return' with no value, in function returning non-void
* glcontext: check for GLES versionsMatthew Waters2014-05-301-55/+15
|
* gl/context: add check_gl_versionMatthew Waters2014-05-301-0/+31
|
* glcontext: Try GLX support before EGL supportEdward Hervey2014-05-291-4/+4
| | | | | If available, glx has got a better chance of being the Gl platform we want to use compared to EGL
* glcontext: Try to open lib{EGL|GL|GLESv2}.so.1 before lib{EGL|GL|GLESv2}Edward Hervey2014-05-291-8/+11
| | | | | | Fixes issues with .so (without numbering) being installed for development (such as from mesa-dev) but actual driver (with numbering) coming from some other place (like nvidia drivers)
* gl: rename platform cocoa to cglJulien Isorce2014-05-271-3/+3
| | | | | | | | | | | | | | | | | | | | Before: GST_GL_PLATFORM=cocoa GST_GL_WINDOW=cocoa gst-launch-1.0 videotestsrc ! glimagesink After: GST_GL_PLATFORM=cgl GST_GL_WINDOW=cocoa gst-launch-1.0 videotestsrc ! glimagesink but still pass --enable-cocoa to configure script because currently it can only be used with cocoa API. We could later have cgl/gstglcontext_cgl.h that manages a CGLContextObj directly and cocoa/gstglcontext_cocoa.h would just wrap it. So that it could be used with other Apple's window APIs. https://bugzilla.gnome.org/show_bug.cgi?id=729245
* gl/context: add gl extension checking to check_feature()Matthew Waters2014-05-221-3/+13
| | | | | Useful for extensions that do not define any new GL API entrypoints but can still modify behaviour when used.
* gl/context: add generic feature checkingMatthew Waters2014-05-201-0/+25
| | | | At the moment it simply delegates to the subclass.
* glcontext: Add more assertions to make sure that everything sets the GError ↵Sebastian Dröge2014-05-191-2/+6
| | | | during context creation if something fails
* gl: make all GObjects inherit from GstObjectMatthew Waters2014-05-081-1/+1
| | | | Aids memory leak debugging with GST_TRACE=mem-live
* gl/display: clean up pre gstglcontext api and struct fieldsMatthew Waters2014-05-061-16/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=729551
* gl: Try harder to load symbols from the correct placeSebastian Dröge2014-05-011-35/+71
| | | | | | | | | | | | | | | This commit makes the loading of the GModules threadsafe, and always first tries to load the symbol for the GL library that is selected for the current context. Only then it falls back to looking into the current module (NULL), and only as a last resort the context specific function (e.g. eglGetProcAddress()) is called. Also add configure parameters to select the names of the library modules instead of using the defaults, and let the defaults be independent of the G_MODULE_SUFFIX. https://bugzilla.gnome.org/show_bug.cgi?id=728753
* gl: no need to provide full lib path to load symbolsNicolas Dufresne2014-04-301-21/+19
| | | | | | | | - Make gstgl work on Mali - Keep it work on RPI - fallback to NULL name module if fails with usual lib name https://bugzilla.gnome.org/show_bug.cgi?id=728753
* gl/context: output available extensionsMatthew Waters2014-04-131-0/+2
|
* gl/context: provide get_gl_versionMatthew Waters2014-04-131-8/+35
|
* gl: Add support for iOS EAGL platformSebastian Dröge2014-04-121-0/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=703341
* gl: fix detection of extensions with GL versions < 3Matthew Waters2014-04-011-1/+1
| | | | | | | | Mesa, for example returns valid pointers for glGetIntegerv and glGetStringi even if the gl version is less than that required for both those functions to supposedly exist. https://bugzilla.gnome.org/show_bug.cgi?id=727324
* gl: fix crash if _build_extension_string is not calledJulien Isorce2014-03-261-1/+1
| | | | | | | On GLES2 then (gl->GetIntegerv && gl->GetStringi) is false regression introduced by cc6df204e2f58fffda5cbe90f3450aeba95889c4 https://bugzilla.gnome.org/show_bug.cgi?id=703343
* gl: fallback to glGetString if GL_NUM_EXTENSIONS failsJulien Isorce2014-03-231-9/+23
| | | | Need it on MacOSX 10.7.5
* gl: define GL_NUM_EXTENSIONS if not definedMatthew Waters2014-03-161-0/+4
|
* gl: silence all the compiler warningsMatthew Waters2014-03-161-12/+2
|
* [902/906] context: implement glGetStringi handling for GL core contexts/GLES3Matthew Waters2014-03-151-3/+27
|
* [895/906] context: call window_class->close lastMatthew Waters2014-03-151-4/+6
| | | | | | We should destroy resources before closing the display connection Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725048
* [892/906] silence a compiler warning on older gcc versions (4.6)Matthew Waters2014-03-151-1/+1
|
* [891/906] context: add support for wrapping external contextsMatthew Waters2014-03-151-35/+195
|
* [883/906] api: provide from_string()Matthew Waters2014-03-151-41/+4
| | | | Also s/gst_gl_api_string/gst_gl_api_to_string/g
* [856/906] context: document itMatthew Waters2014-03-151-1/+113
|
* [841/906] osx: allow x11/glx backend and set default runtime to cocoa/nsglJulien Isorce2014-03-151-5/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=719757