summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* opencv: add cvtracker pluginVivek R2021-09-224-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>
* wasapideviceprovider: Add support for dynamic device add/removeSeungha Yang2021-09-211-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>
* openjpeg: add unit testStéphane Cerveau2021-09-202-0/+273
| | | | | | Test various format supported with subframes. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/979>
* tests: skip cc tests if plugin is disabledU. Artie Eoff2021-09-151-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>
* tests: skip aes test if elements not builtU. Artie Eoff2021-09-141-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>
* dashdemux: copy ContentProtection element including xml namespacesAlex Ashley2021-08-271-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>
* aes: add aes encryption and decryption elementsAaron Boxer2021-08-253-0/+363
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1505>
* example: va: Add skin tone enhancement.Víctor Manuel Jáquez Leal2021-08-181-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>
* examples: va: Add random cropping.Víctor Manuel Jáquez Leal2021-08-181-8/+53
| | | | | | And remove unused caps filter. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2443>
* Use g_memdup2() where available and add fallback for older GLib versionsTim-Philipp Müller2021-08-051-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>
* d3d11: Disable packed and subsampled YUV formatsSeungha Yang2021-07-291-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>
* tests: Enable closedcaption test on WindowsSeungha Yang2021-07-151-5/+5
| | | | | | ... if closedcaption plugin is available Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2411>
* dash: Store entire ContentProtection node in protection event dataPhilippe Normand2021-07-151-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>
* tests: wasapi2: Add more device reuse casesSeungha Yang2021-07-131-17/+131
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2402>
* tests: wasapi: check PLAYING -> READY -> PLAYINGJakub Janků2021-07-122-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>
* ccconverter: fix framerate caps negotiation from non-cdp to cdpMatthew Waters2021-07-021-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>
* webrtcbin: Add a test for setting codec preferences as part of ↵Sebastian Dröge2021-06-251-0/+102
| | | | | | "on-new-transceiver" when setting the remote offer Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2310>
* webrtc: Use fail_unless_equals_string() for string assertionsSebastian Dröge2021-06-251-5/+5
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2310>
* webrtcbin test: Fix race in new testOlivier Crête2021-06-241-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>
* d3d11: Add support for GRAY and more YUV formatsSeungha Yang2021-06-231-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>
* tests: msdkh264dec: Run test only if factory is available.Víctor Manuel Jáquez Leal2021-06-211-7/+9
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2336>
* wpe: Make wpesrc!video pad an always padThibault Saunier2021-06-081-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>
* d3d11: Add support for YV12 and NV21 formatsSeungha Yang2021-06-031-4/+4
| | | | | | Handle UV swapped 4:2:0 8bits formats Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2290>
* test: camerabin: Fix buffer size calculationNicolas Dufresne2021-06-021-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>
* Use gst_buffer_new_memdup()Tim-Philipp Müller2021-05-242-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>
* Use new gst_buffer_new_copy()Tim-Philipp Müller2021-05-232-24/+13
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2279>
* wpe: Implement audio supportPhilippe Normand2021-05-193-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>
* examples: va: Update the VA examples because of the new va lib.He Junyan2021-05-183-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>
* webrtc test: Print content of error GstMessageOlivier Crête2021-05-131-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>
* webrtcbin tests: Add test for intersection src pad capsOlivier Crête2021-05-131-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>
* webrtc test: Add explicit test clockOlivier Crête2021-05-131-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>
* webrtc test: Add test for codec preferences negotiationOlivier Crête2021-05-131-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>
* webrtcbin: Implement caps queries on sinkpad based on codec preferencesOlivier Crête2021-05-131-0/+38
| | | | | | Also includes a unit test. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
* webrtcbin tests: Use properties to access the inside of the transceiver objectOlivier Crête2021-05-131-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>
* webrtcbin: Add unit test for closing of data channelsJohan Sternerup2021-05-121-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>
* Use gst_element_request_pad_simple...François Laignel2021-05-057-15/+15
| | | | | | Instead of the deprecated gst_element_get_request_pad. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2180>
* tests/netsim: Set src caps before creating buffersDoug Nazar2021-04-211-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>
* d3d11: Add support for BGRx and RGBx formatsSeungha Yang2021-04-211-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>
* webrtcbin test: Don't fail if data channel is createdOlivier Crête2021-04-211-0/+2
| | | | | | In tests that voluntarily create a data channel. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2168>
* tests/avtp: increase timeout of test_depayloader_fragmented_bigDoug Nazar2021-04-141-3/+6
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2160>
* check: fix dash_mpdparser_check_mpd_client_set_methods test.Doug Nazar2021-04-141-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>
* line21enc: fix remove-caption-meta property testDoug Nazar2021-04-131-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>
* tests: fix shm test deadlockDoug Nazar2021-04-131-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>
* check: Fix test dash_mpdparser_xlink_periodDoug Nazar2021-04-131-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>
* webrtcbin test: Wait for set-local-desc & set-remote-desc to continueOlivier Crête2021-04-121-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>
* webrtcbin test: Add for the case where a second m-line is renegotiatedOlivier Crête2021-04-121-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>
* webrtc test: Verify that forcing different kinds on peers failsOlivier Crête2021-04-121-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>
* webrtc tests: Verify that create-offer is rejected when neededOlivier Crête2021-04-121-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>
* webrtcbin test: Add test for various cases where get_request_pad is meant to ↵Olivier Crête2021-04-121-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>
* webrtcbin: Try to match an existing transceiver on pad requestOlivier Crête2021-04-121-0/+1
| | | | | | This should avoid creating extra transceivers that are duplicated. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>