Mercurial > libavcodec.hg
comparison fft-test.c @ 12389:77dfabe0d66f libavcodec
fft-test: format error output more readably
author | mru |
---|---|
date | Mon, 16 Aug 2010 20:34:06 +0000 |
parents | 71b2c440157d |
children |
comparison
equal
deleted
inserted
replaced
12388:908559b5bd7c | 12389:77dfabe0d66f |
---|---|
184 int err = 0; | 184 int err = 0; |
185 | 185 |
186 for (i = 0; i < n; i++) { | 186 for (i = 0; i < n; i++) { |
187 double e= fabsf(tab1[i] - (tab2[i] / scale)); | 187 double e= fabsf(tab1[i] - (tab2[i] / scale)); |
188 if (e >= 1e-3) { | 188 if (e >= 1e-3) { |
189 av_log(NULL, AV_LOG_ERROR, "ERROR %d: %f %f\n", | 189 av_log(NULL, AV_LOG_ERROR, "ERROR %5d: %10.6f %10.6f\n", |
190 i, tab1[i], tab2[i]); | 190 i, tab1[i], tab2[i]); |
191 err = 1; | 191 err = 1; |
192 } | 192 } |
193 error+= e*e; | 193 error+= e*e; |
194 if(e>max) max= e; | 194 if(e>max) max= e; |