summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* checkasm: Use standard multiple inclusion guardsDiego Biurrun2016-02-18
|
* avconv: use the new buffersrc parameters APIAnton Khirnov2016-02-14
| | | | | | | The timebase change in the zmbv-8bit test is due to the fact that previously the timebase string was evaluated as floating point, then converted to a rational. After this commit, the timebase is passed directly as is.
* tiny_psnr: Support large filesThomas Lee2016-02-09
| | | | | | | If an input file is bigger than 2GB (assume sizeof(int) == 4)), size0/size1 will overflow, making stddev and PSNR invalid. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86inc: Add debug symbols indicating sizes of compiled functionsGeza Lore2016-01-23
| | | | | | | | | | | Some debuggers/profilers use this metadata to determine which function a given instruction is in; without it they get can confused by local labels (if you haven't stripped those). On the other hand, some tools are still confused even with this metadata. e.g. this fixes `gdb`, but not `perf`. Currently only implemented for ELF. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: Move prediction_method to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | This options is only used by huffyuv, ffvhuv, jpegls, mjpeg, mpegvideoenc, png, utvideo. It is a very codec-specific options, so deprecate the global variant. Set proper limits to the maximum allowed values, and update utvideoenc tests to use the new option name. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move noise_reduction to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc, x264, xavs, and vpx. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* fate: add 10-bit v210 encoder testsJames Darnley2016-01-21
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* checkasm: Check register clobbering on aarch64Martin Storsjö2016-01-07
| | | | | | | This is disabled on iOS, since iOS uses a slightly different ABI for vararg parameters. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: Check register clobbering on armMartin Storsjö2016-01-07
| | | | | | | | | | | Use two separate functions, depending on whether VFP/NEON is available. This is set to require armv5te - it uses blx, which is only available since armv5t, but we don't have a separate configure item for that. (It also uses ldrd, which requires armv5te, but this could be avoided if necessary.) Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: x86: post commit review fixesJanne Grunau2015-12-29
| | | | | | | Check the full FPU tag word instead of only the lower half and simplify the comparison. Use upper-case function base name as macro name to instantiate both checked_call variants.
* dca: remove unused decode_hf function and quant_d tablesAlexandra Hájková2015-12-24
| | | | | They were superseded with their integer equivalents. Rename integer decode_hf to decode_hf.
* dca: change the core to work with integer coefficients.Alexandra Hájková2015-12-23
| | | | | | | | | | | | The DCA core decoder converts integer coefficients read from the bitstream to floats just after reading them (along with dequantization). All the other steps of the audio reconstruction are done with floats which makes the output for the DTS lossless extension (XLL) actually lossy. This patch changes the DCA core to work with integer coefficients until QMF. At this point the integer coefficients are converted to floats. The coefficients for the LFE channel (lfe_data) are not touched. This is the first step for the really lossless XLL decoding.
* checkasm: add fmtconvert testsJanne Grunau2015-12-21
|
* checkasm: add synth_filter testJanne Grunau2015-12-21
|
* checkasm: add tests for dcadspJanne Grunau2015-12-21
|
* checkasm: add float comparison util functionsJanne Grunau2015-12-21
|
* x86: checkasm: check for or handle missing cleanup after MMX instructionsJanne Grunau2015-12-21
| | | | | | | | Not every asm routine is expected clear the MMX state after returning. It is however a requisite for testing floating point code in checkasm. Annotate functions requiring cleanup with declare_func_emms() and issue emms after the call. The remaining functions are checked for having a cleared MMX state after return.
* arm: add a cpu flag for the VFPv2 vector modeJanne Grunau2015-12-14
| | | | | | | | | | | | | | The vector mode was deprecated in ARMv7-A/VFPv3 and various cpu implementations do not support it in hardware. Vector mode code will depending the OS either be emulated in software or result in an illegal instruction on cpus which does not support it. This was not really problem in practice since NEON implementations of the same functions are preferred. It will however become a problem for checkasm which tests every cpu flag separately. Since this is a cpu feature newer cpu do not support anymore the behaviour of this flag differs from the other flags. It can be only activated by runtime cpu feature selection.
* checkasm: add HEVC MC testsAnton Khirnov2015-12-05
|
* movenc-test: Fix integer overflowsMichael Niedermayer2015-11-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* fate: Rework sgi tests into a suite and add the missing onesVittorio Giovara2015-11-24
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* sgienc: Do not end RLE lines with 0sVittorio Giovara2015-11-24
| | | | | | | | This is never mentioned in the specifications, and decoders work just as fine without it. Update the fate references since the compressed file is smaller. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* movenc: Add a unit test for signaling of the track start timesMartin Storsjö2015-11-11
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Add a unit test for frag_discont with edit listsMartin Storsjö2015-11-11
| | | | | | | This tests the case where the muxer correctly guesses that a stream starts at pts=0. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Add an API unit test for fragmenting options/callsMartin Storsjö2015-11-10
| | | | | | | | | | | | | | | | | Contrary to the normal fate tests that run via avconv, this tests nontrivial call sequences that are only doable via the API (mainly for different corner cases when using the muxer for segmenting). The test muxes fake packet data (with extradata that looks enough like proper data to make the file be viewable with e.g. boxdumper) and checks the hash of the produced files. The test also verifies that fragments produced via different call sequences remain identical (to avoid e.g. updating the output hashes and suddenly having fragments that used to be identical suddenly diverging), for fragments written with frag_discont and/or delay_moov. Signed-off-by: Martin Storsjö <martin@martin.st>
* innoHeim/Rsupport Screen Capture Codec decoderVittorio Giovara2015-10-23
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* fate: Move screenpresso to the appropriate screen capture fileVittorio Giovara2015-10-15
|
* checkasm: Fix the function name sorting algorithmHenrik Gramner2015-10-03
| | | | | | The previous implementation was behaving incorrectly in some corner cases. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dnxhddata: Fix 10-bit DNxHD quant matricesJoseph Artsimovich2015-10-02
| | | | | | | | | | | | Convert them to zigzag order, as the rest of them are. When I was adding support for 10-bit DNxHD, I just copy-pasted the missing quant matrices from the spec. Now it turns out the existing matrices in dnxhddata.c were in zigzag order. This resulted in wrong quantization for 10-bit DNxHD. The attached patch fixes the problem by converting 10-bit quant matrices to zigzag order. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Screenpresso SPV1 decoderVittorio Giovara2015-09-30
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiny_psnr: Use the correct abs() versionVittorio Giovara2015-09-29
|
* checkasm/x86: Correctly handle variadic functionsHenrik Gramner2015-09-28
| | | | | | | | | | The System V ABI on x86-64 specifies that the al register contains an upper bound of the number of arguments passed in vector registers when calling variadic functions, so we aren't allowed to clobber it. checkasm_fail_func() is a variadic function so also zero al before calling it. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* checkasm: Use a self-balancing treeHenrik Gramner2015-09-28
| | | | | | | | | | | | | | Tested functions are internally kept in a binary search tree for efficient lookups. The downside of the current implementation is that the tree quickly becomes unbalanced which causes an unneccessary amount of comparisons between nodes. Improve this by changing the tree into a self-balancing left-leaning red-black tree with a worst case lookup/insertion time complexity of O(log n). Significantly reduces the recursion depth and makes the tests run around 10% faster overall. The relative performance improvement compared to the existing non-balanced tree will also most likely increase as more tests are added. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* checkasm: v210: Fix array overwriteHenrik Gramner2015-09-17
|
* fate: Change global error option to private error_rate optionVittorio Giovara2015-09-13
|
* fate: Move mv0 option from global to mpv privateVittorio Giovara2015-09-13
|
* avconv_filter: Use full named optionsVittorio Giovara2015-09-13
| | | | | | | This introduces a slight timebase computation difference in zmbv-8bit fate test. This is expected since the new options are double instead of ints, and the additional precision skews the results in a non meaningful way.
* checkasm: add unit tests for v210encHenrik Gramner2015-09-06
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* DXV decoderVittorio Giovara2015-09-02
| | | | Support all DXDI and DXD3 normal quality videos.
* 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.