summaryrefslogtreecommitdiff
path: root/tests/checkasm
Commit message (Collapse)AuthorAge
* tests: fix warning ISO C90 forbids mixed declarations and codeLimin Wang2020-09-10
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* lavfi/hflip: Support Bayer pixel formats.Carl Eugen Hoyos2020-08-25
| | | | Fixes part of ticket #8819.
* libavutil: Detect MMI and MSA flags for MIPSJiaxun Yang2020-07-23
| | | | | | | | | | | | | | | Add MMI & MSA runtime detection for MIPS. Basically there are two code pathes. For systems that natively support CPUCFG instruction or kernel emulated that instruction, we'll sense this feature from HWCAP and report the flags according to values grab from CPUCFG. For systems that have no CPUCFG (or not export it in HWCAP), we'll parse /proc/cpuinfo instead. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* checkasm/vf_blend: use the correct depth parameters to initialize the blend ↵James Almer2020-07-12
| | | | | | | | | modes This effectively enables the tests that until now were just running the C version alone. Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm: sw_rgb: Fix mixed declaration and codeJun Zhao2020-06-01
| | | | | | | Fix mixed declaration and code. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* checkasm/sw_scale: Fix stack-buffer-overflowAndreas Rheinhardt2020-05-20
| | | | | | | | | A buffer whose size is not a multiple of four has been initialized using consecutive writes of 32bits. This results in a stack-buffer-overflow reported by ASAN in the checkasm-sw_scale FATE-test. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* checkasm: swscale: Fix running the hscale test on 32 bit x86Martin Storsjö2020-05-16
| | | | | | This function doesn't call emms. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: sw_rgb: Add a test for interleaveBytesMartin Storsjö2020-05-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: pixblockdsp: Add tests for get_pixels_unaligned and ↵Martin Storsjö2020-05-15
| | | | | | diff_pixels_unaligned Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: aarch64: Check for stack overflowsMartin Storsjö2020-05-15
| | | | | | | | | Also fill x8-x17 with garbage before calling the function. Figure out the number of stack parameters and make sure that the value on the stack after those is untouched. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: arm: Check for stack overflowsMartin Storsjö2020-05-15
| | | | | | | Figure out the number of stack parameters and make sure that the value on the stack after those is untouched. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: arm: Don't use blx to call checkasm_fail_funcMartin Storsjö2020-05-15
| | | | | | | | | | | We should just use a normal bl here, and the linker will add the 'x' bit if necessary. This fixes calling the checkasm_fail_func on windows, where the code is built in thumb mode (and the linker doesn't clear the 'x' bit in the blx instruction). Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: arm: Make the indentation consistent with other filesMartin Storsjö2020-05-15
| | | | | | | This makes it easier to share code with e.g. the dav1d implementation of checkasm. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: add hscale testJosh de Kock2020-05-15
| | | | | | | This tests the hscale 8bpp to 14/18bpp functions with different filter sizes. Signed-off-by: Josh de Kock <josh@itanimul.li>
* checkasm: add function to check and diff memoryMartin Storsjö2020-05-15
| | | | | | This was ported from dav1d (c950e7101bdf5f7117bfca816984a21e550509f0). Signed-off-by: Josh de Kock <josh@itanimul.li>
* tests/checkasm: add overflow test for hevc_add_resLinjie Fu2020-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add overflow test for hevc_add_res when int16_t coeff = -32768. The result of C is good, while ASM is not. To verify: make fate-checkasm-hevc_add_res ffmpeg/tests/checkasm/checkasm --test=hevc_add_res ./checkasm --test=hevc_add_res checkasm: using random seed 679391863 MMXEXT: hevc_add_res_4x4_8_mmxext (hevc_add_res.c:69) - hevc_add_res.add_residual [FAILED] SSE2: hevc_add_res_8x8_8_sse2 (hevc_add_res.c:69) hevc_add_res_16x16_8_sse2 (hevc_add_res.c:69) hevc_add_res_32x32_8_sse2 (hevc_add_res.c:69) - hevc_add_res.add_residual [FAILED] AVX: hevc_add_res_8x8_8_avx (hevc_add_res.c:69) hevc_add_res_16x16_8_avx (hevc_add_res.c:69) hevc_add_res_32x32_8_avx (hevc_add_res.c:69) - hevc_add_res.add_residual [FAILED] AVX2: hevc_add_res_32x32_8_avx2 (hevc_add_res.c:69) - hevc_add_res.add_residual [FAILED] checkasm: 8 of 14 tests have failed Signed-off-by: Xu Guangxin <guangxin.xu@intel.com> Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* checkasm/hevc_add_res: prepare test data only if the fuction is not testedLinjie Fu2020-03-27
| | | | | | | | | | | | check_func will return NULL for functions that have already been tested. If the func is tested and skipped (which happens several times), there is no need to prepare data(randomize_buffers and memcpy). Move relative code in compare_add_res(), prepare data and do check only if the function is not tested. Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* checkasm: sbrdsp: Fix a spurious test failure by calculating a better ↵Martin Storsjö2020-02-08
| | | | | | epsilon for sum_square Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: Check HAVE_GETSTDHANDLE here as wellMartin Storsjö2020-01-24
| | | | | | This was missed in 63418e374fcf26. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: aacpsdsp: Tolerate extra intermediate precision in stereo_interpolateMartin Storsjö2019-12-18
| | | | | | | | | | | | | | | | | | | | | | The stereo_interpolate functions add h_step to the values h BUF_SIZE times. Within the stereo_interpolate C functions, the values h (h0-h3, h00-h13) are declared as local float variables, but the compiler is free to keep them in a register with extra precision. If the accumulation is rounded to 32 bit float precision after each step, the less significant bits of h_step end up ignored and the sum can deviate, affecting the end result more than the currently set EPS. By clearing the log2(BUF_SIZE) lower bits of h_step, we make sure that the accumulation shouldn't differ significantly, regardless of any extra precision in the accmulating register/variable. This fixes the aacpsdsp checkasm test when built with clang for mingw/x86_32. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: af_afir: Use a dynamic tolerance depending on valuesMartin Storsjö2019-12-12
| | | | | | | | | | | | As the values generated by av_bmg_get can be arbitrarily large (only the stddev is specified), we can't use a fixed tolerance. Calculate a dynamic tolerance (like in float_dsp from 38f966b2222db), based on the individual steps of the calculation. This fixes running this test with certain seeds, when built with clang for mingw/x86_32. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm: float_dsp: Scale FLT/DBL_EPSILON sufficiently when comparingMartin Storsjö2019-12-11
| | | | | | | | | | | | | As the values generated by av_bmg_get can be arbitrarily large (only the stddev is specified), we can't use a fixed tolerance. This matches what was done for test_vector_dmul_scalar in 38f966b2222db. This fixes the float_dsp checkasm test for some seeds, when built with clang for mingw/x86_32. Signed-off-by: Martin Storsjö <martin@martin.st>
* checkasm/vf_eq: add test for vf_eqTing Fu2019-09-26
| | | | | Signed-off-by: Ting Fu <ting.fu@intel.com> Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* checkasm/opusdsp: declare opus_deemphasis as a function returning a floatJames Almer2019-09-18
| | | | | | Fixes ticket #8175 Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm: add opusdsp testsLynne2019-09-11
|
* checkasm/vf_gblur: add test for horiz_slice simdRuiling Song2019-06-12
| | | | Signed-off-by: Ruiling Song <ruiling.song@intel.com>
* checkasm: add test for v210decJames Darnley2019-05-02
|
* Merge commit 'f8abf7d4dfa0504f7f65e4f1fd9d22e01cb371cc'James Almer2019-03-14
|\ | | | | | | | | | | | | * commit 'f8abf7d4dfa0504f7f65e4f1fd9d22e01cb371cc': checkasm/h264: test 4:2:2 chroma loop filter functions Merged-by: James Almer <jamrial@gmail.com>
| * checkasm/h264: test 4:2:2 chroma loop filter functionsJanne Grunau2019-02-27
| |
* | Merge commit '7e5bde93a1e7641e1622814dafac0be3f413d79b'James Almer2019-03-10
|\| | | | | | | | | | | | | * commit '7e5bde93a1e7641e1622814dafac0be3f413d79b': build: Rename OBJDIRS variable to OUTDIRS Merged-by: James Almer <jamrial@gmail.com>
| * build: Rename OBJDIRS variable to OUTDIRSDiego Biurrun2019-02-16
| | | | | | | | These directories are not just for object files.
* | Merge commit 'd7f4f5c4a18a0c9e62635cfa6fe8a9302b413c01'James Almer2019-02-20
|\| | | | | | | | | | | | | * commit 'd7f4f5c4a18a0c9e62635cfa6fe8a9302b413c01': checkasm/h264: add loop filter tests Merged-by: James Almer <jamrial@gmail.com>
| * checkasm/h264: add loop filter testsJanne Grunau2019-01-26
| |
| * checkasm: Use LOCAL_ALIGNED for aligned variables on the stackMartin Storsjö2017-12-12
| | | | | | | | | | | | | | This fixes fate-checkasm-hevc_mc on ARMCC 5.0 after adding NEON HEVC MC assembly. Signed-off-by: Martin Storsjö <martin@martin.st>
* | tests/checkasm/checkasm: Do not define an unused function.Carl Eugen Hoyos2019-01-31
| | | | | | | | | | Fixes the following warning: tests/checkasm/checkasm.c:615:12: warning: 'bench_init_ffmpeg' defined but not used
* | checkasm/af_afir: relax the max allowed absolute differenceJames Almer2019-01-13
| | | | | | | | | | | | Should fix failures on x86_32. Signed-off-by: James Almer <jamrial@gmail.com>
* | checkasm: add an af_afir testJames Almer2019-01-03
| | | | | | | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | checkasm/float_dsp: add test for vector_dmulJames Almer2018-09-14
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | lavfi/tests: Fix 16-bit vf_blend test to avoid memory not aligned to 2 bytesAndrey Semashev2018-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Generic C implementation of vf_blend performs reads and writes of 16-bit elements, which requires the buffers to be aligned to at least 2-byte boundary. Also, the change fixes source buffer overrun caused by src_offset being added to to test handling of misaligned buffers. Fixes: #7226 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tests/checkasm/nlmeans: fix invalid read/write on ii bufferClément Bœsch2018-05-18
| |
* | checkasm/sw_rgb: fix the function declaration warningJun Zhao2018-05-10
| | | | | | | | | | | | | | | | | | fix the warning: "function declaration isn’t a prototype", in C int foo() and int foo(void) are different functions. int foo() accepts an arbitrary number of arguments, while int foo(void) accepts 0 arguments. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | checkasm: add vf_nlmeans test for ssd_integral_imageClément Bœsch2018-05-08
| |
* | swscale/swscale_unscaled : add X86_64 (SSE2 and AVX) for uyvyto422Martin Vignali2018-04-22
| | | | | | | | and checkasm test
* | tests/checkasm/checkasm: Provide verbose failure information on ↵Michael Niedermayer2018-04-14
| | | | | | | | | | | | | | | | float_near_abs_eps() failures This will make understanding failures and adjusting EPS easier Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | checkasm/vf_blend : add test for 16 bit version ofMartin Vignali2018-04-05
| | | | | | | | | | | | | | | | grainextract grainmerge average extremity negation
* | checkasm/Makefile: add EXTRALIBS-libavformatJosh de Kock2018-03-31
| | | | | | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* | checkasm/swscale : add test for rgb shuffle_bytes funcMartin Vignali2018-03-24
| |
* | checkasm/hevc_idct : update test bit depth from 8 9 and 10 to 8 10 and 12Yingming Fan2018-03-19
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | checkasm/hevc_sao : add hevc_sao for checkasmYingming Fan2018-03-07
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | checkasm/vf_blend : add test for blend_simple_16, phoenix_16 and difference_16Martin Vignali2018-02-24
| |