Mercurial > libavcodec.hg
comparison dca.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 | b9216a975c7f |
children | ed85bbd5dccb |
comparison
equal
deleted
inserted
replaced
9657:8a65ae8929fb | 9658:67a20f0eb42c |
---|---|
1316 | 1316 |
1317 s->avctx = avctx; | 1317 s->avctx = avctx; |
1318 dca_init_vlcs(); | 1318 dca_init_vlcs(); |
1319 | 1319 |
1320 dsputil_init(&s->dsp, avctx); | 1320 dsputil_init(&s->dsp, avctx); |
1321 ff_mdct_init(&s->imdct, 6, 1); | 1321 ff_mdct_init(&s->imdct, 6, 1, 1.0); |
1322 | 1322 |
1323 for(i = 0; i < 6; i++) | 1323 for(i = 0; i < 6; i++) |
1324 s->samples_chanptr[i] = s->samples + i * 256; | 1324 s->samples_chanptr[i] = s->samples + i * 256; |
1325 avctx->sample_fmt = SAMPLE_FMT_S16; | 1325 avctx->sample_fmt = SAMPLE_FMT_S16; |
1326 | 1326 |