History

avcodec/tests/dct: Add peak mean error check

based on quotes of IEEE 1180 / ISO/IEC 23002-1

Michael Niedermayer committed 9 years ago

Commit 86cbffd1 parent 4116b2b1 file · +2 −0Browse files

Showing the changes to libavcodec/tests (1 of 1 file). Show all

Unified · Split

libavcodec/tests/dct.c+2−0
@@ -244,6 +244,8 @@ static int dct_error(const struct algo *dct, int test, int is_idct, int speed, c · 243 unmodified lines
244 ome = (double) err_sum / NB_ITS / 64;244 ome = (double) err_sum / NB_ITS / 64;
245 245
246 spec_err = is_idct && (err_inf > 1 || omse > 0.02 || fabs(ome) > 0.0015);246 spec_err = is_idct && (err_inf > 1 || omse > 0.02 || fabs(ome) > 0.0015);
247 if (test < 2)
248 spec_err = is_idct && ((double) sysErrMax / NB_ITS > 0.015);
247 249
248 printf("%s %s: max_err=%d omse=%0.8f ome=%0.8f syserr=%0.8f maxout=%d blockSumErr=%d\n",250 printf("%s %s: max_err=%d omse=%0.8f ome=%0.8f syserr=%0.8f maxout=%d blockSumErr=%d\n",
249 is_idct ? "IDCT" : "DCT", dct->name, err_inf,251 is_idct ? "IDCT" : "DCT", dct->name, err_inf,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t