summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2021-09-22opencv: add cvtracker pluginVivek R4-0/+132
This adds an object tracker plugin. Tracker implementations from https://docs.opencv.org/3.4/d0/d0a/classcv_1_1Tracker.html Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2454>
2021-09-21wasapideviceprovider: Add support for dynamic device add/removeSeungha Yang1-21/+184
Adding IMMDeviceEnumerator::RegisterEndpointNotificationCallback in order to support device monitoring. On OnDeviceAdded(), OnDeviceRemoved(), and OnDefaultDeviceChanged() callback, wasapi device provider implementation will enumerate devices again and will notify newly added and removed device via GstDeviceProvider API. As a bonus point, this IMMDeviceEnumerator abstraction object will spawn a dedicated internal COM thread, so various COM thread related issues of WASAPI plugin can be resolved by this commit. Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1649 Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1110 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2484>
2021-09-20openjpeg: add unit testStéphane Cerveau2-0/+273
Test various format supported with subframes. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/979>
2021-09-15tests: skip cc tests if plugin is disabledU. Artie Eoff1-4/+4
Skip the closedcaption element tests if the closedcaption option is disabled at compile time (i.e. -Dclosedcaption=disabled). v2: rename pangocairo_dep to avoid conflict with later definition in ext/ttml/meson.build as suggested by @tpm. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1388>
2021-09-14tests: skip aes test if elements not builtU. Artie Eoff1-3/+2
In ext/aes/meson.build, the aes_dep will return not-found if -Daes=disabled, regardless of whether openssl is found or not. Thus, we don't need a separate check for the option. This will also ensure that aes_dep is always defined and we can use it in the tests/check/meson.build unit. Fixes #1660 v2: handle -Daes=disabled, too. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2522>
2021-08-27dashdemux: copy ContentProtection element including xml namespacesAlex Ashley1-1/+93
Commit bc09d8cc changed gstmpdparser to put the entire <ContentProtection> element in the "value" field, so that DRMs other than PlayReady could make use of the data inside this element. However, the data in the "value" field does not include any XML namespace declarations that are used within the element. This causes problems for a namespace aware XML parser that wants to make use of this data. This commit modifies the way the XML is converted to a string so that XML namespaces are preserved in the output. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2487>
2021-08-25aes: add aes encryption and decryption elementsAaron Boxer3-0/+363
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1505>
2021-08-18example: va: Add skin tone enhancement.Víctor Manuel Jáquez Leal1-4/+15
If camera is used as input stream and skin tone parameter is available in vapostproc, and no random changes are enabled, the skin tone will be enabled. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2470>
2021-08-18examples: va: Add random cropping.Víctor Manuel Jáquez Leal1-8/+53
And remove unused caps filter. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2443>
2021-08-05Use g_memdup2() where available and add fallback for older GLib versionsTim-Philipp Müller1-1/+4
g_memdup() is deprecated since GLib 2.68 and we want to avoid deprecation warnings with recent versions of GLib. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2280>
2021-07-29d3d11: Disable packed and subsampled YUV formatsSeungha Yang1-1/+1
Direct3D11 sampler doesn't support them very well, and conversion outputs usually result in poor visual quality with our shader code. Should disable support for such formats for now Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2344>
2021-07-15tests: Enable closedcaption test on WindowsSeungha Yang1-5/+5
... if closedcaption plugin is available Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2411>
2021-07-15dash: Store entire ContentProtection node in protection event dataPhilippe Normand1-1/+67
Some manifests use the ContentProtection node to store additional information such as the license server url. Our MPD parser used to process the ContentProtection node, extracting Playready PSSH boxes. However for other DRM systems, only the `value` attribute was passed down to the protection event, so for example, Widevine data was not parsed at all and "Widevine" was passed to the event, which is not very useful for decryptors that require a PSSH init data. Parsing should now be done by decryptors which will receive the entire ContentProtection XML node as a string. This gives more "freedom" to the decryptor which can then detect and parse custom nodes as well. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2400>
2021-07-13tests: wasapi2: Add more device reuse casesSeungha Yang1-17/+131
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2402>
2021-07-12tests: wasapi: check PLAYING -> READY -> PLAYINGJakub Janků2-0/+129
Such sequence of state changes is valid and no error should happen. At the moment, the test fails. Following patches aim to fix it. Partially based on the code in tests/check/elements/wasapi2.c Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2096>
2021-07-02ccconverter: fix framerate caps negotiation from non-cdp to cdpMatthew Waters1-3/+13
We can only convert from non-cdp to cdp within the confines of valid cdp framerates. The existing caps negotiation code was allowing any framerate to convert to a cdp output which is incorrect and would hit an assertion later. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2372>
2021-06-25webrtcbin: Add a test for setting codec preferences as part of ↵Sebastian Dröge1-0/+102
"on-new-transceiver" when setting the remote offer Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2310>
2021-06-25webrtc: Use fail_unless_equals_string() for string assertionsSebastian Dröge1-5/+5
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2310>
2021-06-24webrtcbin test: Fix race in new testOlivier Crête1-0/+8
Pull a buffer from a sink to make sure that the caps are already set before trying to update them. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2348>
2021-06-23d3d11: Add support for GRAY and more YUV formatsSeungha Yang1-72/+129
By this commit, following formats will be newly supported by d3d11 elements * Y444_{8, 12, 16}LE formats: Similar to other planar formats. Such Y444 variants are not supported by Direct3D11 natively, but we can simply map each plane by using R8 and/or R16 texture. * P012_LE: It is not different from P016_LE, but defining P012 and P016 separately for more explicit signalling. Note that DXVA uses P016 texture for 12bits encoded bitstreams. * GRAY: This format is required for some codecs (e.g., AV1) if monochrome is supported * 4:2:0 planar 12bits (I420_12LE) and 4:2:2 planar 8, 10, 12bits formats (Y42B, I422_10LE, and I422_12LE) Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2346>
2021-06-21tests: msdkh264dec: Run test only if factory is available.Víctor Manuel Jáquez Leal1-7/+9
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2336>
2021-06-08wpe: Make wpesrc!video pad an always padThibault Saunier1-13/+8
There should always be a `video` pad no matter what. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2273>
2021-06-03d3d11: Add support for YV12 and NV21 formatsSeungha Yang1-4/+4
Handle UV swapped 4:2:0 8bits formats Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2290>
2021-06-02test: camerabin: Fix buffer size calculationNicolas Dufresne1-1/+5
We were assunming that GStreamer size for RGB (24bit packed) data was width x height x 3, but GStreamer defaults to specific alignment. Use GstVideoInfo API in order to obtain the buffer size. This fixes failure seen when trying to merge: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/998 which make us negoaite 1x1 instead of 16x16 in this test. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2297>
2021-05-24Use gst_buffer_new_memdup()Tim-Philipp Müller2-12/+19
Update for function rename in core. https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/827 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2281>
2021-05-23Use new gst_buffer_new_copy()Tim-Philipp Müller2-24/+13
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2279>
2021-05-19wpe: Implement audio supportPhilippe Normand3-0/+177
The wpesrc bin now exposes "sometimes" audio src pads, one for every PCM audio stream created by WPEWebKit. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2252>
2021-05-18examples: va: Update the VA examples because of the new va lib.He Junyan3-9/+13
Because we introduce the new va lib, the va examples need to include new header files and add more library linkage. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2196>
2021-05-13webrtc test: Print content of error GstMessageOlivier Crête1-0/+8
Makes it easier to interpret the result of the CI! Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
2021-05-13webrtcbin tests: Add test for intersection src pad capsOlivier Crête1-0/+113
This checks that the codec preferences are intersected also with what the src pad can handle. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
2021-05-13webrtc test: Add explicit test clockOlivier Crête1-0/+8
This way the test clock is not linked to the multiple harnesses Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
2021-05-13webrtc test: Add test for codec preferences negotiationOlivier Crête1-2/+77
Validate that it does the intersection with the caps from the sink pad and rejects the offer creation otherwise. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
2021-05-13webrtcbin: Implement caps queries on sinkpad based on codec preferencesOlivier Crête1-0/+38
Also includes a unit test. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
2021-05-13webrtcbin tests: Use properties to access the inside of the transceiver objectOlivier Crête1-7/+11
This will allow hiding the insides from unsafe application access. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
2021-05-12webrtcbin: Add unit test for closing of data channelsJohan Sternerup1-0/+178
Add test for verifying that the data channel "close" action signal triggers an SCTP_RESET_STREAMS request that is propagated to the other side and eventually leads to both sides closing properly. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2186>
2021-05-05Use gst_element_request_pad_simple...François Laignel7-15/+15
Instead of the deprecated gst_element_get_request_pad. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2180>
2021-04-21tests/netsim: Set src caps before creating buffersDoug Nazar1-1/+3
GstHarness requires the source pad caps to be set before buffer allocations. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2179>
2021-04-21d3d11: Add support for BGRx and RGBx formatsSeungha Yang1-4/+4
For such formats, we can re-use existing BGRA/RGBA implementations but ignoring alpha channel Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2174>
2021-04-21webrtcbin test: Don't fail if data channel is createdOlivier Crête1-0/+2
In tests that voluntarily create a data channel. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2168>
2021-04-14tests/avtp: increase timeout of test_depayloader_fragmented_bigDoug Nazar1-3/+6
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2160>
2021-04-14check: fix dash_mpdparser_check_mpd_client_set_methods test.Doug Nazar1-2/+2
Setting guint64 valist properties without type specifier fails on 32bit archs. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2161>
2021-04-13line21enc: fix remove-caption-meta property testDoug Nazar1-4/+43
It's possible for the same address to be allocated to the decoded metadata. Switch test to actual detect if it was removed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2159>
2021-04-13tests: fix shm test deadlockDoug Nazar1-2/+2
Stopping the consumer first would occasionally allow the producer to fill the shm segment causing it to block in send() and unable to be stopped. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2158>
2021-04-13check: Fix test dash_mpdparser_xlink_periodDoug Nazar1-1/+1
Test used http://404/ERROR/XML.period as an invalid url. Curl now interprets that as an 32bit int and tries an actual connect which timesout. Use .invalid as an IANA reserved domain for invalid DNS. curl -v http://404/ERROR/XML.period * Trying 0.0.1.148:80... Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2157>
2021-04-12webrtcbin test: Wait for set-local-desc & set-remote-desc to continueOlivier Crête1-10/+12
To avoid racing betwen the SDPs being set and the next step of the test, let's wait for setting the SDP both locally and remotely to succeed. of the test Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>
2021-04-12webrtcbin test: Add for the case where a second m-line is renegotiatedOlivier Crête1-9/+102
This is for the case where there answerer forces a specific media type for a m-line, but he origin offer only has the other media type. In this case, we will create a second transceiver on receiving the offer and add the desired media type using renegotiation. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>
2021-04-12webrtc test: Verify that forcing different kinds on peers failsOlivier Crête1-0/+69
If the offer contains an audio kind and a video kind, forcing them both at m-line zero will fail. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>
2021-04-12webrtc tests: Verify that create-offer is rejected when neededOlivier Crête1-0/+80
Verify that it gets rejected if a m-line at index 1 is requested but there is no m-line 0. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>
2021-04-12webrtcbin test: Add test for various cases where get_request_pad is meant to ↵Olivier Crête1-0/+93
fail This should ensure that the recently added code works. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>
2021-04-12webrtcbin: Try to match an existing transceiver on pad requestOlivier Crête1-0/+1
This should avoid creating extra transceivers that are duplicated. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>