Mercurial > libavcodec.hg
comparison mdct.c @ 7546:97383e012cb9 libavcodec
remove mdct tmp buffer
author | lorenm |
---|---|
date | Tue, 12 Aug 2008 00:36:36 +0000 |
parents | 2dca9201c400 |
children | 8226017a65ae |
comparison
equal
deleted
inserted
replaced
7545:2dca9201c400 | 7546:97383e012cb9 |
---|---|
148 * Compute inverse MDCT of size N = 2^nbits | 148 * Compute inverse MDCT of size N = 2^nbits |
149 * @param output N samples | 149 * @param output N samples |
150 * @param input N/2 samples | 150 * @param input N/2 samples |
151 * @param tmp N/2 samples | 151 * @param tmp N/2 samples |
152 */ | 152 */ |
153 void ff_imdct_calc(MDCTContext *s, FFTSample *output, | 153 void ff_imdct_calc(MDCTContext *s, FFTSample *output, const FFTSample *input) |
154 const FFTSample *input, FFTSample *tmp) | |
155 { | 154 { |
156 int k; | 155 int k; |
157 int n = 1 << s->nbits; | 156 int n = 1 << s->nbits; |
158 int n2 = n >> 1; | 157 int n2 = n >> 1; |
159 int n4 = n >> 2; | 158 int n4 = n >> 2; |
170 * Compute MDCT of size N = 2^nbits | 169 * Compute MDCT of size N = 2^nbits |
171 * @param input N samples | 170 * @param input N samples |
172 * @param out N/2 samples | 171 * @param out N/2 samples |
173 * @param tmp temporary storage of N/2 samples | 172 * @param tmp temporary storage of N/2 samples |
174 */ | 173 */ |
175 void ff_mdct_calc(MDCTContext *s, FFTSample *out, | 174 void ff_mdct_calc(MDCTContext *s, FFTSample *out, const FFTSample *input) |
176 const FFTSample *input, FFTSample *tmp) | |
177 { | 175 { |
178 int i, j, n, n8, n4, n2, n3; | 176 int i, j, n, n8, n4, n2, n3; |
179 FFTSample re, im, re1, im1; | 177 FFTSample re, im; |
180 const uint16_t *revtab = s->fft.revtab; | 178 const uint16_t *revtab = s->fft.revtab; |
181 const FFTSample *tcos = s->tcos; | 179 const FFTSample *tcos = s->tcos; |
182 const FFTSample *tsin = s->tsin; | 180 const FFTSample *tsin = s->tsin; |
183 FFTComplex *x = (FFTComplex *)out; | 181 FFTComplex *x = (FFTComplex *)out; |
184 | 182 |