summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* checkasm: Fix compilation with --disable-avcodecHenrik Gramner2015-10-041-20/+22
|
* checkasm: Remove use of deprecated av_set_cpu_flags_mask()Henrik Gramner2015-10-031-2/+3
|
* Merge commit '9a3202a98b2e095b54dd784c3e01a09a676fc3fa'Hendrik Leppkes2015-10-032-0/+8
|\ | | | | | | | | | | | | * commit '9a3202a98b2e095b54dd784c3e01a09a676fc3fa': Screenpresso SPV1 decoder Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * Screenpresso SPV1 decoderVittorio Giovara2015-09-302-0/+8
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | dnxhddec: use dequantization formula from specsChristophe Gisquet2015-10-0216-31/+31
| | | | | | | | | | | | | | | | | | The current one, while correct, does not yield the best possible results. The specificiations suggest another formula, which results in quality gains in the decoded output from fate tests. This justifies changing said formula. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: Add basic license header checkMichael Niedermayer2015-09-295-0/+47
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba'Hendrik Leppkes2015-09-291-1/+1
|\ \ | |/ | | | | | | | | | | * commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba': tiny_psnr: Use the correct abs() version Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * tiny_psnr: Use the correct abs() versionVittorio Giovara2015-09-291-1/+1
| |
| * checkasm/x86: Correctly handle variadic functionsHenrik Gramner2015-09-281-2/+5
| | | | | | | | | | | | | | | | | | | | 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-281-12/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-171-1/+1
| |
| * fate: Change global error option to private error_rate optionVittorio Giovara2015-09-131-1/+1
| |
* | checkasm/vp9dsp: Fix iszero() to read the correct dataHenrik Gramner2015-09-281-1/+1
| |
* | checkasm: add vp9dsp.itxfm_add tests.Ronald S. Bultje2015-09-281-0/+275
| |
* | checkasm: Fix the function name sorting algorithmHenrik Gramner2015-09-281-2/+6
| | | | | | | | The previous implementation was behaving incorrectly in some corner cases.
* | checkasm/x86: Correctly handle variadic functionsHenrik Gramner2015-09-271-2/+5
| | | | | | | | | | | | | | | | 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.
* | checkasm/vp9dsp: add const to suppress "discards const qualifier" warningsJames Almer2015-09-261-2/+2
| | | | | | | | | | Reviewed-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | checkasm/Makefile: add missing testclean targetJames Almer2015-09-261-1/+1
| | | | | | | | | | Reviewed-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | checkasm: Use a self-balancing treeHenrik Gramner2015-09-261-12/+47
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | checkasm: clip vp9 loopfilter test pixels inside allowed bitdepth range.Ronald S. Bultje2015-09-261-2/+2
| |
* | tests/checkasm: make randomize_buffers a function for easier debuggingRodger Combs2015-09-261-51/+57
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | AAC encoder: tweak PNS usage to be more aggressiveClaudio Freire2015-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch tweaks search_for_pns to be both more aggressive and more careful when applying PNS. On the one side, it will again try to use PNS on zero (or effectively zero) bands. For this, both zeroes and band_type have to be checked (some ZERO bands aren't marked in zeroes). On the other side, a more accurate rate-distortion measure avoids using PNS where it would cause audible distortion. Also fixed a small bug in the computation of freq that caused PNS usage on low-frequency bands during 8-short windows. This allows re-enabling PNS during 8-short.
* | tests/checkasm/vp9dsp: Revert first hunk of ↵Michael Niedermayer2015-09-241-1/+3
| | | | | | | | | | | | | | | | | | bddcf758d3a68ac0bcc3bc4fc4aa7156e05245d4 The change was wrong, also add a comment explaining it Found-by: BBB Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: add chroma position scale testChristophe Gisquet2015-09-232-0/+30
| | | | | | | | | | | | | | | | The sample position is made weird and non-nominal to force catching such issues as default values or specialized operations hiding issues in corner cases. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | AAC encoder: tweak rate-distortion logicClaudio Freire2015-09-231-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | This patch modifies the encode frame function to retry encoding the frame when the resulting bit count is too far off target, but only adjusting lambda in small, incremental step. It also makes the logic more conservative - otherwise it will contend with bit reservoir-related variations in bit allocation, and result in artifacts when frame have to be truncated (usually at high bit rates transitioning from low complexity to high complexity).
* | vp9: fix loopfilter test code to address Hendrik's comments.Ronald S. Bultje2015-09-211-6/+5
| | | | | | | | (I forgot to actually merge them into the patch I just pushed.)
* | tests/checkasm: fix stack smash in check_loopfilterRodger Combs2015-09-201-0/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tests/checkasm/vp9dsp: Add () to protect macro argumentsMichael Niedermayer2015-09-201-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | checkasm: add VP9 loopfilter tests.Ronald S. Bultje2015-09-201-0/+147
| | | | | | | | | | | | | | The randomize_buffer() implementation assures that "most of the time", we'll do a good mix of wide16/wide8/hev/regular/no filters for complete code coverage. However, this is not mathematically assured because that would make the code either much more complex, or much less random.
* | checkasm: add jpeg2000dsp rct_int testsJames Almer2015-09-204-0/+76
| | | | | | | | | | Reviewed-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | lpc: correctly apply windowing to the samples in the float-only lpcRostislav Pehlivanov2015-09-191-1/+1
| | | | | | | | | | | | | | Also change the window to Hamming (using coefficient which make it a Hanning). Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | checkasm: add flacdsp decorrelate testsJames Almer2015-09-174-0/+95
| | | | | | | | | | Reviewed-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | AAC encoder: refactor to resynchronize MIPS portClaudio Freire2015-09-161-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch refactors the AAC coders to reuse code between the MIPS port and the regular, portable C code. There were two main functions that had to use hand-optimized versions of quantization code: - search_for_quantizers_twoloop - codebook_trellis_rate Those two were split into their own template header files so they can be inlined inside both the MIPS port and the generic code. In each context, they'll link to their specialized implementations, and thus be optimized by the compiler. This approach I believe is better than maintaining several copies of each function. As past experience has proven, having to keep those in sync was error prone. In this way, they will remain in sync by default. Also, an implementation of the dequantized output argument for the optimized quantize_and_encode functions is included in the patch. While the current implementation of search_for_pred still isn't using it, future iterations of main prediction probably will. It should not imply any measurable performance hit while not being used.
* | aacenc_tns: fix coefficient compression conditionRostislav Pehlivanov2015-09-161-1/+1
| | | | | | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | tests/checkasm/vp9dsp: Use snprintf() for safeteyMichael Niedermayer2015-09-161-4/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | checkasm: v210: Fix array overwriteHenrik Gramner2015-09-161-1/+1
| |
* | checkasm: v210: s/Libav/FFmpeg/Henrik Gramner2015-09-161-4/+4
| |
* | Merge commit 'e17db9ac496420f8824190ff5059a8a3646cbb7e'Hendrik Leppkes2015-09-161-5/+4
|\ \ | |/ | | | | | | | | | | * commit 'e17db9ac496420f8824190ff5059a8a3646cbb7e': fate: Move mv0 option from global to mpv private Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * fate: Move mv0 option from global to mpv privateVittorio Giovara2015-09-131-7/+7
| |
| * avconv_filter: Use full named optionsVittorio Giovara2015-09-131-1/+1
| | | | | | | | | | | | | | 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 vp9 intra pred tests.Ronald S. Bultje2015-09-151-1/+68
| |
* | checkasm: add vp9 MC tests.Ronald S. Bultje2015-09-154-0/+127
| |
* | fate: readjust AAC encoder TNS testRostislav Pehlivanov2015-09-121-1/+1
| | | | | | | | | | | | | | | | | | The recent commits change the value slightly. Even though it's within the threshold it's better to risk as little as possible especially when different systems, processors, FPUs and compilers are involved. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | swscale/utils: handle gray+alpha formats like gray for luma rangesMichael Niedermayer2015-09-1011-11/+11
| | | | | | | | | | | | Its illogic to handle gray differently depending on the existence of an alpha channel Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | aaccoder: tweak PNS implementation furtherRostislav Pehlivanov2015-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes a few things about the noise substitution logic: - Brings back the quantization factor (reduced to 3) during scalefactor index calculations. - Rejects any zeroed bands. They should be inaudiable and it's a waste transmitting the scalefactor indices for these. - Uses swb_offsets instead of incrementing a 'start' with every window group size. - Rejects all PNS during short windows. Overall improves quality. There was a plan to use the lfg system to create the random numbers instead of using whatever the decoder uses but for now this works fine. Entropy is far from important here. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | avutil/opt: add AV_OPT_TYPE_BOOLClément Bœsch2015-09-081-2/+20
| |
* | Merge commit '3cdda78deb19b39dbbf8961ae0aec44dbb19bf6d'Hendrik Leppkes2015-09-084-0/+99
|\ \ | |/ | | | | | | | | | | * commit '3cdda78deb19b39dbbf8961ae0aec44dbb19bf6d': checkasm: add unit tests for v210enc Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * checkasm: add unit tests for v210encHenrik Gramner2015-09-064-0/+99
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'c45fcf30cfab687004ed1cdc06ebaa21f4262a0b'Hendrik Leppkes2015-09-075-0/+23
|\ \ | |/ | | | | | | | | | | * commit 'c45fcf30cfab687004ed1cdc06ebaa21f4262a0b': DXV decoder Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * DXV decoderVittorio Giovara2015-09-025-0/+23
| | | | | | | | Support all DXDI and DXD3 normal quality videos.
OpenPOWER on IntegriCloud