platform/upstream/gstreamer.git
10 years agogl: fix the use of always-defined macros
Руслан Ижбулатов [Tue, 18 Mar 2014 00:08:50 +0000 (00:08 +0000)]
gl: fix the use of always-defined macros

After 2a0f0399ae226089c2ba07b1b904741b856f37af GST_GL_* macros are always
defined to 0 or 1. Don't use #ifdef ... or #if defined() on them.

https://bugzilla.gnome.org/show_bug.cgi?id=726591

10 years agogl: check for X unconditionally
Руслан Ижбулатов [Tue, 18 Mar 2014 00:07:43 +0000 (00:07 +0000)]
gl: check for X unconditionally

Without this the HAVE_X macro is empty, not "no" or "yes", which is not
what the later code is counting on.

https://bugzilla.gnome.org/show_bug.cgi?id=726591

10 years agogl: set default value to 0 for all definitions that go to gstglconfig.h
Julien Isorce [Mon, 17 Mar 2014 17:35:22 +0000 (17:35 +0000)]
gl: set default value to 0 for all definitions that go to gstglconfig.h

To avoid warnings like "GST_GL_HAVE_OPENGL is not defined".
As we are using #if instead of #ifdef

10 years agogl: allow not building the gl library plugins
Matthew Waters [Mon, 17 Mar 2014 14:49:37 +0000 (15:49 +0100)]
gl: allow not building the gl library plugins

10 years agogl: add GModule libs for win32
Matthew Waters [Mon, 17 Mar 2014 14:16:13 +0000 (15:16 +0100)]
gl: add GModule libs for win32

10 years agogl: only link against gstegl if we are using egl
Matthew Waters [Mon, 17 Mar 2014 14:06:25 +0000 (15:06 +0100)]
gl: only link against gstegl if we are using egl

Assuming if we are building egl that the egl library is built

10 years agogl: add the option of disabling cocoa on OS X using --disable-cocoa
Matthew Waters [Mon, 17 Mar 2014 14:05:24 +0000 (15:05 +0100)]
gl: add the option of disabling cocoa on OS X using --disable-cocoa

10 years agogl: add path of the gstegl library
Matthew Waters [Mon, 17 Mar 2014 13:37:13 +0000 (14:37 +0100)]
gl: add path of the gstegl library

Temporary until we merge the two libraries

10 years agoRevert "gl: add dep on gstegl"
Matthew Waters [Mon, 17 Mar 2014 13:26:31 +0000 (14:26 +0100)]
Revert "gl: add dep on gstegl"

It was already in _LIBADD

This reverts commit b10a3530804335fc3b9494603ef78ce9417c3bc8.

10 years agogl: add dep on gstegl
Matthew Waters [Mon, 17 Mar 2014 13:11:14 +0000 (14:11 +0100)]
gl: add dep on gstegl

Temporary until we merge the two libraries

10 years agogl/cocoa: Fix debug statements and platform
Edward Hervey [Mon, 17 Mar 2014 13:06:22 +0000 (14:06 +0100)]
gl/cocoa: Fix debug statements and platform

10 years agogl: set HAVE_EGL_RPI to yes if HAVE_GL and RPI
Julien Isorce [Mon, 17 Mar 2014 12:32:26 +0000 (12:32 +0000)]
gl: set HAVE_EGL_RPI to yes if HAVE_GL and RPI

Which fixes build on Raspberry Pi since -gl has been moved to -bad

10 years agogl: Fix static build with objective-C
Edward Hervey [Mon, 17 Mar 2014 11:04:40 +0000 (12:04 +0100)]
gl: Fix static build with objective-C

--tag=CC is needed for static build

10 years agomake: whitespace cleanups
Thijs Vermeir [Mon, 17 Mar 2014 11:00:09 +0000 (12:00 +0100)]
make: whitespace cleanups

10 years agogl: Add EGLDisplay display subclass
Matthew Waters [Mon, 17 Mar 2014 09:56:39 +0000 (10:56 +0100)]
gl: Add EGLDisplay display subclass

10 years agogl/window: add a dummy window class
Matthew Waters [Mon, 17 Mar 2014 09:44:32 +0000 (10:44 +0100)]
gl/window: add a dummy window class

Effective for the case where we have a platform that does not
require a native window.  We require a mainloop to run the GL
commands which is currently operated by GstGLWindow.

10 years agogl: fix undeclared symbol when building without GST_DEBUG
Matthew Waters [Mon, 17 Mar 2014 07:10:50 +0000 (08:10 +0100)]
gl: fix undeclared symbol when building without GST_DEBUG

10 years agogl: fix a double unref of the query when building without X
Matthew Waters [Sun, 16 Mar 2014 17:55:03 +0000 (18:55 +0100)]
gl: fix a double unref of the query when building without X

10 years agodvbsuboverlay: handle video/x-raw(ANY) if downstream supports the GstVideoOverlayComp...
Matthieu Bouron [Sun, 16 Mar 2014 16:36:06 +0000 (16:36 +0000)]
dvbsuboverlay: handle video/x-raw(ANY) if downstream supports the GstVideoOverlayCompositionMeta API

https://bugzilla.gnome.org/show_bug.cgi?id=726463

10 years agogl: silence a compiler warning about missing prototypes
Matthew Waters [Sun, 16 Mar 2014 16:21:38 +0000 (17:21 +0100)]
gl: silence a compiler warning about missing prototypes

10 years agogl/utils: add x11 GstContext handling
Matthew Waters [Fri, 14 Mar 2014 18:03:36 +0000 (19:03 +0100)]
gl/utils: add x11 GstContext handling

https://bugzilla.gnome.org/show_bug.cgi?id=726360

10 years agogl: define GL_NUM_EXTENSIONS if not defined
Matthew Waters [Sun, 16 Mar 2014 14:34:11 +0000 (15:34 +0100)]
gl: define GL_NUM_EXTENSIONS if not defined

10 years agoMove gst-plugins-gl to bad
Matthew Waters [Sun, 16 Mar 2014 14:08:23 +0000 (15:08 +0100)]
Move gst-plugins-gl to bad

10 years agogl: silence all the compiler warnings
Matthew Waters [Sun, 16 Mar 2014 14:06:37 +0000 (15:06 +0100)]
gl: silence all the compiler warnings

10 years agomove gl elements to ext subdirectory
Matthew Waters [Sun, 16 Mar 2014 10:23:16 +0000 (11:23 +0100)]
move gl elements to ext subdirectory

10 years ago[906/906] filter: warn about trying to share with multiple contexts at once
Matthew Waters [Sat, 15 Mar 2014 14:55:46 +0000 (15:55 +0100)]
[906/906] filter: warn about trying to share with multiple contexts at once

10 years ago[905/906] Add GL context sharing support for non-gstgl elements
Matthew Waters [Sat, 15 Mar 2014 13:06:40 +0000 (14:06 +0100)]
[905/906] Add GL context sharing support for non-gstgl elements

10 years ago[904/906] mixer: ask for display handles on pad activation
Matthew Waters [Sat, 15 Mar 2014 12:55:39 +0000 (13:55 +0100)]
[904/906] mixer: ask for display handles on pad activation

10 years ago[903/906] api: add GstGLPlatform to/from string
Matthew Waters [Sat, 15 Mar 2014 12:51:44 +0000 (13:51 +0100)]
[903/906] api: add GstGLPlatform to/from string

10 years ago[902/906] context: implement glGetStringi handling for GL core contexts/GLES3
Matthew Waters [Sat, 15 Mar 2014 10:25:43 +0000 (11:25 +0100)]
[902/906] context: implement glGetStringi handling for GL core contexts/GLES3

10 years ago[901/906] glx: use the display handle from the global display
Matthew Waters [Wed, 12 Mar 2014 12:46:58 +0000 (23:46 +1100)]
[901/906] glx: use the display handle from the global display

Intel drivers require the display handles be the same for context
sharing to occur.  Also solves some cases of use after free of the
display when integrating with gstreamer-vaapi.

See https://bugs.freedesktop.org/show_bug.cgi?id=41736 for the intel bug.

10 years ago[900/906] tests/gstglcontext: reduce the number of frames displayed
Matthew Waters [Wed, 12 Mar 2014 12:44:28 +0000 (23:44 +1100)]
[900/906] tests/gstglcontext: reduce the number of frames displayed

Was causing timeouts on intel hardware due to vsync handling.

10 years ago[899/906] egl: warn if we resort to display handles from the window
Matthew Waters [Wed, 12 Mar 2014 12:43:12 +0000 (23:43 +1100)]
[899/906] egl: warn if we resort to display handles from the window

10 years ago[898/906] glimagesink: add an other-context property
Matthew Waters [Thu, 6 Mar 2014 07:11:22 +0000 (18:11 +1100)]
[898/906] glimagesink: add an other-context property

Allows applications to provide us with an OpenGL context with which
to share with.

10 years ago[897/906] api: plugin a small memory leak
Matthew Waters [Tue, 4 Mar 2014 12:28:01 +0000 (23:28 +1100)]
[897/906] api: plugin a small memory leak

Found by adrien.schwartzentruber@gmail.com

10 years ago[896/906] utils: use the vtable for deleting the texture
Matthew Waters [Sun, 2 Mar 2014 00:48:54 +0000 (11:48 +1100)]
[896/906] utils: use the vtable for deleting the texture

10 years ago[895/906] context: call window_class->close last
Matthew Waters [Fri, 28 Feb 2014 06:42:51 +0000 (17:42 +1100)]
[895/906] context: call window_class->close last

We should destroy resources before closing the display connection

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725048

10 years ago[894/906] gl: add missing G_BEGIN_DECLS/G_END_DECLS
Wang Xin-yu (王昕宇) [Tue, 25 Feb 2014 01:27:26 +0000 (09:27 +0800)]
[894/906] gl: add missing G_BEGIN_DECLS/G_END_DECLS

https://bugzilla.gnome.org/show_bug.cgi?id=725111

10 years ago[893/906] x11: close both of the display's we use
Matthew Waters [Mon, 24 Feb 2014 12:55:58 +0000 (23:55 +1100)]
[893/906] x11: close both of the display's we use

(the comment doesn't seem to apply anymore)

https://bugzilla.gnome.org/show_bug.cgi?id=725048

10 years ago[892/906] silence a compiler warning on older gcc versions (4.6)
Matthew Waters [Sun, 23 Feb 2014 00:44:51 +0000 (11:44 +1100)]
[892/906] silence a compiler warning on older gcc versions (4.6)

10 years ago[891/906] context: add support for wrapping external contexts
Matthew Waters [Mon, 10 Feb 2014 21:57:29 +0000 (08:57 +1100)]
[891/906] context: add support for wrapping external contexts

10 years ago[890/906] x11: add display subclass
Matthew Waters [Wed, 27 Nov 2013 06:52:46 +0000 (17:52 +1100)]
[890/906] x11: add display subclass

GstGLDisplayX11 holds the display connection and name.  Each thread requires
it's own X11 Display connection (initialised from name) due to the fact that
we do not want to call XInitThreads().  Doing so would result in segfaults
when integrating with GUI toolkits Gtk, Qt, etc.

The Display connection is for OpenGL platforms where a constant display is
required in order to share contexts (egl).  In the case of a wrapped context
(added later), we do not have GstGLWindow to retreive the display from so a
'master' connection is used instead.

10 years ago[889/906] display: add display type enum
Matthew Waters [Tue, 14 Jan 2014 23:21:56 +0000 (10:21 +1100)]
[889/906] display: add display type enum

10 years ago[888/906] correct error handling in gstgldownload.c
Adrien SCH [Sun, 23 Feb 2014 00:27:23 +0000 (11:27 +1100)]
[888/906] correct error handling in gstgldownload.c

10 years ago[887/906] mixer: fixup a memory leak of the context in the GLTextureUploadMeta path
Matthew Waters [Sat, 22 Feb 2014 23:36:57 +0000 (10:36 +1100)]
[887/906] mixer: fixup a memory leak of the context in the GLTextureUploadMeta path

gst_structure_get returns a reference to the object and we asked
for another with gst_object_replace.

https://bugzilla.gnome.org/show_bug.cgi?id=724816

10 years ago[886/906] fixup a memory leak of the context in the GLTextureUploadMeta path
Matthew Waters [Sat, 22 Feb 2014 14:32:23 +0000 (01:32 +1100)]
[886/906] fixup a memory leak of the context in the GLTextureUploadMeta path

gst_structure_get returns a reference to the object and we asked
for another with gst_object_replace.

https://bugzilla.gnome.org/show_bug.cgi?id=724816

10 years ago[885/906] filter: free our data
Matthew Waters [Fri, 21 Feb 2014 04:25:22 +0000 (15:25 +1100)]
[885/906] filter: free our data

plugs some memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=724816

10 years ago[884/906] filter: return the pad template caps in transform_caps
Matthew Waters [Fri, 21 Feb 2014 02:28:16 +0000 (13:28 +1100)]
[884/906] filter: return the pad template caps in transform_caps

We can transform from any input in our caps to any output.
With the following pipeline snippet:

  ... ! vaapidecode ! glcolorscale ! xvimagesink

GstVideoGLTextureUploadMeta was being used on both src and sink
pads causing linking to fail.  This allows the usage of the meta
on either pad without affecting whether the meta is chosen on the
other pad.

10 years ago[883/906] api: provide from_string()
Matthew Waters [Mon, 10 Feb 2014 21:23:39 +0000 (08:23 +1100)]
[883/906] api: provide from_string()

Also s/gst_gl_api_string/gst_gl_api_to_string/g

10 years ago[882/906] port glcolorscale to GLES2
Matthew Waters [Mon, 10 Feb 2014 20:24:40 +0000 (07:24 +1100)]
[882/906] port glcolorscale to GLES2

10 years ago[881/906] upload: restore default values for unpack_length
Matthew Waters [Thu, 6 Feb 2014 10:43:45 +0000 (21:43 +1100)]
[881/906] upload: restore default values for unpack_length

fixes elements that upload a supplementary texture (glbumber,
gldifferencematte, etc)

10 years ago[880/906] glimagesink: remove unused stored_buffer field
Matthew Waters [Tue, 4 Feb 2014 13:44:18 +0000 (00:44 +1100)]
[880/906] glimagesink: remove unused stored_buffer field

It has the potential to cause deadlocks.

10 years ago[879/906] build: don't add X_CFLAGS to CFLAGS
Matthew Waters [Thu, 20 Feb 2014 11:40:05 +0000 (22:40 +1100)]
[879/906] build: don't add X_CFLAGS to CFLAGS

It should already be included if needed inside GL_CFLAGS

10 years ago[878/906] tests: update for glmem api change
Matthew Waters [Tue, 4 Feb 2014 14:53:04 +0000 (01:53 +1100)]
[878/906] tests: update for glmem api change

10 years ago[877/906] x11: Use correct format string for guintptr
Chris Paulson-Ellis [Tue, 4 Feb 2014 12:49:35 +0000 (13:49 +0100)]
[877/906] x11: Use correct format string for guintptr

https://bugzilla.gnome.org/show_bug.cgi?id=723537

10 years ago[876/906] glmem: use GstVideoInfo for format configuration
Matthew Waters [Fri, 31 Jan 2014 16:14:48 +0000 (03:14 +1100)]
[876/906] glmem: use GstVideoInfo for format configuration

Allows use of strides

10 years ago[875/906] upload: support for arbitrary strides
Matthew Waters [Thu, 30 Jan 2014 19:53:54 +0000 (06:53 +1100)]
[875/906] upload: support for arbitrary strides

Using GL_UNPACK_ALIGNMENT for GLES2 and GL_UNPACK_ROW_LENGTH for everything else

10 years ago[874/906] filter: implement draw_texture for GLES2
Matthew Waters [Wed, 29 Jan 2014 20:49:20 +0000 (07:49 +1100)]
[874/906] filter: implement draw_texture for GLES2

(taken from gleffects)

10 years ago[873/906] upload: use GstVideoInfo for choosing the format
Matthew Waters [Wed, 29 Jan 2014 08:14:54 +0000 (19:14 +1100)]
[873/906] upload: use GstVideoInfo for choosing the format

10 years ago[872/906] upload: consolidate data _fill
Matthew Waters [Tue, 28 Jan 2014 19:42:40 +0000 (06:42 +1100)]
[872/906] upload: consolidate data _fill

10 years ago[871/906] upload: fix texture scaling for YUY2/UYVY with GLES2
Matthew Waters [Tue, 28 Jan 2014 15:51:23 +0000 (02:51 +1100)]
[871/906] upload: fix texture scaling for YUY2/UYVY with GLES2

Another artifact from the transition to GL_TEXTURE_2D

10 years ago[870/906] upload: remove superflous g_mutex_init
Matthew Waters [Tue, 28 Jan 2014 14:02:57 +0000 (01:02 +1100)]
[870/906] upload: remove superflous g_mutex_init

10 years ago[869/906] tests: add some upload tests
Matthew Waters [Wed, 29 Jan 2014 21:28:52 +0000 (08:28 +1100)]
[869/906] tests: add some upload tests

10 years ago[868/906] upload: fix compilation for GLES2
Matthew Waters [Mon, 27 Jan 2014 20:50:13 +0000 (07:50 +1100)]
[868/906] upload: fix compilation for GLES2

10 years ago[867/906] glupload: Add GRAY8/GRAY16LE/BE upload support to glimagesink
Wang Xin-yu (王昕宇) [Fri, 17 Jan 2014 00:46:02 +0000 (08:46 +0800)]
[867/906] glupload: Add GRAY8/GRAY16LE/BE upload support to glimagesink

the 16bit data is uploaded as LUMINANCE_ALPHA, then expanded, composed
in shader. value weight is a little complicate, high byte weight is
255*256/65535 (denormalize to [0~255] ,shift to high byte,then normalize
to [0~1]), low byte weight is 255/65535(similar)

https://bugzilla.gnome.org/show_bug.cgi?id=722670

10 years ago[866/906] upload: update some docs
Matthew Waters [Sat, 23 Nov 2013 11:57:03 +0000 (22:57 +1100)]
[866/906] upload: update some docs

10 years ago[865/906] glmem: report successful copy to the caller
Matthew Waters [Sat, 23 Nov 2013 11:19:18 +0000 (22:19 +1100)]
[865/906] glmem: report successful copy to the caller

10 years ago[864/906] examples: update to gtk3
Matthew Waters [Sun, 29 Dec 2013 06:29:53 +0000 (17:29 +1100)]
[864/906] examples: update to gtk3

10 years ago[863/906] window: hold a ref to our GstGLDisplay
Matthew Waters [Mon, 25 Nov 2013 22:32:32 +0000 (09:32 +1100)]
[863/906] window: hold a ref to our GstGLDisplay

10 years ago[862/906] window: remove set_need_lock
Matthew Waters [Mon, 25 Nov 2013 09:34:06 +0000 (20:34 +1100)]
[862/906] window: remove set_need_lock

No-one is using it.  The only code that did was the x11 one which
doesn't need it anymore.

10 years ago[861/906] glprototypes: Add missing glScalef declare
Wang Xin-yu (王昕宇) [Thu, 9 Jan 2014 18:50:14 +0000 (02:50 +0800)]
[861/906] glprototypes: Add missing glScalef declare

https://bugzilla.gnome.org/show_bug.cgi?id=721903

10 years ago[860/906] docs: misc updates
Matthew Waters [Sat, 23 Nov 2013 11:58:57 +0000 (22:58 +1100)]
[860/906] docs: misc updates

10 years ago[859/906] window: provide some documetation
Matthew Waters [Sat, 23 Nov 2013 11:57:49 +0000 (22:57 +1100)]
[859/906] window: provide some documetation

10 years ago[858/906] glmem: update the docs
Matthew Waters [Sat, 23 Nov 2013 11:56:10 +0000 (22:56 +1100)]
[858/906] glmem: update the docs

10 years ago[857/906] display: document the new GstContext api
Matthew Waters [Sat, 23 Nov 2013 11:54:46 +0000 (22:54 +1100)]
[857/906] display: document the new GstContext api

10 years ago[856/906] context: document it
Matthew Waters [Sat, 23 Nov 2013 11:53:48 +0000 (22:53 +1100)]
[856/906] context: document it

10 years ago[855/906] upload: add support for GstVideoGLTextureUploadMeta
Matthew Waters [Thu, 14 Nov 2013 04:27:52 +0000 (15:27 +1100)]
[855/906] upload: add support for GstVideoGLTextureUploadMeta

10 years ago[854/906] use the allocation query to propogate GstGLContext
Matthew Waters [Tue, 12 Nov 2013 13:41:01 +0000 (00:41 +1100)]
[854/906] use the allocation query to propogate GstGLContext

uses the GstVideoGLTextureUploadMeta api type for the query

10 years ago[853/906] display: remove _{set,get}_context
Matthew Waters [Thu, 24 Oct 2013 11:30:45 +0000 (22:30 +1100)]
[853/906] display: remove _{set,get}_context

A GstGLDisplay doesn't need a GstGLContext and its use
was cause a reference cycle

10 years ago[852/906] use GstContext for GstGLDisplay propogation
Matthew Waters [Tue, 12 Nov 2013 23:43:16 +0000 (10:43 +1100)]
[852/906] use GstContext for GstGLDisplay propogation

implements the hooks required in GstElement::set_context and the context query

10 years ago[851/906] deinterlace: fix texture coordinates computation
Matthieu Bouron [Fri, 20 Dec 2013 15:18:38 +0000 (15:18 +0000)]
[851/906] deinterlace: fix texture coordinates computation

Fixes a regression introduced by fffdcbdd3dde437e10cf6e1b5e40c6958d41e6c1

https://bugzilla.gnome.org/show_bug.cgi?id=720826

10 years ago[850/906] glupload: Remove texture scaling artifacts from the TEXTURE_RECTANGLE ...
Matthew Waters [Fri, 15 Nov 2013 07:28:49 +0000 (18:28 +1100)]
[850/906] glupload: Remove texture scaling artifacts from the TEXTURE_RECTANGLE -> TEXTURE_2D transition

fixes the funky colours in some of the yuv formats

https://bugzilla.gnome.org/show_bug.cgi?id=721155

10 years ago[849/906] testsrc: use _context_get_gl_api
Matthew Waters [Fri, 25 Oct 2013 15:20:17 +0000 (02:20 +1100)]
[849/906] testsrc: use _context_get_gl_api

10 years ago[848/906] filter: a little code cleanup
Matthew Waters [Thu, 24 Oct 2013 11:28:57 +0000 (22:28 +1100)]
[848/906] filter: a little code cleanup

10 years ago[847/906] mixer: unmap the video frames we map
Matthew Waters [Wed, 13 Nov 2013 04:57:07 +0000 (15:57 +1100)]
[847/906] mixer: unmap the video frames we map

plugs a memory leak

10 years ago[846/906] mixer: handle 0/1 framerate better in caps
Matthew Waters [Fri, 15 Nov 2013 09:50:27 +0000 (20:50 +1100)]
[846/906] mixer: handle 0/1 framerate better in caps

10 years ago[845/906] filter: handle capsfeatures properly
Matthew Waters [Fri, 15 Nov 2013 09:49:43 +0000 (20:49 +1100)]
[845/906] filter: handle capsfeatures properly

10 years ago[844/906] mixer: give access to the pads at render time
Matthew Waters [Thu, 14 Nov 2013 04:08:47 +0000 (15:08 +1100)]
[844/906] mixer: give access to the pads at render time

allows us to move the video frame mapping somewhere else

10 years ago[843/906] memory: provide copy_into_texture
Matthew Waters [Wed, 13 Nov 2013 12:24:00 +0000 (23:24 +1100)]
[843/906] memory: provide copy_into_texture

10 years ago[842/906] Fix gstglconfig.h-related 'make distcheck' issues
Tim-Philipp Müller [Wed, 25 Dec 2013 23:35:50 +0000 (23:35 +0000)]
[842/906] Fix gstglconfig.h-related 'make distcheck' issues

Fix srcdir vs. builddir issue in docs and 'files left after
disclean' issue for gstglconfig.h

10 years ago[841/906] osx: allow x11/glx backend and set default runtime to cocoa/nsgl
Julien Isorce [Sat, 30 Nov 2013 09:51:49 +0000 (09:51 +0000)]
[841/906] osx: allow x11/glx backend and set default runtime to cocoa/nsgl

https://bugzilla.gnome.org/show_bug.cgi?id=719757

10 years ago[840/906] glvideomixer: Use correct coordinates after the switch from GL_TEXTURE_RECT...
Wang Xin-yu (王昕宇) [Sat, 14 Dec 2013 18:12:09 +0000 (19:12 +0100)]
[840/906] glvideomixer: Use correct coordinates after the switch from GL_TEXTURE_RECTANGLE to GL_TEXTURE_2D

https://bugzilla.gnome.org/show_bug.cgi?id=720177

10 years ago[839/906] cocoa: allow to call set_window_handle before to create glcontext
Julien Isorce [Sat, 30 Nov 2013 16:38:13 +0000 (16:38 +0000)]
[839/906] cocoa: allow to call set_window_handle before to create glcontext

So that it actually make cocoa videooverlay example work again.

Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=719758

10 years ago[838/906] gl: Use GL_TEXTURE_2D instead of GL_TEXTURE_RECTANGLE
Matthew Waters [Fri, 15 Nov 2013 07:28:49 +0000 (18:28 +1100)]
[838/906] gl: Use GL_TEXTURE_2D instead of GL_TEXTURE_RECTANGLE

We create our textures (in Desktop GL) with GL_TEXTURE_RECTANGLE,
vaapi attempts to bind our texture to GL_TEXTURE_2D which throws a
GL_INVALID_OPERATION error and as thus, no video.

Also, by moving exclusively to GL_TEXTURE_2D and the npot extension
we also remove a difference between the Desktop GL and GLES2 code.

https://bugzilla.gnome.org/show_bug.cgi?id=712287

10 years ago[837/906] cocoa: resize OpenGL view size each time the window is resized
Matthieu Bouron [Fri, 8 Nov 2013 12:12:26 +0000 (12:12 +0000)]
[837/906] cocoa: resize OpenGL view size each time the window is resized

Fixes glitches that can appear when the OpenGL view has not been resized
after a window resize.

https://bugzilla.gnome.org/show_bug.cgi?id=711672

10 years ago[836/906] cocoa: only use GSRegisterCurrentThread with GNUStep environment
Matthieu Bouron [Fri, 1 Nov 2013 16:35:46 +0000 (16:35 +0000)]
[836/906] cocoa: only use GSRegisterCurrentThread with GNUStep environment

10 years ago[835/906] gstglwindow: remove unused fields
Julien Isorce [Wed, 6 Nov 2013 22:16:21 +0000 (22:16 +0000)]
[835/906] gstglwindow: remove unused fields

10 years ago[834/906] gstglwindow: clear mutex
Julien Isorce [Wed, 6 Nov 2013 22:13:20 +0000 (22:13 +0000)]
[834/906] gstglwindow: clear mutex

10 years ago[833/906] gstglcontext: initialize window to NULL
Julien Isorce [Wed, 6 Nov 2013 22:12:02 +0000 (22:12 +0000)]
[833/906] gstglcontext: initialize window to NULL

10 years ago[832/906] x11: ignore Expose events not initiated by gst_gl_window_draw
Julien Isorce [Wed, 6 Nov 2013 21:59:27 +0000 (21:59 +0000)]
[832/906] x11: ignore Expose events not initiated by gst_gl_window_draw