mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-01-20 19:06:02 +00:00
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>
This commit is contained in:
parent
4116b2b136
commit
86cbffdc4d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user