Commit graph

351 commits

Author SHA1 Message Date
Matthew Waters
6bd1150ca8 gl: remove the use of glu 2014-11-28 09:14:26 +11:00
Sreerenj Balachandran
b8a2f46a88 examples: relicense opencv gsthanddetect_test to LGPLv2+
The GPL3 license header was copy'n'pasted from a
neighbouring source file by mistake, the original
code was not GPL3 licensed, but fell under the
default GStreamer license, which is LGPLv2+.

https://bugzilla.gnome.org/show_bug.cgi?id=685655
2014-11-17 09:20:19 +00:00
Hyunjun Ko
fec8d4e7b2 opencv-example: Use g_snprintf instead of sprintf
https://bugzilla.gnome.org/show_bug.cgi?id=739846
2014-11-17 00:47:28 +00:00
Sebastian Dröge
13c8517570 gl/cocoa: Remove GNUStep support
Until gcc and GNUStep properly support Objective-C blocks and other
"new" features of Objective-C we can't properly support them without
making the code much more ugly.

https://bugzilla.gnome.org/show_bug.cgi?id=739152
2014-11-13 12:01:19 +01:00
Tim-Philipp Müller
f07de37ad1 examples: remove pointless mpegtsmux example
Serves no purpose, is not even hooked up to the
build system, has hard coded file names and paths,
and can easily be replaced with a gst-launch line.

https://bugzilla.gnome.org/show_bug.cgi?id=739844
2014-11-09 19:25:39 +00:00
Matthew Waters
c1f3cc9f1c gl/examples: update for other-context property removal 2014-10-30 18:58:50 +11:00
Jan Schmidt
37c70c8efa examples: Fix Qt/GL qglwtextureshare example for X11
We need to pass the X11 display to GstGL or else it will
use its own X11 Display pointer, and the GL Context won't get shared
correctly on newer X servers
2014-09-29 00:39:07 +10:00
Jan Schmidt
0fd0683996 examples: port GL/Qt examples to Qt5
Update the GL Qt integration examples for Qt5 changes and for GstGL
signal signature changes.
2014-09-29 00:39:07 +10:00
Matthew Waters
62507bb089 examples/gl: update for signal signature change 2014-09-28 20:37:04 +10:00
Matthew Waters
505243aa8d examples/gl/gtk: use the sync bus callback to set the window handle
And output error messages.
2014-09-22 12:03:12 +10:00
Wang Xin-yu (王昕宇)
8d6f745b78 gl: qglwtextureshare demo fixes and cleanup
1. glcontextid function is replaced by gstreamer gst_gl_context_new_wrapped .
2. call gst_init before gst_gl_display_new , seems gst_gl_display_new depends
   on gst_allocator_register , which only worked after gst_init called
3. flush gstreamer OpenGL context before using shared texture, fix
   flicker problem.

https://bugzilla.gnome.org/show_bug.cgi?id=735566
2014-08-28 10:06:00 +03:00
Lubosz Sarnecki
57a96ce3e1 examples: fix gtk+ 3.14 deprecation error
https://developer.gnome.org/gtk3/3.13/GtkWidget.html#gtk-widget-set-double-buffered

https://bugzilla.gnome.org/show_bug.cgi?id=734482
2014-08-21 17:39:01 +10:00
Sebastian Rasmussen
84b7079020 examples/gl: unref bus and element after usage
gst_pipeline_get_bus() and gst_bin_get_by_interface() both
return references that need to be unreferenced after usage.

https://bugzilla.gnome.org/show_bug.cgi?id=734527
2014-08-10 21:43:16 +01:00
Руслан Ижбулатов
27df659fd8 gl: Reorder CFLAGS to include in-source dirs first in examples
https://bugzilla.gnome.org/show_bug.cgi?id=733426
2014-07-21 13:10:08 +02:00
Tim-Philipp Müller
1533fc7e2d examples: fix compilation of gl fxtest example on win32 with Gtk+ 3.0
https://bugzilla.gnome.org/show_bug.cgi?id=733063
2014-07-17 10:14:03 +01:00
Edward Hervey
b191053c7f examples: Add CAT section and CA descriptor support
https://bugzilla.gnome.org/show_bug.cgi?id=732986
2014-07-11 08:32:07 +02:00
Stefan Ringel
43dd0ec62a mpegts: use getter for egde linkage descriptor type
https://bugzilla.gnome.org/show_bug.cgi?id=730914
2014-07-09 07:41:33 +02:00
Matthew Waters
07c0b22c8a gl/examples: gitignore generated files 2014-07-02 17:38:13 +10:00
Wang Xin-yu (王昕宇)
6e4ea66ede gl : fix qglwtextureshare demo 2014-07-02 14:16:40 +10:00
Edward Hervey
22dfd9aef3 mpegts: Unify API : GstMpegts / gst_mpegts_ / GST_*_MPEGTS_
It was previously a mix and match of both variants, introducing just too much
confusion.

The prefix are from now on:
* GstMpegts for structures and type names (and not GstMpegTs)
* gst_mpegts_ for functions (and not gst_mpeg_ts_)
* GST_MPEGTS_ for enums/flags (and not GST_MPEG_TS_)
* GST_TYPE_MPEGTS_ for types (and not GST_TYPE_MPEG_TS_)

The rationale for chosing that is:
* the namespace is shorter/direct (it's mpegts, not mpeg_ts nor mpeg-ts)
* the namespace is one word under Gst
* it's shorter (yah)
2014-06-25 14:50:05 +02:00
Stefan Ringel
7c884374eb mpegts: change to GType and from gchar[] to gchar*
https://bugzilla.gnome.org/show_bug.cgi?id=730914
2014-06-24 16:06:01 +02:00
Matthew Waters
dcffe41b28 gl/examples: update for TEXTURE_2D change 2014-06-12 23:17:05 +10:00
Matthew Waters
854b61cf7f gl/examples: add GST_PLUGINS_BASE_CFLAGS 2014-06-12 13:37:51 +10:00
Matthew Waters
af5fbe21c4 gl/examples: remove spurious include for doublecube example 2014-06-12 13:15:10 +10:00
Matthew Waters
0c6bf7b752 gl/examples: add the srcdir and builddir includes
And remove references to $(GST_PLUGINS_GL_*)
2014-06-12 13:06:31 +10:00
Matthew Waters
d7f8cc9a78 glfilterapp: remove the reshape/draw properties
The reshape property was never used.
Replace the draw property with a signal.

Based on patch by Mathieu Duponchelle <mathieu.duponchelle@epitech.eu>

https://bugzilla.gnome.org/show_bug.cgi?id=704507
2014-06-12 12:49:42 +10:00
Matthew Waters
e36f5b1326 gl/examples: Port to using signals instead of properties
Based on patch by Mathieu Duponchelle <mathieu.duponchelle@epitech.eu>

https://bugzilla.gnome.org/show_bug.cgi?id=704507
2014-06-12 12:18:23 +10:00
Stefan Ringel
6a622a678e example: ts-parser: add parential rating descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730854
2014-05-29 14:29:15 +02:00
Stefan Ringel
ac88f31ac7 example: ts-parser: add ca iddentifier descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730854
2014-05-29 14:29:15 +02:00
Stefan Ringel
20410a70f5 example: ts-parser: add stream identifier descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730854
2014-05-29 14:29:15 +02:00
Stefan Ringel
c35dc33b7f example: ts-parser: add content descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730854
2014-05-29 14:29:15 +02:00
Stefan Ringel
1c9bbb1e00 example: ts-parser: add component descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730854
2014-05-29 14:29:15 +02:00
Edward Hervey
74681cf00a examples: factor dumping code
We can just re-use the new function instead of having two duplicates
2014-05-29 11:55:51 +02:00
Stefan Ringel
1db9d6c9df example: ts-parser: add linkage descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730901
2014-05-29 11:26:21 +02:00
Thiago Santos
fa1eb09520 mpegts: atsc: add missing field to ETT table
Set the subtable_extension as ett_table_id_extension
for ETT tables as it is used by it

https://bugzilla.gnome.org/show_bug.cgi?id=730435
2014-05-29 10:38:00 +02:00
Thiago Santos
1cab60b713 mpegts: atsc: add atsc's EIT table parsing
ATSC has its own version of the EIT table (DVB also has one).

This patch adds parsing for the ATSC EIT table and also fixed
the section identification to mark it as the ATSC one.

The implementation aws refactored to reuse some common internal
structures from ETT.

Also adds its dumping function to ts-parser example

https://bugzilla.gnome.org/show_bug.cgi?id=730435
2014-05-29 10:38:00 +02:00
Thiago Santos
0c6bb561e0 mpegts: atsc: add STT table parsing
Adds the system time table structure and functions for convenient parsing of
it and for getting the UTC datetime that it represents. Also adds its
information dumping to the ts-parser example

https://bugzilla.gnome.org/show_bug.cgi?id=730435
2014-05-29 10:37:59 +02:00
Thiago Santos
01178115a4 examples: mpegts: add function to dump ETT tables
https://bugzilla.gnome.org/show_bug.cgi?id=730435
2014-05-29 10:37:59 +02:00
Thiago Santos
9eed28d353 mpegts: add atsc MGT section parsing
Add a parsing function for MGT and also detect the EIT tables
for ATSC, the EIT pids are reported inside the MGT and we are still
only relying only on the table id for detecting it. In the future we
would want to also check the pid and compare with whatever the MGT
previously reported to confirm that it is indeed the EIT.

https://bugzilla.gnome.org/show_bug.cgi?id=730435
2014-05-29 10:37:59 +02:00
Thiago Santos
a1866ef8c1 examples: ts-parser: add TVCT and CVCT tables dumping
https://bugzilla.gnome.org/show_bug.cgi?id=730642
2014-05-29 10:37:59 +02:00
Edward Hervey
14adeaa1c8 examples: Avoid shadowing main loop variable
We end up with interesting results otherwise :)
2014-05-28 16:18:13 +02:00
Edward Hervey
5d483a0482 examples: Add support for private-data-specifier and frequency-list 2014-05-28 15:55:40 +02:00
Stefan Ringel
2bbf4ec96c example: ts-parser: add terrestrial delivery system descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=730847
2014-05-28 07:03:59 +02:00
Stefan Ringel
a09f32d0a7 example: ts-parser: printing enum types
https://bugzilla.gnome.org/show_bug.cgi?id=730847
2014-05-28 07:03:58 +02:00
Edward Hervey
79071e23b3 examples: Add DVB Extended event parsing 2014-05-27 17:34:48 +02:00
Stefan Ringel
c0ac6ce432 examples: Add support for DVB multilingual component descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=728429
2014-05-27 15:34:41 +02:00
Stefan Ringel
2277011875 examples: Add support for DVB multilingual service name descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=728429
2014-05-27 15:34:41 +02:00
Stefan Ringel
86b78c040d examples: Add support for DVB multilingual bouquet name descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=728429
2014-05-27 15:34:41 +02:00
Stefan Ringel
455c8271df examples: Add support for DVB multilingual network name descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=728429
2014-05-27 15:34:41 +02:00
Julien Isorce
fbe6dd9c5f gl: rename platform cocoa to cgl
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
2014-05-27 08:46:16 +01:00
Edward Hervey
8d71ec9f38 examples: Add support for DVB Bouquet Name parsing 2014-05-26 11:55:31 +02:00
Edward Hervey
2240630b04 examples: Add support for DVB Service List descriptor 2014-05-26 11:42:46 +02:00
Matthew Waters
2651272f4e gl/examples: fix compilation for clutter examples
ClutterX11TexturePixmap is deprecated in Clutter 1.6 and we ask for
at least 1.8
2014-05-07 20:13:00 +10:00
Luis de Bethencourt
8b3a5907d5 gl/clutter: safer check for cogl version
Use COGL_VERSION_ENCODE to check for the minimum required and maximum allowed
cogl version. In certain situations just using the COGL_VERSION_* macro name can
give you the following error:

error "COGL_VERSION_MAX_ALLOWED must be >= COGL_VERSION_MIN_REQUIRED"
2014-05-03 21:45:27 -04:00
Luis de Bethencourt
3bf1b0c75a gl/examples/generic: remove trailing whitespaces 2014-05-03 21:05:19 -04:00
Sebastian Dröge
e7a329195d examples: Fix CFLAGS in clutter GL examples 2014-05-03 19:46:04 +02:00
Sebastian Dröge
fdcdf8104d examples: Add all gl subdirs to DIST_SUBDIRS to fix the build 2014-05-03 19:46:04 +02:00
Julien Isorce
619e7be748 gl: pass NSView instead of NSWindow in cocoa-videooverlay example
https://bugzilla.gnome.org/show_bug.cgi?id=728451
2014-05-02 06:03:23 +01:00
Julien Isorce
e42d40c063 gl: add copyright to cocoa example 2014-05-02 06:03:22 +01:00
Julien Isorce
6f5ecebb6a gl: rename cocoa example and move it to its parent directory 2014-05-02 06:03:22 +01:00
Julien Isorce
1fb949bb3a gl: remove unuseful README for cocoa example 2014-05-02 06:03:22 +01:00
Thiago Santos
df52eb3198 examples: gl: add missing entry to cflags to find gst/gl/gl.h
Otherwise build fails
2014-04-29 13:23:26 -03:00
Stefan Sauer
f3cb98d512 tests: drop direct include
It is only allowed to include gdk/gdkx.h and that will bring all the x11 things.
2014-04-29 18:20:30 +02:00
Jan Schmidt
692e7b4e11 gl/sdl example: Fix uninstalled build 2014-04-29 22:19:37 +10:00
Matthew Waters
8ddb19e595 gl/examples/sdl: update for the latest gstgl changes 2014-04-29 18:32:22 +10:00
Matthew Waters
294da02a2f gl/examples: move to -bad
- fix all the compiler errors
- give them their own gl directory
2014-04-29 16:40:08 +10:00
Руслан Ижбулатов
2a8f52a976 gl: fix the use of always-defined macros
After 2a0f0399ae 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
2014-03-18 06:17:03 +00:00
Matthew Waters
14d4cc29b6 [864/906] examples: update to gtk3 2014-03-15 18:37:05 +01:00
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
Sebastian Dröge
20cb4fb038 [771/906] gl: Some less long/ulong/gulong usage 2014-03-15 18:36:59 +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
Mathieu Duponchelle
782a9c5355 [769/906] tests/examples: fix and port some of the examples.
Realize widgets, remove glupload element.
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
f08b7c892a [457/906] gtk examples: adapt code since the native-window changes from gtk
Fixes bug #599885
2014-03-15 18:36:41 +01:00
Руслан Ижбулатов
24344a9ab9 [413/906] Fix Windows compiler warning in test/examples/gtk/fxtest/pixbufdrop.c 2014-03-15 18:36:39 +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 Isorce
1dad35ef93 [386/906] pixbufdrop: fix example on win32 2014-03-15 18:36:37 +01:00
Julien Isorce
586604e2e6 [374/906] sdlshare example: fix build on win32 2014-03-15 18:36:36 +01:00
Julien Isorce
e9a2613c66 [373/906] sdlshare example: review includes order and fix closure 2014-03-15 18:36:36 +01:00
Miquel Àngel Farré
785e001a1a [372/906] make sdlshare example work on linux. Fix bug #593486 2014-03-15 18:36:36 +01:00
Julien Isorce
008b400f4c [371/906] tests: add sdlshare example
It shows how to use gl textures that come
from gst gl elements inside a SDL OpenGL scene
2014-03-15 18:36:36 +01:00
Filippo Argiolas
263eb59fcf [361/906] gstgtk: add missing license and copyright information 2014-03-15 18:36:35 +01:00
Filippo Argiolas
ad5edd7e32 [360/906] examples: add missing copyright/license to my examples 2014-03-15 18:36:35 +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