Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-03tests/checkasm/sw_scale: adds additional tests sizes for yux2yuvXAlan Kelly
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit e1484bc455dff500f8b35b58d434924bca0e03d6) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-02-19tests/checkasm/sw_scale: use memset() to fill ditherJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-19checkasm/sw_scale: properly initialize src_pixer and filter_coeff buffersAlan Kelly
Fixes valgrind uninitialised value warnings. Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-18checkasm/sw_scale: use av_free() instead of free()James Almer
Fixes crashes on Win64 Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-17swscale: move yuv2yuvX_sse3 to yasm, unrolls main loopAlan Kelly
And other small optimizations for ~20% speedup.
2021-02-17checkasm/vf_gblur: add a test for postscale_sliceJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-02-17checkasm/vf_gblur: split off the horiz_slice test into its own functionJames Almer
Will come in handy for the following commit. Signed-off-by: James Almer <jamrial@gmail.com>
2021-01-25checkasm: add hevc_pel testsJosh Dekker
Co-authored-by: Niklas Haas <git@haasn.xyz> Signed-off-by: Josh Dekker <josh@itanimul.li>
2021-01-01lavu: move LOCAL_ALIGNED from internal.h to mem_internal.hAnton Khirnov
That is a more appropriate place for it.
2020-09-10tests: fix warning ISO C90 forbids mixed declarations and codeLimin Wang
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-08-25lavfi/hflip: Support Bayer pixel formats.Carl Eugen Hoyos
Fixes part of ticket #8819.
2020-07-23libavutil: Detect MMI and MSA flags for MIPSJiaxun Yang
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>
2020-07-12checkasm/vf_blend: use the correct depth parameters to initialize the blend ↵James Almer
modes This effectively enables the tests that until now were just running the C version alone. Signed-off-by: James Almer <jamrial@gmail.com>
2020-06-01checkasm: sw_rgb: Fix mixed declaration and codeJun Zhao
Fix mixed declaration and code. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2020-05-21checkasm/sw_scale: Fix stack-buffer-overflowAndreas Rheinhardt
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>
2020-05-16checkasm: swscale: Fix running the hscale test on 32 bit x86Martin Storsjö
This function doesn't call emms. Signed-off-by: Martin Storsjö <martin@martin.st>
2020-05-15checkasm: sw_rgb: Add a test for interleaveBytesMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2020-05-15checkasm: pixblockdsp: Add tests for get_pixels_unaligned and ↵Martin Storsjö
diff_pixels_unaligned Signed-off-by: Martin Storsjö <martin@martin.st>
2020-05-15checkasm: aarch64: Check for stack overflowsMartin Storsjö
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>
2020-05-15checkasm: arm: Check for stack overflowsMartin Storsjö
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>
2020-05-15checkasm: arm: Don't use blx to call checkasm_fail_funcMartin Storsjö
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>
2020-05-15checkasm: arm: Make the indentation consistent with other filesMartin Storsjö
This makes it easier to share code with e.g. the dav1d implementation of checkasm. Signed-off-by: Martin Storsjö <martin@martin.st>
2020-05-15checkasm: add hscale testJosh de Kock
This tests the hscale 8bpp to 14/18bpp functions with different filter sizes. Signed-off-by: Josh de Kock <josh@itanimul.li>
2020-05-15checkasm: add function to check and diff memoryMartin Storsjö
This was ported from dav1d (c950e7101bdf5f7117bfca816984a21e550509f0). Signed-off-by: Josh de Kock <josh@itanimul.li>
2020-03-27tests/checkasm: add overflow test for hevc_add_resLinjie Fu
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>
2020-03-27checkasm/hevc_add_res: prepare test data only if the fuction is not testedLinjie Fu
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>
2020-02-09checkasm: sbrdsp: Fix a spurious test failure by calculating a better ↵Martin Storsjö
epsilon for sum_square Signed-off-by: Martin Storsjö <martin@martin.st>
2020-01-24checkasm: Check HAVE_GETSTDHANDLE here as wellMartin Storsjö
This was missed in 63418e374fcf26. Signed-off-by: Martin Storsjö <martin@martin.st>
2019-12-18checkasm: aacpsdsp: Tolerate extra intermediate precision in stereo_interpolateMartin Storsjö
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>
2019-12-13checkasm: af_afir: Use a dynamic tolerance depending on valuesMartin Storsjö
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>
2019-12-11checkasm: float_dsp: Scale FLT/DBL_EPSILON sufficiently when comparingMartin Storsjö
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>
2019-09-26checkasm/vf_eq: add test for vf_eqTing Fu
Signed-off-by: Ting Fu <ting.fu@intel.com> Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2019-09-18checkasm/opusdsp: declare opus_deemphasis as a function returning a floatJames Almer
Fixes ticket #8175 Signed-off-by: James Almer <jamrial@gmail.com>
2019-09-11checkasm: add opusdsp testsLynne
2019-06-12checkasm/vf_gblur: add test for horiz_slice simdRuiling Song
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
2019-05-02checkasm: add test for v210decJames Darnley
2019-03-14Merge commit 'f8abf7d4dfa0504f7f65e4f1fd9d22e01cb371cc'James Almer
* commit 'f8abf7d4dfa0504f7f65e4f1fd9d22e01cb371cc': checkasm/h264: test 4:2:2 chroma loop filter functions Merged-by: James Almer <jamrial@gmail.com>
2019-03-11Merge commit '7e5bde93a1e7641e1622814dafac0be3f413d79b'James Almer
* commit '7e5bde93a1e7641e1622814dafac0be3f413d79b': build: Rename OBJDIRS variable to OUTDIRS Merged-by: James Almer <jamrial@gmail.com>
2019-02-27checkasm/h264: test 4:2:2 chroma loop filter functionsJanne Grunau
2019-02-20Merge commit 'd7f4f5c4a18a0c9e62635cfa6fe8a9302b413c01'James Almer
* commit 'd7f4f5c4a18a0c9e62635cfa6fe8a9302b413c01': checkasm/h264: add loop filter tests Merged-by: James Almer <jamrial@gmail.com>
2019-02-16build: Rename OBJDIRS variable to OUTDIRSDiego Biurrun
These directories are not just for object files.
2019-01-31tests/checkasm/checkasm: Do not define an unused function.Carl Eugen Hoyos
Fixes the following warning: tests/checkasm/checkasm.c:615:12: warning: 'bench_init_ffmpeg' defined but not used
2019-01-26checkasm/h264: add loop filter testsJanne Grunau
2019-01-13checkasm/af_afir: relax the max allowed absolute differenceJames Almer
Should fix failures on x86_32. Signed-off-by: James Almer <jamrial@gmail.com>
2019-01-03checkasm: add an af_afir testJames Almer
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2018-09-14checkasm/float_dsp: add test for vector_dmulJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2018-05-30lavfi/tests: Fix 16-bit vf_blend test to avoid memory not aligned to 2 bytesAndrey Semashev
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>
2018-05-18tests/checkasm/nlmeans: fix invalid read/write on ii bufferClément Bœsch
2018-05-10checkasm/sw_rgb: fix the function declaration warningJun Zhao
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>
2018-05-08checkasm: add vf_nlmeans test for ssd_integral_imageClément Bœsch