summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests:glcolorconvert: Fix caps memory leakVineeth TM2015-11-111-0/+1
| | | | | | Output caps being got from video info is not getting freed https://bugzilla.gnome.org/show_bug.cgi?id=757929
* dashdemux: Implement lazy-loading of external periodsSebastian Dröge2015-10-021-21/+63
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=752230
* mpdparser: Store an URI downloader in the parser for downloading additional ↵Sebastian Dröge2015-10-021-2/+3
| | | | | | MPD resources if needed https://bugzilla.gnome.org/show_bug.cgi?id=752230
* audiointerleave: typecast bit-mask to guint64 to fix segmentation faultVineeth TM2015-09-301-1/+2
| | | | | | | While creating caps in audiointerleave tests, bitmask is being set as 0x9 This is resulting in segmentation fault. Fix the same by typecasting to guint64 https://bugzilla.gnome.org/show_bug.cgi?id=755840
* mpdparser: Don't consider period start times in periods with segment lists ↵Sebastian Dröge2015-09-141-9/+15
| | | | | | either https://bugzilla.gnome.org/show_bug.cgi?id=754222
* mpdparser: Fix unit test that assumed that fragment timestamps should ↵Sebastian Dröge2015-09-141-1/+8
| | | | | | include the period start timestamp https://bugzilla.gnome.org/show_bug.cgi?id=754222
* compositor: Ensure all arguments to CLAMP are signed intNirbheek Chauhan2015-09-041-0/+11
| | | | | | | | | | | | If any of the arguments to CLAMP are unsigned integers, the comparison causes an automatic conversion of the signed int to unsigned, which causes -1 to become UINT_MAX and get clamped to the high value of the CLAMP instead of 0. See 716 at http://c0x.coding-guidelines.com/6.3.1.8.html Also add a test for this. https://bugzilla.gnome.org/show_bug.cgi?id=754576
* compositor: Actually use the output resolution for clampingNirbheek Chauhan2015-08-261-0/+11
| | | | | | | | | | The obscured check in compositor was using the dimensions of the pad to clamp the h/w of the pad instead of the output resolution, and was doing an incorrect calculation to do so. Fix that by simplifying the whole calculation by using corner coordinates. Also add a test for this bug which fell through the cracks, and just skip all the obscured tests if the pad's alpha is 0.0. https://bugzilla.gnome.org/show_bug.cgi?id=754107
* tests: audiomixer: remove duplicated word in commenthoonhee.lee2015-08-211-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=753915
* check: hlsdemux: make duration unit test robust to floating point roundingAlex Ashley2015-08-201-4/+4
| | | | | | | | | | | The test_playlist_with_doubles_duration() test fails on some platforms due to rounding errors that occur when m3u8.c converts from the floating point value in the HLS manifest to a GstClockTime. Using assert_equals_float() fixes this because this function handles the rounding error issues by accepting almost equal. https://bugzilla.gnome.org/show_bug.cgi?id=753881
* dashdemux: Handle encoding specified in the <xml> element when dumping nodesSebastian Dröge2015-08-191-2/+47
| | | | | | | | Previous patch did not handle the case where an encoding (e.g. UTF-8) is specified in the <xml ?> element. Added an extra test for with and without encoding. https://bugzilla.gnome.org/show_bug.cgi?id=753813
* configure.ac: fix build when the uvch264 plugin is not selectedArnaud Vrac2015-08-191-3/+1
| | | | | | | | | | Instead of checking for the gstreamer-video-1.0 package is installed, just assume it is since we already check for the -base dependency. With this replace the GST_VIDEO_* variables in makefiles and directly link with libgstvideo. https://bugzilla.gnome.org/show_bug.cgi?id=753820
* dashdemux: replace xmlNodeDump with xmlNodeDumpOutputAlex Ashley2015-08-191-0/+61
| | | | | | | | | | When running on an STB, the function gst_mpdparser_get_xml_node_as_string causes a segmentation fault. This code works correctly on a Linux desktop. Looking at the libxml documentation, the xmlNodeDump is deprecated. Replacing the use of xmlNodeDump with xmlNodeDumpOutput fixes the segfault on the STB and removes the use of the deprecated function.
* examples: facedetect: add silent optionLuis de Bethencourt2015-08-171-11/+17
| | | | | By default the example floods the screen with the detected face values. Add an option to avoid this for frail terminals.
* check: Link against GModule for tests using g_module_*Edward Hervey2015-08-151-0/+3
|
* checks: Ensure thread-safe libX11/GL when running testsEdward Hervey2015-08-152-2/+31
|
* dashdemux: add support for UTCTiming elements for clock drift compensationAlex Ashley2015-08-141-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unless the DASH client can compensate for the difference between its clock and the clock used by the server, the client might request fragments that either not yet on the server or fragments that have already been expired from the server. This is an issue because these requests can propagate all the way back to the origin ISO/IEC 23009-1:2014/Amd 1 [PDAM1] defines a new UTCTiming element to allow a DASH client to track the clock used by the server generating the DASH stream. Multiple UTCTiming elements might be present, to indicate support for multiple methods of UTC time gathering. Each element can contain a white space separated list of URLs that can be contacted to discover the UTC time from the server's perspective. This commit provides parsing of UTCTiming elements, unit tests of this parsing and a function to poll a time server. This function supports the following methods: urn:mpeg:dash:utc:ntp:2014 urn:mpeg:dash:utc:http-xsdate:2014 urn:mpeg:dash:utc:http-iso:2014 urn:mpeg:dash:utc:http-ntp:2014 The manifest update task is used to poll the clock time server, to save having to create a new thread. When choosing the starting fragment number and when waiting for a fragment to become available, the difference between the server's idea of UTC and the client's idea of UTC is taken into account. For example, if the server's time is behind the client's idea of UTC, we wait for longer before requesting a fragment [PDAM1]: http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=66068 dashdemux: support NTP time servers in UTCTiming elements Use the gst_ntp_clock to support the use of an NTP server. https://bugzilla.gnome.org/show_bug.cgi?id=752413
* check: Rename states unit testEdward Hervey2015-08-141-1/+1
| | | | Makes it easier to differentiate from other modules states unit test
* examples: facedetect: only create variables when neededLuis de Bethencourt2015-08-101-10/+11
| | | | | | The variables to store face values are only needed if they will be used to control the volume. Which isn't the default to avoid potentially being very loud accidentally. Only create variables when needed.
* examples: facedetect: make volume control optionalLuis de Bethencourt2015-08-101-24/+45
|
* tests/glcontext: fix INVALID_ENUM GL error in testMatthew Waters2015-08-081-1/+1
|
* examples: facedetect: only set to playing when it's not alreadyLuis de Bethencourt2015-08-081-2/+10
|
* examples: opencv: remove unnecessary setting of a propertyLuis de Bethencourt2015-08-082-6/+0
| | | | | "/dev/video0" is the default device of v4l2src, setting it to this is redundant.
* tests: dash_mpd: add check for segmenttemplate inheritanceThiago Santos2015-08-011-0/+47
| | | | Checks if the values are properly inherited and overwriten
* tests: dash_mpd: add one more baseURL testThiago Santos2015-08-011-18/+134
| | | | | | | | | This other type of baseURL test was replaced by a more complex one, better have both to keep both options working Also adds another 2 variations of how baseURL can be generated https://bugzilla.gnome.org/show_bug.cgi?id=752776
* dashdemux: tests: added duration format testFlorin Apostol2015-08-011-0/+84
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=752776
* dashdemux: tests: update unit test for baseURLFlorin Apostol2015-08-011-2/+19
| | | | | | | Update the unit test for baseURL to test that it is properly resolved taking into account parent baseURL elements. https://bugzilla.gnome.org/show_bug.cgi?id=752776
* facedetect: Add unit testVanessa Chipirrás2015-07-312-2/+211
| | | | | | | | | | | | I created four utilities of the detected features: 1- If you hide your mouth, the volume of video is low. 2- If you hide the nose, the volume of the video is up. 3- If you hide the full face, the video stops. You can see proof of this here: https://www.youtube.com/watch?v=pxzejNKV_WQ https://bugzilla.gnome.org/show_bug.cgi?id=748377
* tests: Add test for seeking live pipelinesOlivier Crête2015-07-301-8/+22
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=745768
* tests: Make source live to re-enable aggregator timeout testsOlivier Crête2015-07-301-3/+3
| | | | | | The live mode is only enabled if one of the sources if live. https://bugzilla.gnome.org/show_bug.cgi?id=745768
* tests: Add audiointerleave test to show that queuing worksOlivier Crête2015-07-301-25/+196
| | | | | | | This tests fails without the queuing patch because incoming buffers are not delivered before they are needed. https://bugzilla.gnome.org/show_bug.cgi?id=745768
* compositor: Add unit tests for the new aggregator start-time-selection propertySebastian Dröge2015-07-291-6/+172
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=749966
* glcolorconvert-test: Test notify function for setup_wrappedNicolas Dufresne2015-07-281-1/+12
| | | | | | | gst_gl_memory_setup_wrapped() now takes a destroy notify function. This destroy notify is called to track the memory life time, hence will notify each time a memory get destroyed. This test check that the callback count is correct.
* glcolorconvert-test: Fix buildNicolas Dufresne2015-07-281-1/+1
|
* audioaggregator: Sync pad values before aggregatingNirbheek Chauhan2015-07-222-2/+78
| | | | | | | | | | | We need to sync the pad values before taking the aggregator and pad locks otherwise the element will just deadlock if there's any property changes scheduled using GstController since that involves taking the aggregator and pad locks. Also add a test for this. https://bugzilla.gnome.org/show_bug.cgi?id=749574
* glcontext: fix get_current_gl_api on x11/nvidia driversMatthew Waters2015-07-181-1/+3
| | | | | | They require to get_proc_address some functions through the platform specific {glX,egl}GetProcAddress rather than the default GL library symbol lookup.
* glcontext: track sharedness with a cookieMatthew Waters2015-07-181-0/+41
| | | | | | | | | | | | | | | | | | The previous approach of traversing the other_context weak ref tree was 1. Less performant 2. Incorrect for context destruction removing a link in the tree Example of 2: c1 = context_create (NULL) c2 = context_create (c1) c3 = context_create (c2) context_can_share (c1, c3) == TRUE context_destroy (c2) unref (c2) context_can_share (c1, c3) returns FALSE when it should be TRUE! This does not remove the restriction that context sharedness can only be tracked between GstGLContext's.
* new qt5 qml GL video sinkMatthew Waters2015-07-105-0/+168
| | | | | | | | | | | | | | | | | | | | | | | | Very much in the same spirit as the Gtk GL sink Two things are provided 1. A QQuickItem subclass that renders out RGBA filled GstGLMemory buffers that is instantiated from qml. 2. A sink element that will push buffers into (1) To use 1. Declare the GstGLVideoItem in qml with an appropriate objectName property set. 2. Get the aforementioned GstGLVideoItem from qml using something like QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); QObject *rootObject = engine.rootObjects().first(); QQuickItem *videoItem = rootObject->findChild<QQuickItem *> ("videoItem"); 3. Set the videoItem on the sink https://bugzilla.gnome.org/show_bug.cgi?id=752185
* gtk: add to the generic/states testMatthew Waters2015-07-091-2/+1
|
* mpdparser: Fix some memory leaks in the MPD parser and unit testSebastian Dröge2015-07-081-0/+4
|
* dashdemux: tests: added unit tests to test all functionsFlorin Apostol2015-07-081-9/+1499
| | | | | | | Added unit tests for all functions. Code coverage: Overall coverage rate: lines......: 83.8% (1941 of 2316 lines) functions..: 100.0% (141 of 141 functions)
* dashdemux: tests: added indentation in xml strings to improve readabilityFlorin Apostol2015-07-071-251/+372
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=752027
* dashdemux: tests: corrected code layoutFlorin Apostol2015-07-071-61/+55
| | | | | | | deleted the empty line between gst_mpd_parse call and its check so that the assert is next to the function it is testing https://bugzilla.gnome.org/show_bug.cgi?id=752027
* tests: pcapparse: add unit test for frames with eth paddingStian Selnes2015-07-033-1/+98
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=751879
* dashdemux: corrected recognition of $$$ in segment templatesFlorin Apostol2015-06-291-0/+25
| | | | | | fixed recognition of $$ after a $ that ends an identifier, eg $Time$$$ https://bugzilla.gnome.org/show_bug.cgi?id=751682
* tests: dashdemux: renamed functionsFlorin Apostol2015-06-251-8/+8
| | | | | | Renamed 2 testcase functions: - dash_mpdparser_program_information - dash_mpdparser_base_URL
* tests: dashdemux: added explicit type conversionsFlorin Apostol2015-06-241-12/+12
| | | | | | | | | flexelint (http://www.gimpel.com/html/flex.htm) static code analyser complained about implicit conversions from unsigned to signed, so I added explicit conversions. Ideally, the size parameter of gst_mpd_parse function should be unsigned, but I don't want to change the API.
* tests: dashdemux: corrected return type for duration_to_ms functionFlorin Apostol2015-06-241-15/+15
| | | | | | | | The duration_to_ms function converts a time specified by year, month, day, hour, minute, second, millisecond to a millisecond value. Because all the arguments are positive numbers, the result must also be positive. This patch changes the returned value from a gint64 to a guint64 type.
* tests: dashdemux: added parsing of period elementFlorin Apostol2015-06-221-0/+1848
| | | | | | | | Improved dash_mpd unit tests by adding new tests that parse the Period element. Code coverage reported by lcov for dash/gstmpdparser.c is: lines......: 43.0% (985 of 2290 lines) functions..: 47.5% (67 of 141 functions)
* tests: dashdemux: extended MPD element test to test xml namespacesFlorin Apostol2015-06-221-0/+9
| | | | | | | Extended the dash_mpdparser_mpd testcase to also test parsing the xml namespace attribute. https://bugzilla.gnome.org/show_bug.cgi?id=750863