ffmpeg/tests
Martin Storsjö f4d8fad802 dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision
This fixes tests on 32 bit x86 mingw with clang, which uses x87
fpu by default.

In this setup, while the get_expected function is declared to
return float, the compiler is (especially given the optimization
flags set) free to keep the intermediate values (in this case,
the return value from the inlined function) in higher precision.

This results in the situation where 7.28 (which actually, as
a float, ends up as 7.2800002098), multiplied by 100, is
728.000000 when really forced into a 32 bit float, but 728.000021
when kept with higher intermediate precision.

For the multiplication case, a more suitable epsilon would e.g.
be 2*FLT_EPSILON*fabs(expected_output), but just increase the
current hardcoded threshold for now.

Signed-off-by: Martin Storsjö <martin@martin.st>
2020-04-24 14:41:06 +03:00
..
api
checkasm tests/checkasm: add overflow test for hevc_add_res 2020-03-27 10:57:40 +01:00
dnn dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision 2020-04-24 14:41:06 +03:00
fate avformat/matroskaenc: Don't waste bytes on length fields 2020-04-21 08:11:09 +02:00
filtergraphs
ref avformat/matroskaenc: Redo handling of FlagDefault 2020-04-21 08:36:20 +02:00
.gitignore
Makefile fate: move TrueHD tests to their own file 2020-04-20 13:53:42 -03:00
audiogen.c
audiomatch.c
base64.c
copycooker.sh
extended.ffconcat
fate-run.sh fate: Allow to test temporary files with ffprobe 2020-04-19 00:13:40 +02:00
fate-valgrind.supp
fate.sh
md5.sh
refcmp-metadata.awk
reference.pnm
rotozoom.c
simple1.ffconcat
simple2.ffconcat
test.ffmeta
tiny_psnr.c
tiny_ssim.c
utils.c
videogen.c