Mercurial > libavcodec.hg
comparison ac3dec.c @ 6142:a35b838ab955 libavcodec
Add variable alpha and size of half window for Kaiser-Bessel Derived window
generation. Hard code Bessel I0 approximation iterations to 50.
See thread for discussion:
[FFmpeg-devel] [PATCH] Move Kaiser-Bessel Derived window to mdct.c
Started on the 2008/01/10
author | superdump |
---|---|
date | Sun, 13 Jan 2008 11:02:08 +0000 |
parents | 5077d1562573 |
children | de7502093922 |
comparison
equal
deleted
inserted
replaced
6141:932523fb0562 | 6142:a35b838ab955 |
---|---|
275 | 275 |
276 ac3_common_init(); | 276 ac3_common_init(); |
277 ac3_tables_init(); | 277 ac3_tables_init(); |
278 ff_mdct_init(&s->imdct_256, 8, 1); | 278 ff_mdct_init(&s->imdct_256, 8, 1); |
279 ff_mdct_init(&s->imdct_512, 9, 1); | 279 ff_mdct_init(&s->imdct_512, 9, 1); |
280 ff_kbd_window_init(s->window); | 280 ff_kbd_window_init(s->window, 5.0, 256); |
281 dsputil_init(&s->dsp, avctx); | 281 dsputil_init(&s->dsp, avctx); |
282 av_init_random(0, &s->dith_state); | 282 av_init_random(0, &s->dith_state); |
283 | 283 |
284 /* set bias values for float to int16 conversion */ | 284 /* set bias values for float to int16 conversion */ |
285 if(s->dsp.float_to_int16 == ff_float_to_int16_c) { | 285 if(s->dsp.float_to_int16 == ff_float_to_int16_c) { |