Reynaldo H. Verdejo Pinochet [Thu, 27 Mar 2014 21:51:59 +0000 (18:51 -0300)]
eglglessink: fix wrong doc block for create_window
Wrong since
1ad253b9 when prop name was changed from
can_create_window to create_window.
Matthew Waters [Thu, 27 Mar 2014 11:02:22 +0000 (22:02 +1100)]
gl: don't fail configure if we do not understand the platform
Matthew Waters [Tue, 25 Mar 2014 04:40:14 +0000 (15:40 +1100)]
gl: fix out-of-source builds pt2
21b897de2f762bee504cbc007fd108148ee5ae24 did this for x11 and wayland.
Do it for the other backends as well.
Julien Isorce [Wed, 26 Mar 2014 23:13:53 +0000 (23:13 +0000)]
gl: only set CAPS_FEATURE_MEMORY_EGL_IMAGE on egl platform
Matthieu Bouron [Wed, 26 Mar 2014 17:14:40 +0000 (17:14 +0000)]
configure.ac: fix OSX host check
Makes the check works with (i386|x86_64)-apple-darwin* hosts.
https://bugzilla.gnome.org/show_bug.cgi?id=727104
Julien Isorce [Wed, 26 Mar 2014 19:17:03 +0000 (19:17 +0000)]
gl: let the user includes itself our egl headers if needed
Forgot to address this change.
https://bugzilla.gnome.org/show_bug.cgi?id=703343
Julien Isorce [Sat, 22 Mar 2014 22:01:49 +0000 (22:01 +0000)]
gl: add EGLImage support
* picked from old libgstegl:
- GstEGLImageMemory
- GstEGLImageAllocator
- last_buffer management from removed GstEGLImageBufferPool
* add-ons:
- GstEGLImageMemory now old a reference on GstGLContext
so that it can delete the EGLImage and its gltexture source
while having the associated gl context being current.
- add EGLImage support for GstVideoGLTextureUploadMeta which
mainly call EGLImageTargetTexture2D
- GstGLBufferPool now supports GstEGLImageAllocator
- glimagesink / glfilters / etc.. now propose GstEGLImageAllocator
to upstream
https://bugzilla.gnome.org/show_bug.cgi?id=703343
Julien Isorce [Mon, 24 Mar 2014 12:12:42 +0000 (12:12 +0000)]
gl: deploy egl headers in gst/gl/egl instead of gst/gl
https://bugzilla.gnome.org/show_bug.cgi?id=703343
Julien Isorce [Mon, 24 Mar 2014 12:10:00 +0000 (12:10 +0000)]
gl: remove commented and unsued code in x11 Makefile.am
https://bugzilla.gnome.org/show_bug.cgi?id=703343
Julien Isorce [Sun, 23 Mar 2014 21:55:34 +0000 (21:55 +0000)]
pkgconfig: add gstreamer-gl
https://bugzilla.gnome.org/show_bug.cgi?id=703343
Julien Isorce [Mon, 24 Mar 2014 12:04:08 +0000 (12:04 +0000)]
gl: fix crash if _build_extension_string is not called
On GLES2 then (gl->GetIntegerv && gl->GetStringi) is false
regression introduced by
cc6df204e2f58fffda5cbe90f3450aeba95889c4
https://bugzilla.gnome.org/show_bug.cgi?id=703343
Edward Hervey [Wed, 26 Mar 2014 09:14:36 +0000 (10:14 +0100)]
gl: Only enabled cocoa backend on osx (and not ios)
ios requires using EAGL
Jan Schmidt [Tue, 25 Mar 2014 22:05:15 +0000 (09:05 +1100)]
rtmpsink: Remove URL check for valid playpath.
The playpath is an optional component of the URL - don't require it.
Wim Taymans [Tue, 25 Mar 2014 16:39:18 +0000 (17:39 +0100)]
srtpenc: unlock object lock before posting error
Posting an error with the object lock will deadlock. Rework the code
a bit to make things more simple.
Gwenole Beauchesne [Tue, 25 Mar 2014 14:04:14 +0000 (15:04 +0100)]
codecparsers: cosmetics: drop TAB characters.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Jan Schmidt [Tue, 25 Mar 2014 10:40:11 +0000 (21:40 +1100)]
dvbsuboverlay: Clarify confusing debug message
The message is describing the number of bytes remaining for
parsing, not 'missing'.
Jan Schmidt [Tue, 25 Mar 2014 10:40:11 +0000 (21:40 +1100)]
tsdemux: Fix mpegts_packetizer_set_current_pcr_offset()
When adjusting the PCR offset of groups, adjust the correct group
entry from the list - not the current group repeatedly.
Jan Schmidt [Tue, 25 Mar 2014 10:40:11 +0000 (21:40 +1100)]
dvbsuboverlay: Remove warning for 2-bit and 8-bit subpictures
Both 2-bit and 8-bit mode now seem fine, so remove the warning
messages about them
Jan Schmidt [Tue, 25 Mar 2014 10:40:10 +0000 (21:40 +1100)]
dvbsuboverlay: Fix 8-bit subpicture rendering.
Fix 2 small flaws handling 8-bit subpictures that makes
my one test file work.
Li Xiaowei [Fri, 8 Mar 2013 01:57:22 +0000 (09:57 +0800)]
codecparsers: h264: fix slice_header() parsing for MVC.
The idr_pic_id syntax element depends on IdrPicFlag, which is a calculated
value that does not only depend on NAL unit type (IDR), but possibly also
on MVC non_idr_flag syntax element.
The computed idr_pic_flag is already stored in GstH264NalUnit structure.
https://bugzilla.gnome.org/show_bug.cgi?id=721772
Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Mon, 1 Oct 2012 07:48:06 +0000 (09:48 +0200)]
codecparsers: h264: add gst_h264_parse_nalu_header() helper.
Add helper to parse the NALU header. Move bounds checking to there.
https://bugzilla.gnome.org/show_bug.cgi?id=685215
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Mon, 1 Oct 2012 07:37:21 +0000 (09:37 +0200)]
codecparsers: h264: add gst_h264_parse_sps_data() helper.
Split seq_parameter_set_data() parsing off gst_h264_parse_sps() so
that it could be re-used later on.
https://bugzilla.gnome.org/show_bug.cgi?id=685215
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Wed, 26 Sep 2012 16:46:36 +0000 (18:46 +0200)]
codecparsers: h264: complete set of NAL unit types.
Add missing NAL unit types. They are mostly related to alpha blending,
scalable video coding extensions (SVC, Annex.G), and multiview video
coding extensions (MVC, Annex.H).
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Mon, 24 Mar 2014 18:27:44 +0000 (19:27 +0100)]
codecparsers: h264: clean-up gst_h264_parser_parse_sei_message().
Fix build when GST_DISABLE_GST_DEBUG is not defined. Use a switch
statement to dispatch to the various SEI payload handlers.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Fri, 21 Mar 2014 16:07:19 +0000 (17:07 +0100)]
codecparsers: h264: fix skipping of unsupported SEI messages.
The payloadSize does not account for emulation prevention bytes. So,
just use nal_reader_skip() for skipping payload_size bits. It should
be possible to further optimize this code since the NAL reader shall
be aligned to byte boundary already.
Kill the now unused nal_reader_skip_to_next_byte() function.
https://bugzilla.gnome.org/show_bug.cgi?id=726829
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Fri, 21 Mar 2014 16:03:36 +0000 (17:03 +0100)]
codecparsers: h264: fix SEI buffering_period() parsing.
Fix parsing of buffering_period() SEI messages. The number of bits
used to express {nal,vcl}_initial_cpb_removal_delay{,_offset} syntax
elements is not 5 but 1 + initial_cpb_removal_delay_length_minus1.
https://bugzilla.gnome.org/show_bug.cgi?id=726828
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Wed, 10 Oct 2012 14:19:49 +0000 (16:19 +0200)]
codecparsers: h264: fix rbsp_more_data() implementation.
Account for trailing zero bits when checking for rbsp_more_data().
In particular, fix an hypothetical stream whereby rbsp_more_data()
is called in the following conditions for PPS header: NalReader
reached position 20, 12 bits are remaining and trailing data at
current byte position is c8 00.
rbsp_more_data() used to return TRUE whereas it should obviously
return FALSE because x8 00 represents a valid rbsp_trailing_bits()
structure.
https://bugzilla.gnome.org/show_bug.cgi?id=685890
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Mon, 24 Mar 2014 16:33:00 +0000 (17:33 +0100)]
gl: fix out-of-source builds.
Always use the locally generated <gst/gl/gstglconfig.h> file.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Matthew Waters [Mon, 24 Mar 2014 13:50:30 +0000 (00:50 +1100)]
gl/download: add support for the bt709 color matrix
Matthew Waters [Mon, 24 Mar 2014 13:34:13 +0000 (00:34 +1100)]
gl/upload: add support for the bt709 color matrix
Matthew Waters [Mon, 24 Mar 2014 12:09:20 +0000 (23:09 +1100)]
gl: remove explicit reference to X_CFLAGS
They are in GL_CFLAGS if required
Matthew Waters [Sun, 23 Mar 2014 12:43:28 +0000 (23:43 +1100)]
gl/upload: remove the legacy GL 1.x upload path
uploading requires shaders and fbos available in GL2.
Julien Isorce [Sun, 23 Mar 2014 11:02:08 +0000 (11:02 +0000)]
gl: fallback to glGetString if GL_NUM_EXTENSIONS fails
Need it on MacOSX 10.7.5
Matthew Waters [Sat, 22 Mar 2014 14:02:03 +0000 (01:02 +1100)]
gl: and update the Makefile
Matthew Waters [Sat, 22 Mar 2014 13:38:16 +0000 (00:38 +1100)]
gl: reorganize the extension headers by function rather than api
Matthew Waters [Fri, 21 Mar 2014 09:29:49 +0000 (20:29 +1100)]
gl/win32: use the correct include and gst-indent
Wim Taymans [Fri, 21 Mar 2014 14:56:16 +0000 (15:56 +0100)]
check: fix make check
The mpeg parser now flags the stream as mpeg2 if there is a picture
extension header, so remove it for mpeg1 data.
Wang Xin-yu (王昕宇) [Tue, 18 Mar 2014 01:16:25 +0000 (09:16 +0800)]
gl: use wglCreateContextAttribsARB to create share context
https://bugzilla.gnome.org/show_bug.cgi?id=726494
Matthew Waters [Mon, 17 Mar 2014 19:43:35 +0000 (20:43 +0100)]
gl/mixer: fix download check for failure
Matthew Waters [Mon, 17 Mar 2014 19:40:51 +0000 (20:40 +0100)]
gl: silence a critical if upstream does not provide us with meta params
Julien Isorce [Wed, 19 Mar 2014 13:48:10 +0000 (13:48 +0000)]
gl: silence warnings building for RPI related to 'vcos_*'
Similar than
1190a79b199584cfc4dd62c474531c32cfbba425
Julien Isorce [Wed, 19 Mar 2014 13:45:35 +0000 (13:45 +0000)]
gl: keep only one occurence of '#include <EGL/egl.h>'
To simply maintainance if we need to put specific includes around it.
Edward Hervey [Sun, 16 Mar 2014 00:25:10 +0000 (01:25 +0100)]
dvbsuboverlay: Don't forward text gap events downstream
That gap is only for the subtitle stream and not for the video stream.
Руслан Ижбулатов [Tue, 18 Mar 2014 00:11:09 +0000 (00:11 +0000)]
gl: don't default to GST_GL_HAVE_WINDOW_DISPMANX=1
Mistake introduced by
2a0f0399ae226089c2ba07b1b904741b856f37af
https://bugzilla.gnome.org/show_bug.cgi?id=726591
Руслан Ижбулатов [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
Руслан Ижбулатов [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
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
Matthew Waters [Mon, 17 Mar 2014 14:49:37 +0000 (15:49 +0100)]
gl: allow not building the gl library plugins
Matthew Waters [Mon, 17 Mar 2014 14:16:13 +0000 (15:16 +0100)]
gl: add GModule libs for win32
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
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
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
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.
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
Edward Hervey [Mon, 17 Mar 2014 13:06:22 +0000 (14:06 +0100)]
gl/cocoa: Fix debug statements and platform
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
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
Thijs Vermeir [Mon, 17 Mar 2014 11:00:09 +0000 (12:00 +0100)]
make: whitespace cleanups
Matthew Waters [Mon, 17 Mar 2014 09:56:39 +0000 (10:56 +0100)]
gl: Add EGLDisplay display subclass
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.
Matthew Waters [Mon, 17 Mar 2014 07:10:50 +0000 (08:10 +0100)]
gl: fix undeclared symbol when building without GST_DEBUG
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
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
Matthew Waters [Sun, 16 Mar 2014 16:21:38 +0000 (17:21 +0100)]
gl: silence a compiler warning about missing prototypes
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
Matthew Waters [Sun, 16 Mar 2014 14:34:11 +0000 (15:34 +0100)]
gl: define GL_NUM_EXTENSIONS if not defined
Matthew Waters [Sun, 16 Mar 2014 14:08:23 +0000 (15:08 +0100)]
Move gst-plugins-gl to bad
Matthew Waters [Sun, 16 Mar 2014 14:06:37 +0000 (15:06 +0100)]
gl: silence all the compiler warnings
Matthew Waters [Sun, 16 Mar 2014 10:23:16 +0000 (11:23 +0100)]
move gl elements to ext subdirectory
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
Matthew Waters [Sat, 15 Mar 2014 13:06:40 +0000 (14:06 +0100)]
[905/906] Add GL context sharing support for non-gstgl elements
Matthew Waters [Sat, 15 Mar 2014 12:55:39 +0000 (13:55 +0100)]
[904/906] mixer: ask for display handles on pad activation
Matthew Waters [Sat, 15 Mar 2014 12:51:44 +0000 (13:51 +0100)]
[903/906] api: add GstGLPlatform to/from string
Matthew Waters [Sat, 15 Mar 2014 10:25:43 +0000 (11:25 +0100)]
[902/906] context: implement glGetStringi handling for GL core contexts/GLES3
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.
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.
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
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.
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
Matthew Waters [Sun, 2 Mar 2014 00:48:54 +0000 (11:48 +1100)]
[896/906] utils: use the vtable for deleting the texture
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
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
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
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)
Matthew Waters [Mon, 10 Feb 2014 21:57:29 +0000 (08:57 +1100)]
[891/906] context: add support for wrapping external contexts
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.
Matthew Waters [Tue, 14 Jan 2014 23:21:56 +0000 (10:21 +1100)]
[889/906] display: add display type enum
Adrien SCH [Sun, 23 Feb 2014 00:27:23 +0000 (11:27 +1100)]
[888/906] correct error handling in gstgldownload.c
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
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
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
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.
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
Matthew Waters [Mon, 10 Feb 2014 20:24:40 +0000 (07:24 +1100)]
[882/906] port glcolorscale to GLES2
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)
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.
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
Matthew Waters [Tue, 4 Feb 2014 14:53:04 +0000 (01:53 +1100)]
[878/906] tests: update for glmem api change
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
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