diff options
author | Marc Hoffman <mmhoffm@gmail.com> | 2007-08-01 20:44:08 +0000 |
---|---|---|
committer | Marc Hoffman <mmhoffm@gmail.com> | 2007-08-01 20:44:08 +0000 |
commit | dc1ecb6a4afb737f04ca58a3825b20645ad8b1f1 (patch) | |
tree | fb5b9dfd340b000479f058a5608354c66864709d /libavcodec | |
parent | 356ab1dacecff522e74ef0e576b2e60fc1185405 (diff) | |
download | ffmpeg-dc1ecb6a4afb737f04ca58a3825b20645ad8b1f1.tar.gz |
making reference models have the same API
Originally committed as revision 9861 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/fft-test.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c index f0529c1b23..8ac04611aa 100644 --- a/libavcodec/fft-test.c +++ b/libavcodec/fft-test.c @@ -95,8 +95,9 @@ void fft_ref(FFTComplex *tabr, FFTComplex *tab, int nbits) } } -void imdct_ref(float *out, float *in, int n) +void imdct_ref(float *out, float *in, int nbits) { + int n = 1<<nbits; int k, i, a; double sum, f; @@ -112,8 +113,9 @@ void imdct_ref(float *out, float *in, int n) } /* NOTE: no normalisation by 1 / N is done */ -void mdct_ref(float *output, float *input, int n) +void mdct_ref(float *output, float *input, int nbits) { + int n = 1<<nbits; int k, i; double a, s; @@ -246,11 +248,11 @@ int main(int argc, char **argv) if (do_mdct) { if (do_inverse) { - imdct_ref((float *)tab_ref, (float *)tab1, fft_size); + imdct_ref((float *)tab_ref, (float *)tab1, fft_nbits); ff_imdct_calc(m, tab2, (float *)tab1, tabtmp); check_diff((float *)tab_ref, tab2, fft_size); } else { - mdct_ref((float *)tab_ref, (float *)tab1, fft_size); + mdct_ref((float *)tab_ref, (float *)tab1, fft_nbits); ff_mdct_calc(m, tab2, (float *)tab1, tabtmp); |