He Junyan
6dd3d6f1c1
glupload: add a helper function to convert gst formats into drm formats
...
Co-authored-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3524 >
2023-08-03 20:58:23 +00:00
He Junyan
22bb3107d7
gl: add a method to check whether DMA modifier is supported in EGL
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3524 >
2023-08-03 20:58:23 +00:00
Charlie Blevins
05cffc19dd
rtpjitterbuffer: Allow earlier reference-timestamp-meta
...
Allow reference-timestamp-meta to be added earlier if an RTCP sender
report is sent before the first RTP packet.
Fixes #2843
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5084 >
2023-08-03 17:26:42 +00:00
Ryan Pavlik
6e5ca29e8f
androidmedia: Add more null checks (of env) to JNI utilities
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5138 >
2023-08-02 16:03:38 -05:00
Philippe Normand
c506748c6f
transcodebin: Fixes for upstream selectable support
...
The upstream selectable query was not performed in all situations where we
handle the stream-start event. This could potentially lead to unlinked pads
between decodebin3 and encodebin later on.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5089 >
2023-08-02 17:12:48 +00:00
Matthew Waters
ea2a44cb97
qml/gl: fix array definition
...
Some implementations require the [N] to suffixed to the variable name.
Error message example: 'syntax error: Array size must appear after
variable name'
Follow up with https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5123
of https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5119
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5137 >
2023-08-02 21:17:26 +10:00
Ryan Pavlik
f3ce30a55a
androidmedia: Add more null checks to JNI utilities
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5130 >
2023-08-01 23:17:54 +00:00
Ryan Pavlik
794d723871
androidmedia: Fix typo
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5130 >
2023-08-01 23:17:54 +00:00
Ryan Pavlik
ec201c6577
androidmedia: Clear err if we don't have an optional camera field/constant
...
Fixes startup on devices where those fields/constants are not found.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5130 >
2023-08-01 23:17:54 +00:00
Ryan Pavlik
e31407f9d2
webrtc: Fix docs for create-data-channel action signal
...
Initial line of the doc comment was incorrect, so the nicely written
docs were not being extracted.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5131 >
2023-08-01 21:17:06 +00:00
Philippe Normand
1afeef0e8b
decodebin3: Ensure the slot is unlinked before linking to decoder
...
When switching from a raw stream to an encoded stream we need to make sure the
slot is unlinked, there is code in place for this but it wasn't triggered
because the slot being reconfigured wasn't advertised as linked beforehand.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5126 >
2023-08-01 20:16:59 +00:00
Nicolas Dufresne
0149d77eff
waylandsink: Improve DMA DRM integration
...
Pass GstVideoInfoDmaDrm or GstVideoInfo whenever possible, avoiding passing
strange combination of GstVieoFormat + modifier. Even though we don't have any
at the moment, this also allow supporting GstVideoFormat that are not supported
in our DRM integration.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5120 >
2023-08-01 14:55:23 -04:00
Seungha Yang
15f0bd2461
dwrite: Move background-color and color-emoji options to effect object
...
... and simplify background rendering
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5121 >
2023-08-02 01:02:32 +09:00
Seungha Yang
a1ad56ed5a
dwrite: Add helper object for blending operation
...
For easy integration with a new text rendering baseclass
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5121 >
2023-08-02 01:02:28 +09:00
Seungha Yang
f792884ae7
dwritebaseoverlay: Handle only d3d11 allocation query
...
... and passthrough allocation queries of the other types
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5121 >
2023-08-02 01:00:44 +09:00
Seungha Yang
8633b29fab
dwritetextoverlay: Remove leading CRLF sequence from CC
...
The CRLF sequence is unnecessary
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5121 >
2023-08-02 01:00:44 +09:00
Seungha Yang
f01fc727e3
dwrite: Remove some properties
...
Remove outline color and auto resize related properties
to be consistent with textoverlay elements
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5121 >
2023-08-02 01:00:44 +09:00
Nicolas Dufresne
76fbc79494
v4l2: bufferpool: Keep processing bitstream buffer
...
Bitstream buffers may no fit a single v4l2 buffer, following spec
recommendation, keep processing the buffer until all the data has been
queued.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5100 >
2023-08-01 11:02:12 +00:00
Nicolas Dufresne
de5e1e334e
v4l2: bufferpool: Fix buffer resize asserstion
...
When we fill a bitstream buffer the buffer might be too small to hold
the entire frame. Only resize to the filled size, preventing the
following assertion to happen.
gst_buffer_resize_range: assertion 'bufmax >= bufoffs + offset + size' failed
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5100 >
2023-08-01 11:02:12 +00:00
Nirbheek Chauhan
d381a28beb
meson: Backport glib patch to allow pcre2 fallback
...
2.76 broke this, but glib main fixed it again.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5124 >
2023-08-01 06:29:39 +00:00
Nirbheek Chauhan
fcd2d8531f
data: Add qt framework path to macOS native file
...
This can be required when pkgconfig is used to pick up Qt, which is
not true for gstreamer, but may be true for other subprojects.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5124 >
2023-08-01 06:29:39 +00:00
Nicolas Dufresne
8c3edd231e
ci: Disable plugins-rs in the doc build
...
The plugins-rs scripts dependson python 3.8, while the docker image only has
3.7 and depends on glib 2.66, while we only have 2.62 in the docker.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5125 >
2023-08-01 02:30:14 +00:00
Nicolas Dufresne
07f05ac830
ci: Force fedora image rebuilt
...
The image was accendently rebuilt after a 500 error in gitlab, and the
resulting image ended up not working. Only bump the minor, as this is the
same image script.
The link to the bad job:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/jobs/46301615
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5125 >
2023-08-01 02:30:14 +00:00
Nicolas Dufresne
c0dbc21fc5
ci: Run documentation build tags have changed
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5125 >
2023-08-01 02:30:14 +00:00
Nicolas Dufresne
0550b845b4
ci: Install cargo-c
...
This is to fix gst-plugin-rs configuration error about the missing
installation.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5125 >
2023-08-01 02:30:14 +00:00
Tim-Philipp Müller
ddd4491635
gst-docs: add higher-resolution favicons
...
Same as on main website.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5122 >
2023-08-01 02:23:17 +00:00
Matthew Waters
65fc381403
qml: add support for non-RGBA formats as input format
...
Currently supported are RGBA, BGRA and YV12
Output is still RGBA textures
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5119 >
2023-08-01 01:36:40 +00:00
Tim-Philipp Müller
da3229d0cc
git-hooks: use bash for pre-commit-invoke-python
...
Since it contains bashisms.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5091 >
2023-07-31 17:55:57 +00:00
Nirbheek Chauhan
eb9be6de78
glcolorconvert: Fix syntax for GLSL shaders
...
Shader compilation was failing on macOS:
gstglslstage.c:519:_compile_shader:<glslstage1> fragment shader compilation failed:
ERROR: 0:10: 'input_swizzle' : syntax error: Array size must appear after variable name
Co-authored-by: Matthew Waters <matthew@centricular.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5123 >
2023-07-31 17:33:20 +05:30
Matthew Waters
9160a9eb26
parse: avoid -Werror=unused-but-set-variable
...
bison seems to generate a yyparse() with one unsed but set variable in it.
Avoid that.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5110 >
2023-07-29 13:12:21 +00:00
Seungha Yang
3679713519
rtponviftimestamp: Fix drop-out-of-segment=false mode
...
Fixing unexpected buffer dropping and flow error in case that:
* use-reference-timestamps=false
* drop-out-of-segment=false
* Calculated utc offset is not valid because buffer is out-of-segment
The above case should be considered as a valid data flow without returning
errors.
Fixing regression introduced by
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1683
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5116 >
2023-07-28 23:36:34 +09:00
Edward Hervey
176b884ec7
adaptivedemux2: Remove API lock
...
The various fields this was protecting were for the legacy design.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5113 >
2023-07-28 12:27:09 +00:00
Matthew Waters
7fcef3818e
glcolorconvert: expose the swizzle glsl functions
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5109 >
2023-07-28 03:29:09 +00:00
Matthew Waters
bff5d6d725
glcolorconvert: expose the YUV->RGB glsl function
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5109 >
2023-07-28 03:29:09 +00:00
Matthew Waters
b32e2cd9dd
gl: expose calculating swizzle indices to/from RGBA/YUVA
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5109 >
2023-07-28 03:29:09 +00:00
Matthew Waters
a90f6d5d67
gl/format: add helper for returning the number of components in a GL format
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5109 >
2023-07-28 03:29:09 +00:00
Matthew Waters
5bf85e7588
gl/colorconvert: use swizzle indices instead of chars
...
Allows using a uniform to control which value goes where and not rewrite
the shader for every format combination.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5109 >
2023-07-28 03:29:08 +00:00
Cheah, Vincent Beng Keat
104daade0d
waylandsink: Add gst_buffer_pool_config_set_params() to a pool
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5103 >
2023-07-27 17:08:27 +00:00
Cheah, Vincent Beng Keat
6e22846301
waylandsink: Add DRM modifiers support
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5103 >
2023-07-27 17:08:26 +00:00
Mengkejiergeli Ba
ebea1219a9
vah265enc: Correct the value of cu_qp_delta flag and depth
...
According to libva API description, cu_qp_delta in VAConfigAttribValEncHEVCFeatures
is supposed to be used as a flag not the value of depth. And if flag enabled,
diff_cu_qp_delta_depth should be decided by log2_diff_max_min_luma_coding_block_size.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5068 >
2023-07-27 16:00:19 +00:00
Mengkejiergeli Ba
809a984b91
va:allocator: Rework the func va_map_unlocked
...
Rework the va_map_unlocked() after we keep mapping behavior (whether to
use derive) consistent with allocator_try stage. Also remove the flag
for iHD case because pitch/stride difference between vaCreateImage and
vaDeriveImage only possibly happen on iHD by now.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5046 >
2023-07-27 15:04:01 +00:00
Mengkejiergeli Ba
b997f541b2
va:allocator: Let pool alloc_info be consitent with the test order in gst_va_allocator_try
...
In gst_va_allocator_try, the first try is to use derive_image, if it
succeeds, we should use info from derived image to create bufferpool.
If derive fails, then try create_image and give created image info
to the pool.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5046 >
2023-07-27 15:04:01 +00:00
Matthew Waters
f954d93f27
applemedia: silence some deprecation warnings from ios 12.0
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5111 >
2023-07-27 13:05:37 +00:00
Matthew Waters
00316db5e5
gl/eagl: ignore OpenGLES deprecation on ios
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5111 >
2023-07-27 13:05:37 +00:00
Matthew Waters
ce81b81d3f
examples: update ios deplyoment target to 12.0
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5111 >
2023-07-27 13:05:37 +00:00
He Junyan
3593d5eea8
test: video: Fix the caps comparing typo for video drm test case
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5107 >
2023-07-26 20:49:02 +00:00
He Junyan
9e863976c9
video: dma: let gst_video_info_dma_drm_to_caps() return caps with DMABuf feature
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5107 >
2023-07-26 20:49:02 +00:00
Alicia Boya García
5fd3c8a16c
qtdemux: Fix premature EOS when some files are played in push mode
...
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2771
This EOS branch exists so that if a seek with a stop is made, qtdemux
stops accepting bytes from the sink after the entire requested playback
range is demuxed, as otherwise we could keep download content that is
not being used.
This patch fixes two flaws that were present in that EOS check:
1) A comparison was made between track time and movie time without conversion.
This made the check trigger early in files with edit lists. This patch fixes
this by converting the track PTS to movie PTS (stream time) for the check.
2) To avoid sending a EOS prematurely when the segment stop is within a GOP and
B-frames are present, the check for EOS should only be done for keyframes. I
gather this was already the intention with the existing code, but because it
used `stream->on_keyframe` instead of the local variable `keyframe` the old
code was checking if the *previous* frame was a keyframe.
It's interesting to note that these two flaws in the old code mask each other
in most cases: the track PTS will have reached the movie end PTS, but EOS would
only be sent if the previous frame was a keyframe. A simple case where they
wouldn't mask each other, reproducing the bug, is a sequence of 3 frame GOPs
with structure I-B-P.
The following validateflow tests have been added to future-proof the
fix:
* validate.test.mp4.qtdemux_ibpibp_non_frag_pull.default
* validate.test.mp4.qtdemux_ibpibp_non_frag_push.default
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5021 >
2023-07-26 19:14:43 +00:00
L. E. Segovia
8dddb9ad20
subprojects: update glib to 2.76.4
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5102 >
2023-07-26 12:11:22 +00:00
He Junyan
5aa2239c4b
codecs: AV1: Ensure current picture and frame to NULL before return
...
The current code fails to clear the current picture and frame pointer if
some flow error such as EOS happens. This causes the double free issue in
gst_av1_decoder_reset().
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5104 >
2023-07-26 16:27:43 +08:00