Mercurial > libavcodec.hg
comparison fft-test.c @ 9658:67a20f0eb42c libavcodec
Support for getting (i)MDCT output multiplied by a constant scaling factor.
Scaling (i)MDCT output has no runtime overhead and can be used to improve
performance of audio codecs. All the changes are only needed in
'ff_mdct_init' function and slow down initialization a bit.
author | serge |
---|---|
date | Sat, 16 May 2009 14:17:08 +0000 |
parents | 2313bf51945b |
children | dac20d8df581 |
comparison
equal
deleted
inserted
replaced
9657:8a65ae8929fb | 9658:67a20f0eb42c |
---|---|
221 if (do_mdct) { | 221 if (do_mdct) { |
222 if (do_inverse) | 222 if (do_inverse) |
223 av_log(NULL, AV_LOG_INFO,"IMDCT"); | 223 av_log(NULL, AV_LOG_INFO,"IMDCT"); |
224 else | 224 else |
225 av_log(NULL, AV_LOG_INFO,"MDCT"); | 225 av_log(NULL, AV_LOG_INFO,"MDCT"); |
226 ff_mdct_init(m, fft_nbits, do_inverse); | 226 ff_mdct_init(m, fft_nbits, do_inverse, 1.0); |
227 } else { | 227 } else { |
228 if (do_inverse) | 228 if (do_inverse) |
229 av_log(NULL, AV_LOG_INFO,"IFFT"); | 229 av_log(NULL, AV_LOG_INFO,"IFFT"); |
230 else | 230 else |
231 av_log(NULL, AV_LOG_INFO,"FFT"); | 231 av_log(NULL, AV_LOG_INFO,"FFT"); |