From 7d485f165f7f6313002da1fe67c2742f0fbb16c9 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Sat, 16 May 2009 14:17:08 +0000 Subject: 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. Originally committed as revision 18855 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/dsputil.h') diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 9dc89409c4..f54d74d285 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -771,7 +771,7 @@ extern float ff_sine_2048[2048]; extern float ff_sine_4096[4096]; extern float *ff_sine_windows[6]; -int ff_mdct_init(MDCTContext *s, int nbits, int inverse); +int ff_mdct_init(MDCTContext *s, int nbits, int inverse, double scale); void ff_imdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input); void ff_imdct_half_c(MDCTContext *s, FFTSample *output, const FFTSample *input); void ff_imdct_calc_3dn(MDCTContext *s, FFTSample *output, const FFTSample *input); -- cgit v1.2.3