Seungha Yang
946e00f581
videometa: Fix documentation
...
Fix gst_video_region_of_interest_meta_add_params to
gst_video_region_of_interest_meta_add_param and add newline to be
more readable.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/722 >
2020-06-24 02:02:50 +09:00
Sebastian Dröge
63933da9e8
audiodecoder: Add max-errors property
...
The number of consecutive decode errors that should be tolerated before
returning flow error should be up to the application, not the element.
Hence max-error should be exposed as a property.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/720 >
2020-06-23 07:17:00 +00:00
Haakon Sporsheim
226a371e3f
videodecoder: Add max-errors property
...
The number of consecutive decode errors that should be tolerated before
returning flow error should be up to the application, not the element.
Hence max-error should be exposed as a property.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/720 >
2020-06-23 07:17:00 +00:00
Seungha Yang
220f2dd3c7
glwindow/win32: Chain up mouse event to parent window
...
Fix a regression of the commit 940c9998e5
Unlike key event, mouse event will not be chained up to parent window
by DefWindowProc
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/718 >
2020-06-22 18:34:49 +00:00
Sebastian Dröge
f2af205a78
Fix up and add various "Since" markers and other related docs fixes
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/713 >
2020-06-19 12:17:55 +03:00
Guillaume Desmottes
870d630481
sdp: fix gst_sdp_message_new_from_text() doc
...
Arguments were in the wrong order in the doc.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/711 >
2020-06-18 11:42:10 +00:00
Aaron Boxer
b813c40788
video: allow frame copy where destination dimensions are smaller than source
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/695 >
2020-06-15 09:46:17 -04:00
Jan Schmidt
205bb066ed
video-converter: Add checks for configuration sanity.
...
If the cropping or scaling input or output rects put us completely
outside the input/output frame respectively, we can't draw anything
except black safely. Check for those conditions and don't set up a
configuration that attempts to access out of bounds memory outside
the input/output framebuffers.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/696 >
2020-06-12 06:49:56 +00:00
Jan Schmidt
bf5d51c5da
video-converter: Guard against invalid frame input
...
If the frames passed in to gst_video_converter_frame()
have a different layout than was configured for, the
conversion code might go out of bounds and crash.
Do a sanity check on each frame passed in, and in the
absence of a return value in the API, just
refuse the conversion in invalid cases and leave the
destination frame untouched so it's obvious to
users that it was broken.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/696 >
2020-06-12 06:49:56 +00:00
David Bender
b4bdb75a80
gstglwindow_x11: fix resize
...
This patch was taken from #629#note_178766, the comment made
at the time was:
The root issue is a mismatch between the initialization of render_rect
in GstGLWindowX11Private and what's expected in the draw_cb function.
Because render_rect is not explicitly initialized to a width and height
of -1 (unlike gstglwindow_wayland_egl.c which does initialize to -1),
the less-than check for explicitly-set render_rect at gstglwindow_x11.c:453-454
always fails, even when the parent_win has been set and the render rectangle
has never been set.
Maybe this came from copying the similar check in the wayland code? Regardless,
I think the correct inequality should be '<= 0' (on both lines).
Alternatively initialization could be changed, but other sinks, e.g.
xvimagesink don't appear to use -1 to mean "unset" render_rect this way.
The issue can be reproduced by running the example in
tests/examples/gl/qt/videooverlay/ on X11, and resizing the output
window
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/701 >
2020-06-12 01:36:22 +00:00
Mathieu Duponchelle
a90968997a
videooverlay: chevrons don't need to be escaped in code examples
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/700 >
2020-06-11 22:19:09 +00:00
Guillaume Desmottes
008d72d5da
audio: add missing space in GST_AUDIO_FORMATS_ALL
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/694 >
2020-06-10 10:43:42 +02:00
Guillaume Desmottes
62254f93a3
video: sort formats by quality
...
Will ensure that we pick the "best" format when negotiating caps.
Fix #649
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/689 >
2020-06-09 08:09:58 +00:00
Guillaume Desmottes
e2f6b85fd9
audio: sort formats by quality
...
Will ensure that we pick the "best" format when negotiating caps.
Fix #649
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/689 >
2020-06-09 08:09:58 +00:00
Sebastian Dröge
76364ebfe7
videoencoder: Also don't request a new key-unit if we already got one after the requested running time
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/684 >
2020-06-05 10:04:43 +00:00
Sebastian Dröge
19fecabdf7
videoencoder: Don't request another keyunit if another one is pending or we requested one for a future time already
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/684 >
2020-06-05 10:04:43 +00:00
Sebastian Dröge
c5b081edc2
videoencoder: Add min-force-key-unit-interval property
...
This allows configuring the minimum interval between subsequent
force-key-unit requests and prevents a big bitrate increase if a lot of
key-units are requested.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/684 >
2020-06-05 10:04:43 +00:00
Sebastian Dröge
6260c4be7e
videoencoder: When pushing headers as part of a keyframe mark the first header as keyframe
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/684 >
2020-06-05 10:04:43 +00:00
Sebastian Dröge
401d56a6a7
videoencoder: Handle all matching force-keyunit events at once
...
Previously we only handled one event at a time, which could lead to the
following two suboptimal situations:
- frame 0 at 20ms, frame 1 at 40ms and two force-keyunit events at 10ms
and 15ms. We would create a new keyframe for both of the frames.
- 100 force-keyunit events with running-time NONE would cause all
following 100 frames to be made into a keyframe.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/684 >
2020-06-05 10:04:43 +00:00
Sebastian Dröge
9b1f1f431a
videoencoder: Sort force-keyunit-events by their running time
...
That way we can more easily work with the whole list without iterating
over all of the elements.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/684 >
2020-06-05 10:04:43 +00:00
Stéphane Cerveau
42dcbcd61f
video-hdr: fix memset warning
...
Fix warning on fedora arm64 target
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/685 >
2020-06-05 08:13:32 +00:00
Nicolas Dufresne
8e3c4a5d5a
video: Fix NV12_64Z32 number of component
...
This format has 3 components, just like NV12.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/686 >
2020-06-04 20:12:59 +00:00
Thibault Saunier
c2610d7f41
doc: Add a minimal GstVideoMultiviewFlagsSet documentation
2020-06-03 22:44:24 -04:00
Sebastian Dröge
fb7ab33e03
videoencoder: Simplify header buffer metadata updating
...
Instead of doing a shallow copy of the list just to call make_writable()
on each buffer, do that inline in the same loop and modify the list
contents.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/683 >
2020-06-03 16:21:41 +03:00
Sebastian Dröge
caaa5ac864
video: Use GQueue instead of plain GList in a few places
...
Also not optimal but at least simplifies the code a bit and doesn't
require g_list_length() and g_list_append() in a few places.
For 2.0 there are some more candidates to change but unfortunately
they're currently part of the API.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/683 >
2020-06-03 16:21:41 +03:00
Sebastian Dröge
4fcc1121e6
video-format: RGB16/15 are not 16 bit per component but only 5.333 and 5
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/682 >
2020-06-02 14:38:55 +00:00
Guillaume Desmottes
02fd2f12f9
audio: add gst_audio_make_raw_caps()
...
More binding friendly version of GST_AUDIO_CAPS_MAKE().
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/676 >
2020-06-02 11:57:42 +00:00
Guillaume Desmottes
58a6303a5f
audio-format: remove empty space prefix from GST_AUDIO_FORMATS_ALL
...
This space prevent deserialization using gst_value_deserialize().
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/676 >
2020-06-02 11:57:42 +00:00
Guillaume Desmottes
75411ce1e7
audio-format: add gst_audio_formats_raw()
...
The existing GST_AUDIO_FORMATS_ALL macro is not binding friendly.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/676 >
2020-06-02 11:57:42 +00:00
Guillaume Desmottes
84e0689d58
video: add gst_video_make_raw_caps()
...
More binding friendly version of GST_VIDEO_CAPS_MAKE().
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/676 >
2020-06-02 11:57:42 +00:00
Guillaume Desmottes
f42e67c639
video-format: add gst_video_formats_raw()
...
The existing GST_VIDEO_FORMATS_ALL macro is not binding friendly.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/676 >
2020-06-02 11:57:42 +00:00
Matthew Waters
51b057ea26
glcontext/eagl: handle sending one message during shutdown
...
gst_gl_window_quit() will attempt to send a message but will be called
from GstGLContext's finalize handler and so the weak ref that backs
gst_gl_window_get_context will return NULL as it has already been
cleared. We need that context in send_message_async to decide whether
to run the provided callback immediately or queue in GCD
This is the equivalent commit for iOS as:
7f59cefafb
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/618
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/681 >
2020-06-02 14:32:03 +10:00
Matthew Waters
c506adc950
gl/eagl: don't access UIkit objects on the main thread
...
This means we cannot access [view layer] or view.bounds from the OpenGL
thread. This also means that we need to call the main thread when
setting the window handle. However, we cannot perform that
synchronously as that may deadlock with the application performing the
set_window_handle() call.
We need to defer the actual update and run it asynchronously and wait
for the window handle update internally at each point it is needed.
Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/372
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/681 >
2020-06-02 14:32:03 +10:00
Matthew Waters
a57380d718
gl/ios: fix typo GS_GL -> GST_GL
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/681 >
2020-06-02 14:32:03 +10:00
Víctor Manuel Jáquez Leal
165f801bb0
libs: gl: silence gir compiler
...
There were a couple complains of the gir compiler on these gstgl
files.
* Added namespace to public macros, even if they are helpers.
* Removed a misused private tag
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/678 >
2020-05-29 13:35:56 +02:00
Seungha Yang
4a774e878f
audiosink: Keep baseclass extensible
...
Add a structure for future extension.
Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/716
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/547 >
2020-05-28 19:14:29 +09:00
Stéphane Cerveau
c7a956aede
video-anc: init type before g_once_init_enter
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/675 >
2020-05-27 17:13:35 +02:00
Stéphane Cerveau
be3745cb92
video-hdr: fix typo
...
fix typo in video_hdr_ascii_string_to_unsigned
method name.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/675 >
2020-05-27 16:04:29 +02:00
Guillaume Desmottes
eed54928c8
gl: egl: fix gtk-doc doc start code
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/664 >
2020-05-19 10:37:59 +02:00
Guillaume Desmottes
6a42e2e176
gl: workaround gir warning
...
The gir generator wrongly assume that the vfunc
GstGLFilterClass.filter() and the method gst_gl_filter_filter_texture()
are related. As a result it complains about not matching argument names.
Workaround this by naming both of their arguments input and output.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/664 >
2020-05-19 10:37:59 +02:00
Guillaume Desmottes
c3e98ad2d0
gl: egl: add missing gir annotations
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/664 >
2020-05-19 10:37:59 +02:00
Guillaume Desmottes
41f9d9103c
gl: x11: skip gst_gl_display_x11_new_with_display() from gir
...
The X11 Display type is not usable in gir.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/664 >
2020-05-19 10:17:21 +02:00
Nicola Murino
f98f834014
riff-media: add H.265
...
Closes #359
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/43 >
2020-05-18 09:51:23 +00:00
Matthew Waters
d0de7cba48
gl/display/egl: ensure debug category is initialized
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/662 >
2020-05-14 16:41:00 +10:00
Sebastian Dröge
a0258e3e6b
gldisplay: Fix context leak when removing a context from the display
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/654 >
2020-05-06 14:46:17 +00:00
Edward Hervey
0fe052db61
gldisplay: Fix list iteration
...
We were never moving past the first entry it seems...
CID #1461275
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/654 >
2020-05-06 14:46:17 +00:00
Sebastian Dröge
47e2c4cc10
discoverer: Check sinkpad existence before retrieving caps
...
Otherwise we would error out without releasing the caps first.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/655 >
2020-05-06 11:52:20 +03:00
Sebastian Dröge
ceb705837d
discoverer: Ensure that we have fixed, non-empty caps before passing passing to is_subtitle_caps()
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/655 >
2020-05-06 11:51:00 +03:00
Sebastian Dröge
350a7197e7
discoverer: Try to get negotiated caps first on pad-added and only then fall back to a caps query
...
The negotiated caps will be more accurate and are fixed caps in any
case.
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/498
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/655 >
2020-05-06 11:46:25 +03:00
Sebastian Dröge
637bbac622
videoaggregator: Don't crash when setting pad properties after the aggregator was finalized
...
The application might still have a strong reference to a pad and change
properties, which should work without crashing.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/649 >
2020-05-01 10:41:29 +00:00