Commit graph

39 commits

Author SHA1 Message Date
Matthew Waters
b90d824626 [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
2014-03-15 18:37:03 +01:00
Mathieu Duponchelle
d0e95c34f3 [770/906] tests/examples: port some of the examples.
This commit is a first step, removes glupload, switch new-decoded-pad
to pad-added, but these examples still fail for various reasons.
2014-03-15 18:36:59 +01:00
Sebastian Dröge
19dff69a2e [729/906] gl: Include config.h everywhere 2014-03-15 18:36:57 +01:00
Sebastian Dröge
bef97ad03e [720/906] examples: Stop using deprecated GLib thread API 2014-03-15 18:36:56 +01:00
Matthew Waters
13067b104c [704/906] Use gst_object_[un]ref so we can get refcounts in the log 2014-03-15 18:36:56 +01:00
Matthew Waters
792db73013 [648/906] tests/examples: remove dependency on glew 2014-03-15 18:36:52 +01:00
Matthew Waters
93f7e993ad [603/906] update FSF address 2014-03-15 18:36:50 +01:00
Matthew Waters
89c743bbe5 [602/906] hide deprecation warnings with newer clutter versions 2014-03-15 18:36:49 +01:00
Matthew Waters
86cdbad63c [598/906] examples: fix compilation of cluttershare 2014-03-15 18:36:49 +01:00
Matthew Waters
38ab01769d [560/906] examples: update for bus api changes and glimagesink changes 2014-03-15 18:36:47 +01:00
Matthew Waters
3682dd82b1 [511/906] tests: update for 1.0 2014-03-15 18:36:44 +01:00
Julien Isorce
816a5bcb36 [468/906] tests: fix commentary in clutteractor example 2014-03-15 18:36:42 +01:00
Julien Isorce
d21aaa22bf [467/906] tests: various build fixes
- cmake could not find glib
 - put gtk variables at the beginning to avoid GL conflicts
 - update examples to clutter-1.8
 - use const instead of deprecated G_CONST_RETURN
 - set max pending events to 0 to make cube example works again
2014-03-15 18:36:42 +01:00
Sebastian Dröge
7e3070fe31 [466/906] tests: Fix variable unused but set compiler warning 2014-03-15 18:36:42 +01:00
Stefan Kost
ac138f74a1 [461/906] xoverlay: require base from git and update to new API 2014-03-15 18:36:41 +01:00
Julien Isorce
a6a5ee2839 [405/906] glfilter: add external-opengl-context property
It repairs the cluttershare and sdlshare example
2014-03-15 18:36:38 +01:00
julien
6d9ee6fe43 [345/906] change rotation center in cluttershare example 2014-03-15 18:36:35 +01:00
Julien Isorce
eeece94c58 [344/906] Use a more complex gst gl pipeline in the cluttershare example 2014-03-15 18:36:35 +01:00
Julien Isorce
01cbcb4d3c [343/906] Add a signal watch bus callback to check gst messages 2014-03-15 18:36:34 +01:00
Julien Isorce
76afadd6c7 [342/906] Fix texture actor update due to a too strong thread locking.
On linux, the GSource func attached to the clutter_threads_add_idle
was not getting the cpu ressource periodically.
Because the use of clutter_threads_enter/leave inside the fakesink
callback seems to be too strong.
So remove the use if clutter_threads_enter/leave in the fakesink callback.
Then replace GQueue by GAsyncQueue to keep thread safe access to the
communication queues between clutter and gst-gl.
Call clutter_threads_add_idle with high priority.
2014-03-15 18:36:34 +01:00
Julien Isorce
af8e566bc8 [341/906] Properly clean up pending gst gl buffers in cluttershare example 2014-03-15 18:36:34 +01:00
Julien Isorce
36dd1c7505 [340/906] Fix cluttershare example.
It requires at least clutter 0.8.6 since lower clutter versions are
not compatible with GL_TEXTURE_RECTANGLE_ARB.
Remove use of ClutterEffectTemplace since it does not exist in
clutter 0.9.
2014-03-15 18:36:34 +01:00
Sebastian Dröge
1aae908977 [339/906] Cast to a GstBuffer* before passing to gst_buffer_unref to fix compiler warning 2014-03-15 18:36:34 +01:00
Julien Isorce
af48769e8d [338/906] Use GQueue in the cluttershare example 2014-03-15 18:36:34 +01:00
Julien Isorce
58e392f129 [337/906] Improve cluttershare example
Use clutter_threads_API.
When just using glupload from rgb, we have to be sure that
the upload texture is not in use in our gst gl context.
2014-03-15 18:36:34 +01:00
Julien Isorce
911cf141c4 [334/906] [win32/winCE] fix some pointer cast warnings with mingw
And turn off deprecated Wp64 msvc compiler option.
2014-03-15 18:36:34 +01:00
Julien Isorce
80e114860e [332/906] just gst-indent and C90 on cluttershare example 2014-03-15 18:36:34 +01:00
Julien Isorce
87a1652216 [330/906] Can now share textures with an external gl context
The external opengl context must be specify when creating
our OpenGL context (glx) or just after (wgl).
When calling glXCreateContext or wglShareLists, the
external opengl context must not be current.
Then our gl context can be current in the gl thread while
the external gl context is current in an other thread.
See tests/examples/clutter/cluttershare.c
2014-03-15 18:36:34 +01:00
Filippo Argiolas
9aea500080 [325/906] Restore glimagesink instead of ximagesink
Partially revert previous commit. It's not an issue with glimagesink
Xoverlay interface. It's always the same intel bug with direct
rendering redirection (the one that affects each opengl application
with compositing managers). It works fine with DRI2 and UXA
acceleration. Still leaving effects disabled because I'm testing intel
hardware that doesn't support FBOs.
2014-03-15 18:36:33 +01:00
Filippo Argiolas
049f106b47 [324/906] Temporary disable glimagesink in clutteractortee
GLimagesink XOverlay interface doesn't seem to work with composite
redirection on intel (and I believe ati too). Windows aren't
redirected offscreen at all.  This commit just shows that the example
correcty works with ximagesink. The most evident difference I see is
that glimagesink reparents the xoverlay window into its own while both
x and xvimagesink destroy their window and render directly to the
xoverlay one.
2014-03-15 18:36:33 +01:00
Filippo Argiolas
7e0602cddd [323/906] Remove redundant XMoveWindow call
Revert the "move windows" thing from commit
175f7a707bc922f3facc63e7d9b6d01f9bb6b1b0
Windows are offscreen who cares about their position? If you see the
windows something is going wrong with composite redirection.
2014-03-15 18:36:33 +01:00
David Schleef
d015d5862d [310/906] Global reindent
Indent parameters:
INDENT_PARAMETERS="--braces-on-if-line \
        --case-brace-indentation0 \
        --case-indentation2 \
        --braces-after-struct-decl-line \
        --line-length80 \
        --no-tabs \
        --cuddle-else \
        --dont-line-up-parentheses \
        --honour-newlines \
        --continuation-indentation4 \
        --tab-size8 \
        --indent-level2"
2014-03-15 18:36:33 +01:00
David Schleef
43e574aa8f [298/906] Revert "Fix indention"
This reverts commit 96e4ab18c2cf9876f6c031b9aba6282d0bd45a93.

You should have asked first.  And you would have been told "no",
because it causes people on development branches to do a huge
amount of extra work.
2014-03-15 18:36:32 +01:00
Sebastian Dröge
369b1d4ff2 [295/906] Fix indention 2014-03-15 18:36:32 +01:00
Julien Isorce
4b53383385 [285/906] fix gl framerate in gst caps. Consider position in xoverlay. Fix inversion bettween COLS and ROWS, and move windows. 2014-03-15 18:36:31 +01:00
Filippo Argiolas
68bf32effe [187/906] remove expose event handling, it's map-unmap that is not behaving correctly, any idea? 2014-03-15 18:36:26 +01:00
Filippo Argiolas
ca2536cffa [186/906] add expose event handling to clutteractortee 2014-03-15 18:36:25 +01:00
Filippo Argiolas
4e986d054f [185/906] add clutteractortee example, a nice example about how clutter could be used to create a live preview widget for gleffects. It uses texture from pixmap, still needs some work regarding clean exit and expose event management. 2014-03-15 18:36:25 +01:00
Filippo Argiolas
ee0010f593 [183/906] add an example to use texture from pixmap to do some kind of x_overlay on a clutteractor. A better way would be to directly share gl handles between clutter and gstgl but still I cannot find a way to do it. 2014-03-15 18:36:25 +01:00