platform/upstream/gstreamer.git
10 years ago[710/906] window: fail if the user specifies an GL api that we cannot work with
Matthew Waters [Sun, 16 Jun 2013 10:34:15 +0000 (20:34 +1000)]
[710/906] window: fail if the user specifies an GL api that we cannot work with

It would've been caught later in an g_assert anyway.

10 years ago[709/906] display: some more cleanups
Matthew Waters [Thu, 13 Jun 2013 08:33:47 +0000 (18:33 +1000)]
[709/906] display: some more cleanups

10 years ago[708/906] display: a cleanup and removal of old code
Matthew Waters [Thu, 13 Jun 2013 07:57:35 +0000 (17:57 +1000)]
[708/906] display: a cleanup and removal of old code

10 years ago[707/906] display: move error_message to utils
Matthew Waters [Thu, 13 Jun 2013 06:55:37 +0000 (16:55 +1000)]
[707/906] display: move error_message to utils

10 years ago[706/906] display: move activate_context into utils
Matthew Waters [Thu, 13 Jun 2013 06:31:38 +0000 (16:31 +1000)]
[706/906] display: move activate_context into utils

10 years ago[705/906] x11: don't shutdown in _finalize
Matthew Waters [Thu, 13 Jun 2013 06:04:40 +0000 (16:04 +1000)]
[705/906] x11: don't shutdown in _finalize

The window's loop could be still running when _finalize is called
and if we destroy the display connection it will never be closed.

Add _open and _close vfuncs to GstGLWindow so that subclasses can
start up and shutdown at the right time.

10 years ago[704/906] Use gst_object_[un]ref so we can get refcounts in the log
Matthew Waters [Thu, 13 Jun 2013 04:36:41 +0000 (14:36 +1000)]
[704/906] Use gst_object_[un]ref so we can get refcounts in the log

10 years ago[703/906] x11: don't segfault if destroy_cb is NULL
Matthew Waters [Thu, 13 Jun 2013 04:18:24 +0000 (14:18 +1000)]
[703/906] x11: don't segfault if destroy_cb is NULL

10 years ago[702/906] x11: fix segfault if the x11 backend is instantiated but not used
Matthew Waters [Wed, 12 Jun 2013 13:21:16 +0000 (23:21 +1000)]
[702/906] x11: fix segfault if the x11 backend is instantiated but not used

10 years ago[701/906] display: move context creation into window
Matthew Waters [Wed, 12 Jun 2013 13:17:30 +0000 (23:17 +1000)]
[701/906] display: move context creation into window

10 years ago[700/906] display: move most of the code into utils for sorting later
Matthew Waters [Tue, 11 Jun 2013 15:04:55 +0000 (01:04 +1000)]
[700/906] display: move most of the code into utils for sorting later

This contains a hack that essentially requires one GstGLDisplay
per process.

10 years ago[699/906] display: remove list of upload and download objects
Matthew Waters [Tue, 11 Jun 2013 08:50:12 +0000 (18:50 +1000)]
[699/906] display: remove list of upload and download objects

and only create an up/download object when needed.

10 years ago[698/906] move sink-specific stuff from GstGLDisplay into glimagesink
Matthew Waters [Tue, 11 Jun 2013 02:26:50 +0000 (12:26 +1000)]
[698/906] move sink-specific stuff from GstGLDisplay into glimagesink

10 years ago[697/906] display: allow the user to try and choose the GL api we use via env variable
Matthew Waters [Tue, 11 Jun 2013 01:27:56 +0000 (11:27 +1000)]
[697/906] display: allow the user to try and choose the GL api we use via env variable

GST_GL_API=opengl,opengl3,gles2,gles3

10 years ago[696/906] glapi: fix memory leak from not freeing a string
Matthew Waters [Tue, 11 Jun 2013 01:26:38 +0000 (11:26 +1000)]
[696/906] glapi: fix memory leak from not freeing a string

10 years ago[695/906] build: remove libtool warning about -version-info not used in convenience...
Matthew Waters [Tue, 4 Jun 2013 12:18:51 +0000 (22:18 +1000)]
[695/906] build: remove libtool warning about -version-info not used in convenience libraries

10 years ago[694/906] build: add support for static plugins
Matthew Waters [Tue, 4 Jun 2013 12:17:41 +0000 (22:17 +1000)]
[694/906] build: add support for static plugins

10 years ago[693/906] x11_glx: ask for a 3.0 GL Context
Matthew Waters [Tue, 4 Jun 2013 12:16:00 +0000 (22:16 +1000)]
[693/906] x11_glx: ask for a 3.0 GL Context

(falling back if needed)

10 years ago[692/906] window_x11: add XError trapping
Matthew Waters [Mon, 3 Jun 2013 08:15:45 +0000 (18:15 +1000)]
[692/906] window_x11: add XError trapping

some functions in GLX can fail if the implementation does not support
certain features we ask for (i.e. GL 3) bringing down the entire
application

10 years ago[691/906] feature: make gst_gl_check_extension public
Matthew Waters [Mon, 3 Jun 2013 08:13:52 +0000 (18:13 +1000)]
[691/906] feature: make gst_gl_check_extension public

prevents duplication of code of extension string parsing in GstGLWindow's

10 years ago[690/906] windowx11glx: use fbconfigs if supported
Matthew Waters [Sun, 2 Jun 2013 11:47:17 +0000 (21:47 +1000)]
[690/906] windowx11glx: use fbconfigs if supported

10 years ago[689/906] bumper: nicer error for no bumpmap file proveded
Matthew Waters [Thu, 25 Apr 2013 02:04:23 +0000 (12:04 +1000)]
[689/906] bumper: nicer error for no bumpmap file proveded

10 years ago[688/906] display: properly shutdown if we error after context creation
Matthew Waters [Wed, 24 Apr 2013 04:25:21 +0000 (14:25 +1000)]
[688/906] display: properly shutdown if we error after context creation

The _finalize() code checks to see if the context was created before
attempting to destroy it.  We never did say that we had created the context.

10 years ago[687/906] bumper: error out properly if we cannot load the png file
Matthew Waters [Wed, 24 Apr 2013 04:24:27 +0000 (14:24 +1000)]
[687/906] bumper: error out properly if we cannot load the png file

10 years ago[686/906] filtershader: fix string format compiler warnings
Matthew Waters [Wed, 24 Apr 2013 04:23:16 +0000 (14:23 +1000)]
[686/906] filtershader: fix string format compiler warnings

10 years ago[685/906] filter: improve error handling
Matthew Waters [Wed, 24 Apr 2013 04:22:40 +0000 (14:22 +1000)]
[685/906] filter: improve error handling

10 years ago[684/906] display: lack of format-string causing a compiler warning
Matthew Waters [Wed, 24 Apr 2013 02:18:14 +0000 (12:18 +1000)]
[684/906] display: lack of format-string causing a compiler warning

10 years ago[683/906] feature: remove double free
Matthew Waters [Wed, 24 Apr 2013 02:17:36 +0000 (12:17 +1000)]
[683/906] feature: remove double free

10 years ago[682/906] overlay: fix video-top property
Matthew Waters [Mon, 11 Mar 2013 04:51:06 +0000 (15:51 +1100)]
[682/906] overlay: fix video-top property

10 years ago[681/906] win32: fix gl api calls on 32-bit
Matthew Waters [Sun, 2 Jun 2013 07:52:30 +0000 (07:52 +0000)]
[681/906] win32: fix gl api calls on 32-bit

win has the bright idea of having 5 different calling conventions.
we should probably use the right one so we don't crash from stack
corruption.

10 years ago[680/906] overlay: tentative port to new GstGLFuncs API
Matthew Waters [Sun, 10 Mar 2013 02:37:48 +0000 (13:37 +1100)]
[680/906] overlay: tentative port to new GstGLFuncs API

10 years ago[679/906] opengl: fix plugins not being registered when they should be
Matthew Waters [Sun, 10 Mar 2013 02:34:15 +0000 (13:34 +1100)]
[679/906] opengl: fix plugins not being registered when they should be

10 years ago[678/906] window_win32_wgl: implement wglGetProcAddress for extension functions
Matthew Waters [Sat, 9 Mar 2013 12:36:36 +0000 (23:36 +1100)]
[678/906] window_win32_wgl: implement wglGetProcAddress for extension functions

10 years ago[677/906] memory: fix GSIZE printf format on win32
Matthew Waters [Sat, 9 Mar 2013 11:53:41 +0000 (22:53 +1100)]
[677/906] memory: fix GSIZE printf format on win32

10 years ago[676/906] windwo_win32: port to new API
Matthew Waters [Sat, 9 Mar 2013 11:53:09 +0000 (22:53 +1100)]
[676/906] windwo_win32: port to new API

10 years ago[675/906] upload: provide nicer debugging
Matthew Waters [Sat, 9 Mar 2013 11:47:11 +0000 (22:47 +1100)]
[675/906] upload: provide nicer debugging

10 years ago[674/906] feature: try and catch more GL extension functions
Matthew Waters [Sat, 9 Mar 2013 11:45:23 +0000 (22:45 +1100)]
[674/906] feature: try and catch more GL extension functions

if we don't find the extension in core GL, try the extension version anyway

10 years ago[673/906] feature: add gstreamer license
Matthew Waters [Sat, 9 Mar 2013 11:37:34 +0000 (22:37 +1100)]
[673/906] feature: add gstreamer license

10 years ago[672/906] display: constify GstGLFuncs *gl
Matthew Waters [Sat, 9 Mar 2013 11:05:28 +0000 (22:05 +1100)]
[672/906] display: constify GstGLFuncs *gl

10 years ago[671/906] win32: #include GL/glext.h on windows
Matthew Waters [Sat, 9 Mar 2013 10:59:02 +0000 (21:59 +1100)]
[671/906] win32: #include GL/glext.h on windows

also add some GL default variables if some GL types are not defined

10 years ago[670/906] display: replace glib deprecated api
Matthew Waters [Mon, 18 Feb 2013 10:40:34 +0000 (21:40 +1100)]
[670/906] display: replace glib deprecated api

10 years ago[669/906] window: seperate object creation and context creation
Matthew Waters [Tue, 12 Feb 2013 12:48:36 +0000 (23:48 +1100)]
[669/906] window: seperate object creation and context creation

10 years ago[668/906] shader: fix gles2 segfault
Matthew Waters [Mon, 4 Feb 2013 10:30:51 +0000 (21:30 +1100)]
[668/906] shader: fix gles2 segfault

10 years ago[667/906] filtercube: fix for gles2 compilation
Matthew Waters [Mon, 4 Feb 2013 10:29:33 +0000 (21:29 +1100)]
[667/906] filtercube: fix for gles2 compilation

10 years ago[666/906] sobel: port for non-glew
Matthew Waters [Fri, 1 Feb 2013 07:20:04 +0000 (18:20 +1100)]
[666/906] sobel: port for non-glew

10 years ago[665/906] mosaic: fix a couple of assertions
Matthew Waters [Thu, 31 Jan 2013 13:08:28 +0000 (00:08 +1100)]
[665/906] mosaic: fix a couple of assertions

10 years ago[664/906] filtershader: improve error checking
Matthew Waters [Thu, 31 Jan 2013 13:06:54 +0000 (00:06 +1100)]
[664/906] filtershader: improve error checking

10 years ago[663/906] filtershader: port to non-glew
Matthew Waters [Thu, 31 Jan 2013 12:51:04 +0000 (23:51 +1100)]
[663/906] filtershader: port to non-glew

10 years ago[662/906] laplacian: port to non-glew
Matthew Waters [Thu, 31 Jan 2013 12:46:37 +0000 (23:46 +1100)]
[662/906] laplacian: port to non-glew

10 years ago[661/906] glass: port to non-glew + shader matrices
Matthew Waters [Thu, 31 Jan 2013 12:43:52 +0000 (23:43 +1100)]
[661/906] glass: port to non-glew + shader matrices

10 years ago[660/906] cube: port for non-glew
Matthew Waters [Thu, 31 Jan 2013 12:39:56 +0000 (23:39 +1100)]
[660/906] cube: port for non-glew

10 years ago[659/906] blur: port for non-glew
Matthew Waters [Thu, 31 Jan 2013 12:34:42 +0000 (23:34 +1100)]
[659/906] blur: port for non-glew

10 years ago[658/906] mixer: fix eos timestamp check
Matthew Waters [Thu, 31 Jan 2013 12:32:49 +0000 (23:32 +1100)]
[658/906] mixer: fix eos timestamp check

10 years ago[657/906] filterapp: port to non-glew
Matthew Waters [Thu, 31 Jan 2013 12:31:09 +0000 (23:31 +1100)]
[657/906] filterapp: port to non-glew

10 years ago[656/906] bumper: use DrawElements for semi-compatability with ES
Matthew Waters [Thu, 31 Jan 2013 12:29:13 +0000 (23:29 +1100)]
[656/906] bumper: use DrawElements for semi-compatability with ES

also GL_QUADS isn't available with ES contexts

10 years ago[655/906] download: remove erronous ReadBuffer call
Matthew Waters [Thu, 17 Jan 2013 12:45:59 +0000 (23:45 +1100)]
[655/906] download: remove erronous ReadBuffer call

- it was causing segfaults in mesa
- we didn't set the readbuffer so we shouldn't reset it

10 years ago[654/906] differencematte: port to non-GLEW
Matthew Waters [Thu, 17 Jan 2013 12:17:14 +0000 (23:17 +1100)]
[654/906] differencematte: port to non-GLEW

10 years ago[653/906] deinterlace: port to non-GLEW + arrays
Matthew Waters [Thu, 17 Jan 2013 12:16:07 +0000 (23:16 +1100)]
[653/906] deinterlace: port to non-GLEW + arrays

10 years ago[652/906] bumper: port to non-GLEW + arrays
Matthew Waters [Thu, 17 Jan 2013 12:14:49 +0000 (23:14 +1100)]
[652/906] bumper: port to non-GLEW + arrays

10 years ago[651/906] up/download: fix some typos when removing GLEW
Matthew Waters [Thu, 17 Jan 2013 12:12:35 +0000 (23:12 +1100)]
[651/906] up/download: fix some typos when removing GLEW

10 years ago[650/906] filter: fix _draw_texture()'s wrong vertices
Matthew Waters [Wed, 16 Jan 2013 11:41:18 +0000 (22:41 +1100)]
[650/906] filter: fix _draw_texture()'s wrong vertices

10 years ago[649/906] effects: fixes for mirror(1) and squeeze(2) producing black
Matthew Waters [Wed, 16 Jan 2013 11:27:10 +0000 (22:27 +1100)]
[649/906] effects: fixes for mirror(1) and squeeze(2) producing black

10 years ago[648/906] tests/examples: remove dependency on glew
Matthew Waters [Wed, 16 Jan 2013 04:23:49 +0000 (15:23 +1100)]
[648/906] tests/examples: remove dependency on glew

10 years ago[647/906] remove dependecy on glew
Matthew Waters [Wed, 16 Jan 2013 04:21:44 +0000 (15:21 +1100)]
[647/906] remove dependecy on glew

10 years ago[646/906] some gl header fixes/additions
Matthew Waters [Sat, 12 Jan 2013 13:09:33 +0000 (00:09 +1100)]
[646/906] some gl header fixes/additions

10 years ago[645/906] fix gles2 compilation
Matthew Waters [Thu, 10 Jan 2013 02:32:16 +0000 (13:32 +1100)]
[645/906] fix gles2 compilation

10 years ago[644/906] update .gitignore for some new files
Matthew Waters [Wed, 9 Jan 2013 23:57:11 +0000 (10:57 +1100)]
[644/906] update .gitignore for some new files

10 years ago[643/906] display: privatise most of the struct
Matthew Waters [Wed, 9 Jan 2013 14:44:54 +0000 (01:44 +1100)]
[643/906] display: privatise most of the struct

10 years ago[642/906] add gstglconfig.h for apps to find out what our capabilites are
Matthew Waters [Wed, 9 Jan 2013 14:13:23 +0000 (01:13 +1100)]
[642/906] add gstglconfig.h for apps to find out what our capabilites are

ie libgstgl can be compiled with any combination of opengl/gles2

10 years ago[641/906] display: feature check for GL extension functions
Matthew Waters [Wed, 9 Jan 2013 13:30:03 +0000 (00:30 +1100)]
[641/906] display: feature check for GL extension functions

10 years ago[640/906] build: add missing file to built sources
Matthew Waters [Wed, 9 Jan 2013 13:25:06 +0000 (00:25 +1100)]
[640/906] build: add missing file to built sources

10 years ago[639/906] add get_proc_address implementations for egl and glx
Matthew Waters [Wed, 9 Jan 2013 13:23:32 +0000 (00:23 +1100)]
[639/906] add get_proc_address implementations for egl and glx

10 years ago[638/906] window: add get_proc_address + stub for retrieving gl functions
Matthew Waters [Tue, 8 Jan 2013 06:40:39 +0000 (17:40 +1100)]
[638/906] window: add get_proc_address + stub for retrieving gl functions

10 years ago[637/906] x11_egl: add prelim support for choosing opengl or gles
Matthew Waters [Tue, 8 Jan 2013 06:38:40 +0000 (17:38 +1100)]
[637/906] x11_egl: add prelim support for choosing opengl or gles

10 years ago[636/906] window_x11: compact debug info
Matthew Waters [Tue, 8 Jan 2013 06:36:18 +0000 (17:36 +1100)]
[636/906] window_x11: compact debug info

10 years ago[635/906] fixup compile errors
Matthew Waters [Mon, 7 Jan 2013 03:08:39 +0000 (14:08 +1100)]
[635/906] fixup compile errors

10 years ago[634/906] wayland egl: deactivate context before we destroy it
Matthew Waters [Wed, 19 Dec 2012 03:54:21 +0000 (14:54 +1100)]
[634/906] wayland egl: deactivate context before we destroy it

avoids a segfault with dri drivers

10 years ago[633/906] display: fail properly in context creation in order to minimize a race...
Matthew Waters [Wed, 19 Dec 2012 03:32:20 +0000 (14:32 +1100)]
[633/906] display: fail properly in context creation in order to minimize a race condition

previously, on context creation, when we failed to get a valid context
we would still atempt to run the window mainloop as well as setting an error
on the display. This would cause the calling element to finalize the display
and therefore attempt to quit the window mainloop.  However the mainloop
may not have started running.  Thus when the window mainloop ran it would
never a get a quit message and never end.

10 years ago[632/906] remove stray )
Matthew Waters [Tue, 18 Dec 2012 07:31:00 +0000 (18:31 +1100)]
[632/906] remove stray )

The rest is indent stuff from the stray )

10 years ago[631/906] remove redefinition warnings in compiling tests
Matthew Waters [Tue, 18 Dec 2012 07:29:11 +0000 (18:29 +1100)]
[631/906] remove redefinition warnings in compiling tests

10 years ago[630/906] display: add gl api checking
Matthew Waters [Sat, 8 Dec 2012 22:32:48 +0000 (09:32 +1100)]
[630/906] display: add gl api checking

i.e. check for cases where the window wants a different API than
what the library was compiled with

10 years ago[629/906] window: add GError for error handling of context creation
Matthew Waters [Sat, 8 Dec 2012 22:30:48 +0000 (09:30 +1100)]
[629/906] window: add GError for error handling of context creation

10 years ago[628/906] shader filter: don't do anything if we don't have a shader file
Matthew Waters [Sat, 8 Dec 2012 22:04:32 +0000 (09:04 +1100)]
[628/906] shader filter: don't do anything if we don't have a shader file

10 years ago[627/906] shader: check for invalid objects
Matthew Waters [Fri, 7 Dec 2012 02:32:28 +0000 (13:32 +1100)]
[627/906] shader: check for invalid objects

10 years ago[626/906] fix build failure from undefined macro
Matthew Waters [Thu, 6 Dec 2012 13:20:58 +0000 (00:20 +1100)]
[626/906] fix build failure from undefined macro

10 years ago[625/906] add vtable for opengl functions
Matthew Waters [Thu, 6 Dec 2012 13:16:04 +0000 (00:16 +1100)]
[625/906] add vtable for opengl functions

The vtable provides the ability for one to compile (but not link)
against both OpenGL and GL|ES and starts the move away from GLEW

10 years ago[624/906] OPENGL_ES2 => HAVE_GLES2 and add HAVE_OPENGL
Matthew Waters [Thu, 6 Dec 2012 07:40:26 +0000 (18:40 +1100)]
[624/906] OPENGL_ES2 => HAVE_GLES2 and add HAVE_OPENGL

use GstGLAPI to determine which code paths to execute.
perform some cleanups

10 years ago[623/906] move GL includes into a single file
Matthew Waters [Thu, 6 Dec 2012 06:40:47 +0000 (17:40 +1100)]
[623/906] move GL includes into a single file

10 years ago[622/906] add missing GL_STENCIL_ATTACHMENT for gles2 compatability
Matthew Waters [Wed, 5 Dec 2012 06:23:21 +0000 (17:23 +1100)]
[622/906] add missing GL_STENCIL_ATTACHMENT for gles2 compatability

10 years ago[621/906] GstGLRendererAPI => GstGLAPI and get GstGLAPI from a window
Matthew Waters [Mon, 3 Dec 2012 04:04:49 +0000 (15:04 +1100)]
[621/906] GstGLRendererAPI => GstGLAPI and get GstGLAPI from a window

10 years ago[620/906] wayland_egl: attempt at resizing the video
Matthew Waters [Fri, 30 Nov 2012 06:09:21 +0000 (17:09 +1100)]
[620/906] wayland_egl: attempt at resizing the video

10 years ago[619/906] fix typo for win32 debug variables
Matthew Waters [Thu, 29 Nov 2012 02:06:24 +0000 (13:06 +1100)]
[619/906] fix typo for win32 debug variables

10 years ago[618/906] add wayland-egl window backend
Matthew Waters [Wed, 28 Nov 2012 14:01:59 +0000 (01:01 +1100)]
[618/906] add wayland-egl window backend

10 years ago[617/906] fix 'set but not used' compiler warnings
Matthew Waters [Mon, 19 Nov 2012 13:15:05 +0000 (00:15 +1100)]
[617/906] fix 'set but not used' compiler warnings

10 years ago[616/906] move window-specific code into seperate subfolders
Matthew Waters [Mon, 19 Nov 2012 11:54:19 +0000 (22:54 +1100)]
[616/906] move window-specific code into seperate subfolders

10 years ago[615/906] preliminary support for Win32 EGL
Matthew Waters [Mon, 19 Nov 2012 10:52:22 +0000 (21:52 +1100)]
[615/906] preliminary support for Win32 EGL

10 years ago[614/906] try GLX first when using ANY | OPENGL | OPENGL3
Matthew Waters [Sat, 17 Nov 2012 14:23:52 +0000 (01:23 +1100)]
[614/906] try GLX first when using ANY | OPENGL | OPENGL3

10 years ago[613/906] window_cocoa: fix segfault with gst-launch-1.0 -e ... and sending SIGINT...
Matthew Waters [Sat, 17 Nov 2012 14:16:44 +0000 (01:16 +1100)]
[613/906] window_cocoa: fix segfault with gst-launch-1.0 -e ... and sending SIGINT (Ctrl-C)

GNUstep has a signal handler for SIGINT which runs in the main thread.
However that thread has never been 'registered' with GNUstep so
the autorelease magic of objective-c causes a segfault from accessing
a null NSThread object somewhere deep in GNUstep.

10 years ago[612/906] remove GNUstep makefiles
Matthew Waters [Fri, 16 Nov 2012 07:01:08 +0000 (18:01 +1100)]
[612/906] remove GNUstep makefiles

10 years ago[611/906] cocoa port of determining gl platform at runtime
Matthew Waters [Fri, 16 Nov 2012 06:13:03 +0000 (17:13 +1100)]
[611/906] cocoa port of determining gl platform at runtime