Doug Nazar
b14c2e6fb0
opengl: Silence macOS OpenGL deprecations
...
As of macOS 10.14 the entire OpenGL system is deprecated. No need to
log the general warnings about it. Specific warnings are still enabled.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1123 >
2021-04-24 22:26:36 -04:00
Matthew Waters
4caab55109
gl/examples: fix recordgraphic example
...
Not ported to proper modern OpenGL though but that is the case for a lot
of the GL examples.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/859
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1016 >
2021-01-22 14:04:39 +11:00
Jan Alexander Steffens (heftig)
a6ed17c273
examples/gl/gtk: Add missing dependency on gstgl
...
Occasionally, a clean build would fail like this:
In file included from ../subprojects/gst-plugins-base/tests/examples/gl/gtk/gstgtk.c:24:
../subprojects/gst-plugins-base/gst-libs/gst/gl/gl.h:25:10: fatal error: gst/gl/gl-enumtypes.h: No such file or directory
25 | #include <gst/gl/gl-enumtypes.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
Add the missing dependency so that the headers are generated beforehand.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/855 >
2020-10-10 03:46:39 +00:00
Nicolas Dufresne
6643e941be
meson: Add a qt5 feature
...
This allow opting out items of the builds the depends on QT5 library.
Auto-detection of QT5 in cross-build requires host tools to match with the
sysroot, and detection of mis-match is not fully reliable.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/817 >
2020-09-15 14:15:36 -04:00
Josh Matthews
855315cd39
Add required dependencies of cocoa GL example for linking.
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/782 >
2020-08-10 16:18:31 +00:00
Guillaume Desmottes
dd5f7f1bf9
gl: move each gl platform specific API to its own gir
...
With contributions from:
Thibault Saunier <tsaunier@igalia.com>
Matthew Waters <matthew@centricular.com>
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/651
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/661 >
2020-08-06 04:09:09 +00:00
Matthew Waters
e6823576ce
examples/gl/qt: silence compiler warnings
...
-Waggregate-return: used by some Qt clases extensively and not super
useful for this example. Supress it.
warning: "GL_GLEXT_VERSION" redefined: Perform the same workaround as
qmlglsink by defining the old gl/GL.h header guard if the new GL/gl.h
guard exists.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/752 >
2020-07-14 17:07:54 +10:00
Seungha Yang
ed573ff1f9
examples/gl/qt: Don't include GL/glx.h unconditionally
...
The header file might not be available on non-*nix platform.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/740 >
2020-07-07 23:12:47 +00:00
Matthew Waters
02602dd63c
gl/examples/qt: hook up to meson build
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/702 >
2020-06-12 07:19:01 +00:00
Olivier Crête
487a2202d3
tests: Remove deprecated GTimeVal
...
GTimeVal won't work past 2038
2019-12-18 18:20:25 +00:00
Tim-Philipp Müller
289d8e53e2
Remove autotools build system
2019-10-13 14:15:43 +01:00
Edward Hervey
2409f4f360
base: Avoid usage of deprecated API
...
GTimeval and related functions are now deprecated in glib.
Replacement APIs have been present since 2.26
2019-10-11 06:17:39 +00:00
Matthew Waters
9939149933
examples/gl/sdlshare: port to OpenGL 3.0 core profile
2019-10-03 00:18:36 +10:00
Sebastian Dröge
e8edb0eb71
examples/sdlshare: Map video frames as early as possible and wait via GL sync meta before using texture ids
2019-09-30 13:29:58 +03:00
Sebastian Dröge
e750ea40b6
examples/sdlshare: Initialize GL as part of the event loop
...
And unref additional buffers we never use for rendering directly instead
of going via the output queue.
2019-09-30 13:29:58 +03:00
Sebastian Dröge
0bcba6a3ec
examples/sdlshare: Activate and initialize our wrapped GL context
...
This allows us to e.g. use the GL functions vtable on it later.
2019-09-30 13:29:58 +03:00
Sebastian Dröge
9000bc86df
examples/sdlshare: Call gst_init() a bit earlier in main()
...
Let's not accidentally call other GStreamer API before that.
2019-09-30 13:29:58 +03:00
Sebastian Dröge
abc243fee4
examples/sdlshare: Create an OpenGL context for OpenGL 2.0
2019-09-30 13:29:58 +03:00
Sebastian Dröge
eb3699a74b
examples/sdlshare: Switch from a GLib main loop to a normal SDL event loop
2019-09-30 13:29:58 +03:00
Sebastian Dröge
6a5ab50103
examples/sdlshare: Port to SDL2
2019-09-30 13:29:58 +03:00
Sebastian Dröge
b0bd448d37
examples/sdlshare: Move from a fakesink to an appsink
2019-09-30 13:29:35 +03:00
Sebastian Dröge
6f14785c3e
examples/sdlshare: Store buffer queues and loop in a global variable
...
There's no point storing them in GObject data, we already have other
global variables anyway.
2019-09-30 13:29:35 +03:00
Sebastian Dröge
8b891c218f
examples/sdlshare: Bus sync handlers return no value
2019-09-30 13:29:35 +03:00
Sebastian Dröge
9daa7fa663
examples/sdlshare: Fix various memory leaks
2019-09-30 13:29:35 +03:00
Matthew Waters
0863452a79
examples/gl/sdl: only build on glx/wgl systems
...
The code will not work anywhere else.
FIxes https://gitlab.freedesktop.org/gstreamer/gst-build/issues/22
2019-04-04 14:06:48 +00:00
Philippe Normand
6c1dc1b129
examples/gl/gtk: Fix build on macOS
...
The gdkquartz.h include pulls into Apple Obj-C frameworks so the compiler needs
to handle the gstgtkhelper library as such.
Fixes #518
2018-12-27 14:55:28 +01:00
Philippe Normand
e1e958fcd7
examples/gl: Cocoa example Meson build definitions
2018-12-26 10:56:08 +00:00
Justin Kim
88524a6686
tests: examples: gl: gtk: Disabled on MacOS X
...
It fails to build on MacOS X. This example should be disabled
until fixed.
Issue: #518
2018-12-14 12:57:38 +09:00
Justin Kim
4f01958232
examples: gl: generic: recordgraphic: Use gst/gl/gstglfuncs.h
...
https://gitlab.freedesktop.org/gstreamer/gst-build/issues/11
2018-12-14 12:04:17 +09:00
Xavier Claessens
a907ed226c
Disable gl examples when we don't have OpenGL
2018-11-21 22:17:35 -05:00
Tim-Philipp Müller
85c484a510
examples: gl: remove bitrotten clutter examples
...
https://bugzilla.gnome.org/show_bug.cgi?id=797173
2018-10-07 19:09:24 +01:00
Sebastian Dröge
c5b78fdc93
gl: Rename GST_TYPE_GL_STEREO_DOWNMIX GType macro everywhere
...
The old one still exists but behind GST_DISABLE_DEPRECATED
2018-10-03 14:49:32 +03:00
Sebastian Dröge
2b4dfb9941
gl: Generate enum GTypes via glib-mkenums
...
https://bugzilla.gnome.org/show_bug.cgi?id=797240
https://bugzilla.gnome.org/show_bug.cgi?id=797144
2018-10-03 13:13:24 +03:00
Tim-Philipp Müller
336983d52c
examples: gl: generic: recordgraphic: fix build with MSVC
2018-09-19 23:43:10 +01:00
Tim-Philipp Müller
900be507f9
meson: add clutter gl examples to Meson build
2018-09-19 11:16:17 +01:00
Tim-Philipp Müller
6c2893d00a
examples: gl: remove old and broken vs solution files
2018-09-19 10:54:25 +01:00
Tim-Philipp Müller
d53b38c812
meson: add generic gl examples to Meson build
2018-09-19 10:49:56 +01:00
Nirbheek Chauhan
eadedc68f8
meson: Add feature options for all plugins
...
GL dependency detection is still automagic.
https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 18:42:11 +05:30
Nicolas Dufresne
bea4d13a99
meson: gl/gtk tests: Add video_dep to the helper
...
The gtk helper library includes videooverlay.h hence must have a
dependency on video_dep, this allow removing the dep from the dependant
executables.
2018-07-21 09:13:27 -04:00
Tim-Philipp Müller
5ed774350a
meson: examples: fix wrong keyword for gtk examples
2018-07-21 11:12:09 +01:00
Nicolas Dufresne
786c6f4d36
meson: Build gl/gtk examples
2018-07-20 22:45:43 -04:00
Tim-Philipp Müller
4d193c2df4
examples: gl: subdirs can be built independently in parallel
2018-05-13 23:33:14 +01:00
Pierre Labastie
65c987b495
examples: gl: sdl: link to the right in-tree libgstvideo
...
https://bugzilla.gnome.org/show_bug.cgi?id=796082
2018-05-13 23:31:22 +01:00
Edward Hervey
02d46b867a
examples: Disable a specific warning
...
gcc 8 checks more cases in the "parentheses" checks, and unfortunately
upstream gtk headers fails with that warning.
Make that warning non-fatal
2018-05-11 09:44:58 +02:00
Tim-Philipp Müller
8227135f3b
gl: hook up to build system
...
Tests and documentation will follow separately.
The mixer elements in the opengl plugin need to stay
in -bad for now since they use GstVideoAggregator.
https://bugzilla.gnome.org/show_bug.cgi?id=754094
2017-12-19 12:01:48 +00:00
Tim-Philipp Müller
0eefcb23b4
gl: examples: fix c++ code for -Wreturn-aggregate
...
.. and use #ifdef instead of #if
2017-12-19 12:01:44 +00:00
Tim-Philipp Müller
59fe9c9122
gl: remove GST_USE_UNSTABLE_API bits
2017-12-19 12:01:37 +00:00
Nicolas Dufresne
ecab99a7a9
sdlshare: Destroy GL backend buffer before the GL Context
...
This was otherwise leading to a deadlock in the GL library.
2017-12-09 19:32:31 +00:00
Nicolas Dufresne
9e208ba0b6
sdlshare2: Fix race conditions
...
The client-draw callback is running on the GL Thread, which will
be required to map the buffer. Map early, and pass the mapped
frame instead. On top of that, make sure to signal any pending
draw before trying to push EOS, as some pad locks might be taken.
This is the cost of using the same thread to control GStreamer and
to render GL.
2017-12-09 19:32:31 +00:00
Nicolas Dufresne
dea918a835
meson: Build gl/sdl examples
2017-12-09 19:32:31 +00:00