Mercurial > libavcodec.hg
comparison ac3dec.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 | f3c6d57a50aa |
children | b4350a6fb24a |
comparison
equal
deleted
inserted
replaced
9657:8a65ae8929fb | 9658:67a20f0eb42c |
---|---|
192 AC3DecodeContext *s = avctx->priv_data; | 192 AC3DecodeContext *s = avctx->priv_data; |
193 s->avctx = avctx; | 193 s->avctx = avctx; |
194 | 194 |
195 ac3_common_init(); | 195 ac3_common_init(); |
196 ac3_tables_init(); | 196 ac3_tables_init(); |
197 ff_mdct_init(&s->imdct_256, 8, 1); | 197 ff_mdct_init(&s->imdct_256, 8, 1, 1.0); |
198 ff_mdct_init(&s->imdct_512, 9, 1); | 198 ff_mdct_init(&s->imdct_512, 9, 1, 1.0); |
199 ff_kbd_window_init(s->window, 5.0, 256); | 199 ff_kbd_window_init(s->window, 5.0, 256); |
200 dsputil_init(&s->dsp, avctx); | 200 dsputil_init(&s->dsp, avctx); |
201 av_lfg_init(&s->dith_state, 0); | 201 av_lfg_init(&s->dith_state, 0); |
202 | 202 |
203 /* set bias values for float to int16 conversion */ | 203 /* set bias values for float to int16 conversion */ |