summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* checkasm: Fix floating point arguments on 64-bit WindowsHenrik Gramner2015-08-28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* checkasm: Explicitly declare function prototypesHenrik Gramner2015-08-20
| | | | | | | | | | | | Now we no longer have to rely on function pointers intentionally declared without specified argument types. This makes it easier to support functions with floating point parameters or return values as well as functions returning 64-bit values on 32-bit architectures. It also avoids having to explicitly cast strides to ptrdiff_t for example. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* checkasm: x86: properly save rdx/edx in checked_call()Henrik Gramner2015-08-20
| | | | | | | | | | | If the return value doesn't fit in a single register rdx/edx can in some cases be used in addition to rax/eax. Doesn't affect any of the existing checkasm tests but might be useful later. Also comment the relevant code a bit better. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* fate: test only demuxing in asf-repldataJanne Grunau2015-08-20
|
* fate: Make sure a corner-case for ASF is coveredAlexandra Hájková2015-08-16
| | | | | | | | | Test the demuxer for the case when the replicated data length in a sample is 0. Sample-ID: https://samples.libav.org/mplayer-bugs/bug821/bug821-2.asf Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* checkasm: Remove unnecessary includeHenrik Gramner2015-08-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* fate/mp3: use the f32le format as outputAnton Khirnov2015-07-31
| | | | | Those tests test the float decoder, so it is preferable to dump the decoder output directly instead of converting it to s16.
* fate/mp3: specify the number of output samples instead of filesizeAnton Khirnov2015-07-31
| | | | This is not dependent on the output format.
* checkasm: Include io.h for isatty, if availableMartin Storsjö2015-07-30
| | | | | | | | configure does check for isatty, and checkasm properly checks HAVE_ISATTY, but on some platforms (e.g. WinRT), io.h needs to be included for isatty to be available. Signed-off-by: Martin Storsjö <martin@martin.st>
* fate: add test vectors for HMAC SHA and SHA-2James Almer2015-07-29
| | | | | | | Also replace custom tests for MD5 with those published in RFC 2202 Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* fate: Add hap-chunk ref fileVittorio Giovara2015-07-27
| | | | Missing from the push of 3ee217853a6741b829a2683f49c590618891b1ab.
* Support the Hap chunked frame formatTom Butterworth2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* checkasm: Modify report formatHenrik Gramner2015-07-27
| | | | | | | | Makes it a bit more clear where each test belongs. Suggested by Anton Khirnov. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* checkasm: Use LOCAL_ALIGNEDMichael Niedermayer2015-07-26
| | | | | | Fixes alignment issues and bus errors. Signed-off-by: Martin Storsjö <martin@martin.st>
* dds: Add a rgba fate testVittorio Giovara2015-07-22
|
* dds: Fix palette decodingVittorio Giovara2015-07-22
| | | | | | Red and blue channels were decoded in the wrong order. Found-By: ami_stuff
* checkasm: remove empty array initializer list in h264pred testJanne Grunau2015-07-22
| | | | Fixes MSVC compilation.
* checkasm: Always link staticallyLuca Barbato2015-07-21
| | | | Checkasm needs to use internal symbols that should not be made public.
* fate: add checkasm targetJanne Grunau2015-07-18
|
* checkasm: test all architectures with optimisationsJanne Grunau2015-07-18
|
* checkasm: Give macro a body to avoid potential unexpected syntax issuesMichael Niedermayer2015-07-18
|
* checkasm: exit with status 0 instead of 1 if there are no tests to performHenrik Gramner2015-07-18
|
* cosmetics: Reformat checkasm testsLuca Barbato2015-07-17
|
* checkasm: Add unit tests for bswapdspHenrik Gramner2015-07-17
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* checkasm: Add unit tests for h264qpelHenrik Gramner2015-07-15
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Checkasm: assembly testing and benchmarking toolHenrik Gramner2015-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | It provides the following features: * verify correctness by comparing output to the C version. * detect failure to save and restore clobbered callee-saved registers. * detect 32-bit parameters being used as if they were 64-bit in x86-64 (the upper halves are not guaranteed to be zero - but in practice they very often are, which makes those bugs hard to spot otherwise). * easy benchmarking. Compile by running 'make checkasm'. Execute by running 'tests/checkasm/checkasm'. Optional arguments are '--bench' to run benchmarks for all functions, '--bench=<pattern>' to run benchmarks for all functions that starts with <pattern>, and '<integer>' to seed the PRNG for reproducible results. Contains unit tests for most h264pred functions to get started, more tests can be added afterwards using those as a reference. Loosely based on code from x264. Currently only supports x86 and x86-64, but additional architectures shouldn't be too much of an obstacle to add. Note that functions with floating point parameters or floating point return values are not supported. Some compiler-specific features or preprocessor hacks would likely be required to add support for that. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* h261: Signal freeze picture release for intra framesStian Selnes2015-07-07
| | | | | | | | | | | | | | Freeze picture release should be set to 1 when we're responding to a fast update request. For simplicity we set it for all intra frames, including those that starts a GOP. Fixes issue where Tandberg MXP1700 does not recover from packet loss state since it's waiting for the freeze picture relase indication. Bug-Id: 873 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h261: Set 'still image mode off' in picture headerStian Selnes2015-07-07
| | | | | | | | | | | | | | | | Ref H.261 recommendation section 4.2.1.3, setting the still image flag to 1 disables still image mode. Some decoders require this in order to decode the bitstream as normal video. Fixes H.261 calls to Cisco E20. Also, reserved (aka spare) bits should be set to 1 unless specified otherwise. Bug-Id: 872 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* fate-g2m3: disable the audio streamJanne Grunau2015-07-01
| | | | | The audio decoder is not in fate-g2m3 dependencies and the wma2 decoder is probably not bit-exact since it it float based.
* g2meet: force simple idct for identical results over all fate configsJanne Grunau2015-07-01
|
* g2meet: Add FATE tests for all three G2M variantsDiego Biurrun2015-07-01
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* fate: Avoid unnecessary pixel format conversionsMartin Storsjö2015-06-30
| | | | | | | | | | | | | | | | | | Most of the fate-dds-* and fate-txd-* tests already output into the same pixel format regardless of platform endianness, so there's no need to force conversion to another format. This fixes the tests fate-txd-16bpp, fate-txd-odd, fate-dds-rgb16, fate-dds-rgb24 and fate-dds-xrgb on big endian, where the tests seem to fail due to issues with certain conversion codepaths in swscale. Those conversion codepaths should of course be fixed, but the individual decoder tests should use as little extra conversion steps as possible. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Preserve the metadata even when bit-exactness is requestedLuca Barbato2015-06-30
| | | | | | | Make sure to not write the custom `encoder` string in that case. Bug-Id: 845 CC: libav-stable@libav.org
* fate: Update ac3 test to the new request_channel_layout optionVittorio Giovara2015-06-30
|
* lavf: Replace the ASF demuxerAlexandra Hájková2015-06-28
| | | | | | | | | | | | | | | | | The old one is the result of the reverse engineering and guesswork. The new one has been written following the now-available specification. This work is part of Outreach Program for Women Summer 2014 activities for the Libav project. The fate references had to be changed because the old demuxer truncates the last frame in some cases, the new one handles it properly. The seek-test reference is changed because seeking works differently in the new demuxer. When seeking, the packet is not read from the stream directly, but it is rather constructed by the demuxer. That is why position is -1 now in the reference. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* FATE: drop the last truncated frame from the wmapro testsAnton Khirnov2015-06-28
| | | | | Since it's truncated, the result depends on how specifically the demuxer and the decoder handle errors.
* FATE: drop the last truncated frame from the wma lossless testAnton Khirnov2015-06-28
| | | | | Since it's truncated, the result depends on how specifically the demuxer and the decoder handle errors.
* DirectDraw Surface image decoderVittorio Giovara2015-06-22
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Hap decoder and encoderVittorio Giovara2015-06-22
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* txd: Use the TextureDSP module for decodingVittorio Giovara2015-06-22
| | | | | | | | | Using the internal DXTC routines brings support for non multiple of 4 textures. A new test is added to cover this feature. Hashes differ since the decoding algorithm is different, though no visual changes have been spotted. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* af_resample: Set the number of samples in the last frameLuca Barbato2015-06-20
| | | | | | Otherwise trailing zeroes would appear. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mp3: enable packed main_data decoding in MP4nu7742015-06-20
| | | | | | | | | | | | | | | | 14496-3 suggests packing main_data of MP3 that is usually scattered into multiple frames due to bit reservoir. However, after packing main_data into a access unit, bitrate index in the MPEG audio frame header doesn't match with actual frame size. In order to accept this, this patch removes unnecessary frame size checking on mp3 decoder. Also, mov demuxer was changed to use MP3 parser only on special cases (QT MOV with specific sample description) to avoid re-packetizing. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtmpdh: Add fate test for the DH handshake routineMartin Storsjö2015-05-29
| | | | | | | This helps if these functions need to be implemented using another crypto API. Signed-off-by: Martin Storsjö <martin@martin.st>
* fate: Reduce the number of frames used to test video filtersLuca Barbato2015-05-10
| | | | | | | Use 5 frames for video filter tests and a single one for the pixelformat tests. Greatly reduces the test duration without reducing coverage.
* fate: Add a PICT testVittorio Giovara2015-05-06
| | | | This stimulates the direct pixel mode in Quickdraw decoder.
* lavf: Open PICT images with QuickdrawVittorio Giovara2015-05-06
| | | | | Update the pictor test to use the pictor codec, as both formats share the .pic file extension.
* fate: Fix test name for pixfmts testsTimothy Gu2015-04-23
| | | | | | | | | | | The last pixel format gets leaked as `$test` further down the pipeline. See for example https://fate.libav.org/x86_32-netbsd-clang-no-inline-asm/20150420020104 Note the odd test names like “yuvj444p.” CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* fate: Omit the results if the test passedTimothy Gu2015-04-20
| | | | | | | The FATE server does not report this information anyway and omitting it makes the successful run send much less data. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Canopus HQ/HQA decoderVittorio Giovara2015-04-19
| | | | | | Based on work by Kostya Shishkov <kostya.shishkov@gmail.com>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* fate: Prefix cllc tests with canopusVittorio Giovara2015-04-19
| | | | They belong to the same family of codecs.