Mercurial > libavcodec.hg
comparison nellymoserdec.c @ 7546:97383e012cb9 libavcodec
remove mdct tmp buffer
author | lorenm |
---|---|
date | Tue, 12 Aug 2008 00:36:36 +0000 |
parents | 85ab7655ad4d |
children | 8226017a65ae |
comparison
equal
deleted
inserted
replaced
7545:2dca9201c400 | 7546:97383e012cb9 |
---|---|
48 GetBitContext gb; | 48 GetBitContext gb; |
49 int add_bias; | 49 int add_bias; |
50 float scale_bias; | 50 float scale_bias; |
51 DSPContext dsp; | 51 DSPContext dsp; |
52 MDCTContext imdct_ctx; | 52 MDCTContext imdct_ctx; |
53 DECLARE_ALIGNED_16(float,imdct_tmp[NELLY_BUF_LEN]); | |
54 DECLARE_ALIGNED_16(float,imdct_out[NELLY_BUF_LEN * 2]); | 53 DECLARE_ALIGNED_16(float,imdct_out[NELLY_BUF_LEN * 2]); |
55 } NellyMoserDecodeContext; | 54 } NellyMoserDecodeContext; |
56 | 55 |
57 static DECLARE_ALIGNED_16(float,sine_window[128]); | 56 static DECLARE_ALIGNED_16(float,sine_window[128]); |
58 | 57 |
118 } | 117 } |
119 } | 118 } |
120 memset(&aptr[NELLY_FILL_LEN], 0, | 119 memset(&aptr[NELLY_FILL_LEN], 0, |
121 (NELLY_BUF_LEN - NELLY_FILL_LEN) * sizeof(float)); | 120 (NELLY_BUF_LEN - NELLY_FILL_LEN) * sizeof(float)); |
122 | 121 |
123 s->imdct_ctx.fft.imdct_calc(&s->imdct_ctx, s->imdct_out, | 122 s->imdct_ctx.fft.imdct_calc(&s->imdct_ctx, s->imdct_out, aptr); |
124 aptr, s->imdct_tmp); | |
125 /* XXX: overlapping and windowing should be part of a more | 123 /* XXX: overlapping and windowing should be part of a more |
126 generic imdct function */ | 124 generic imdct function */ |
127 overlap_and_window(s, s->state, aptr, s->imdct_out); | 125 overlap_and_window(s, s->state, aptr, s->imdct_out); |
128 } | 126 } |
129 } | 127 } |