Mercurial > libavcodec.hg
diff dca.c @ 11592:18f17f44de37 libavcodec
Make synth_filter a function pointer
| author | mru |
|---|---|
| date | Sat, 10 Apr 2010 16:27:53 +0000 |
| parents | 59a801bfc636 |
| children | 93db59ec6eb7 |
line wrap: on
line diff
--- a/dca.c Sat Apr 10 16:27:47 2010 +0000 +++ b/dca.c Sat Apr 10 16:27:53 2010 +0000 @@ -253,6 +253,7 @@ int debug_flag; ///< used for suppressing repeated error messages output DSPContext dsp; FFTContext imdct; + SynthFilterContext synth; } DCAContext; static const uint16_t dca_vlc_offs[] = { @@ -775,7 +776,7 @@ for (; i < 32; i++) s->raXin[i] = 0.0; - ff_synth_filter_float(&s->imdct, + s->synth.synth_filter_float(&s->imdct, s->subband_fir_hist[chans], &s->hist_index[chans], s->subband_fir_noidea[chans], prCoeff, samples_out, s->raXin, scale, bias); @@ -1298,6 +1299,7 @@ dsputil_init(&s->dsp, avctx); ff_mdct_init(&s->imdct, 6, 1, 1.0); + ff_synth_filter_init(&s->synth); for(i = 0; i < 6; i++) s->samples_chanptr[i] = s->samples + i * 256;
