diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-07-09 03:10:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-08-11 12:06:40 +0200 |
commit | 86cbffdc4db268bab0d798dca1e30dc46606dad0 (patch) | |
tree | e77fae038b108993c9613de3a9090d49b6f59abb /libavcodec/tests | |
parent | 4116b2b136f5c278cf58182a7a990566b96ac306 (diff) | |
download | ffmpeg-86cbffdc4db268bab0d798dca1e30dc46606dad0.tar.gz |
avcodec/tests/dct: Add peak mean error check
based on quotes of IEEE 1180 / ISO/IEC 23002-1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/tests')
-rw-r--r-- | libavcodec/tests/dct.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/tests/dct.c b/libavcodec/tests/dct.c index 29af3fea8a..cf71b96508 100644 --- a/libavcodec/tests/dct.c +++ b/libavcodec/tests/dct.c @@ -244,6 +244,8 @@ static int dct_error(const struct algo *dct, int test, int is_idct, int speed, c ome = (double) err_sum / NB_ITS / 64; spec_err = is_idct && (err_inf > 1 || omse > 0.02 || fabs(ome) > 0.0015); + if (test < 2) + spec_err = is_idct && ((double) sysErrMax / NB_ITS > 0.015); printf("%s %s: max_err=%d omse=%0.8f ome=%0.8f syserr=%0.8f maxout=%d blockSumErr=%d\n", is_idct ? "IDCT" : "DCT", dct->name, err_inf, |