Martin Storsjö
5181f491ee
checkasm: sbrdsp: Fix a spurious test failure by calculating a better epsilon for sum_square
...
Signed-off-by: Martin Storsjö <martin@martin.st>
5 years ago
Martin Storsjö
cbb254cb4c
checkasm: Check HAVE_GETSTDHANDLE here as well
...
This was missed in 63418e374f
.
Signed-off-by: Martin Storsjö <martin@martin.st>
5 years ago
Martin Storsjö
aad0e26f93
checkasm: aacpsdsp: Tolerate extra intermediate precision in stereo_interpolate
...
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>
5 years ago
Martin Storsjö
f58bda642d
checkasm: af_afir: Use a dynamic tolerance depending on values
...
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 38f966b222
),
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>
5 years ago
Martin Storsjö
8f70e261fa
checkasm: float_dsp: Scale FLT/DBL_EPSILON sufficiently when comparing
...
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
38f966b222
.
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>
5 years ago
Ting Fu
9691e2a426
checkasm/vf_eq: add test for vf_eq
...
Signed-off-by: Ting Fu <ting.fu@intel.com>
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
5 years ago
James Almer
1d86e4b3eb
checkasm/opusdsp: declare opus_deemphasis as a function returning a float
...
Fixes ticket #8175
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
Lynne
4ce1e13b54
checkasm: add opusdsp tests
5 years ago
Ruiling Song
8f4963ad25
checkasm/vf_gblur: add test for horiz_slice simd
...
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
6 years ago
James Darnley
76c370af64
checkasm: add test for v210dec
6 years ago
Janne Grunau
f8abf7d4df
checkasm/h264: test 4:2:2 chroma loop filter functions
6 years ago
Diego Biurrun
7e5bde93a1
build: Rename OBJDIRS variable to OUTDIRS
...
These directories are not just for object files.
6 years ago
Carl Eugen Hoyos
608572ce84
tests/checkasm/checkasm: Do not define an unused function.
...
Fixes the following warning:
tests/checkasm/checkasm.c:615:12: warning: 'bench_init_ffmpeg' defined but not used
6 years ago
Janne Grunau
d7f4f5c4a1
checkasm/h264: add loop filter tests
6 years ago
James Almer
f477ee3e89
checkasm/af_afir: relax the max allowed absolute difference
...
Should fix failures on x86_32.
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
ba89dc27b5
checkasm: add an af_afir test
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
93bf1dcaec
checkasm/float_dsp: add test for vector_dmul
...
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
Andrey Semashev
d7eb8d8475
lavfi/tests: Fix 16-bit vf_blend test to avoid memory not aligned to 2 bytes
...
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>
7 years ago
Clément Bœsch
2940af9389
tests/checkasm/nlmeans: fix invalid read/write on ii buffer
7 years ago
Jun Zhao
b30575bc98
checkasm/sw_rgb: fix the function declaration warning
...
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>
7 years ago
Clément Bœsch
f679711c1b
checkasm: add vf_nlmeans test for ssd_integral_image
7 years ago
Martin Vignali
07a566e7d6
swscale/swscale_unscaled : add X86_64 (SSE2 and AVX) for uyvyto422
...
and checkasm test
7 years ago
Michael Niedermayer
18d6ff2b42
tests/checkasm/checkasm: Provide verbose failure information on float_near_abs_eps() failures
...
This will make understanding failures and adjusting EPS easier
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Martin Vignali
595505083a
checkasm/vf_blend : add test for 16 bit version of
...
grainextract
grainmerge
average
extremity
negation
7 years ago
Josh de Kock
cda43940da
checkasm/Makefile: add EXTRALIBS-libavformat
...
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years ago
Martin Vignali
a9a7ed4f27
checkasm/swscale : add test for rgb shuffle_bytes func
7 years ago
Yingming Fan
e5b4cd4c4a
checkasm/hevc_idct : update test bit depth from 8 9 and 10 to 8 10 and 12
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Yingming Fan
80798e3857
checkasm/hevc_sao : add hevc_sao for checkasm
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Martin Vignali
c0919c4985
checkasm/vf_blend : add test for blend_simple_16, phoenix_16 and difference_16
7 years ago
Martin Vignali
e3fc36a84c
checkasm/vf_blend : add depth param in order to add test for 16 bit version
7 years ago
Muhammad Faiz
81d6501be7
checkasm/Makefile: add EXTRALIBS-swresample
...
Should fix https://ffmpeg.org/pipermail/ffmpeg-devel/2018-February/225058.html
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
7 years ago
Martin Vignali
78b982d3b9
checkasm : add test for losslessvideoencdsp for diff bytes and sub_left_pred
7 years ago
James Darnley
40d4b13228
checkasm: support for AVX-512 functions
7 years ago
James Almer
da03242778
Revert "checkasm/vf_interlace : add test for lowpass_line 8 and 16"
...
This reverts commit adff97be5e
.
It currently fails on Windows targets.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Martin Vignali
adff97be5e
checkasm/vf_interlace : add test for lowpass_line 8 and 16
7 years ago
Martin Vignali
cefb7e0060
checkasm/vf_hflip : add test for vf_hflip byte and short simd
7 years ago
Martin Storsjö
18a0f42026
checkasm: Use LOCAL_ALIGNED for aligned variables on the stack
...
This fixes fate-checkasm-hevc_mc on ARMCC 5.0 after adding
NEON HEVC MC assembly.
Signed-off-by: Martin Storsjö <martin@martin.st>
7 years ago
James Almer
1215889bc1
checkasm/llviddsp: fix mixed code and declarations
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Martin Vignali
e1121f9723
checkasm/llviddsp : add test for add_gradient_pred
7 years ago
Martin Vignali
5bda11e70e
checkasm/llviddsp : test return of add_left_pred(16)
7 years ago
Martin Vignali
179a2f04eb
checkasm/vf_threshold : add test for threshold16
7 years ago
James Almer
1b324700e3
checkasm/vf_threshold: fix mixed code and declarations
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Martin Vignali
cfce442750
checkasm/vf_threshold : add checkasm test for threshold8
7 years ago
Martin Vignali
9bed17cd0f
checkasm/utvideo : be more explicit to the WIDTH_PADDED define
7 years ago
Michael Niedermayer
38f966b222
tests/checkasm/float_dsp: Increase allowed difference for float_dsp.vector_dmul
...
Tested for 10000 iterations on x86-32
Fixes: Ticket6848
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
James Almer
bea8eeaa2c
checkasm/utvideodsp: zero initialize the entire buffer
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
9a05c873cf
checkasm/utvideodsp: fix mixed declarations and code
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Martin Vignali
4a6aa6d1b2
checkasm : add test for huffyuvdsp add_int16
7 years ago
Martin Vignali
6a7eb65e1b
checkasm : add utvideodsp test
7 years ago
James Almer
501435e5e6
checkasm/jpeg2000dsp: add test for ict_float
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago