Revision e6e98234 libavcodec/ac3enc_fixed.c
libavcodec/ac3enc_fixed.c | ||
---|---|---|
252 | 252 |
* Apply KBD window to input samples prior to MDCT. |
253 | 253 |
*/ |
254 | 254 |
static void apply_window(DSPContext *dsp, int16_t *output, const int16_t *input, |
255 |
const int16_t *window, int n)
|
|
255 |
const int16_t *window, unsigned int len)
|
|
256 | 256 |
{ |
257 |
int i; |
|
258 |
int n2 = n >> 1; |
|
259 |
|
|
260 |
for (i = 0; i < n2; i++) { |
|
261 |
output[i] = MUL16(input[i], window[i]) >> 15; |
|
262 |
output[n-i-1] = MUL16(input[n-i-1], window[i]) >> 15; |
|
263 |
} |
|
257 |
dsp->apply_window_int16(output, input, window, len); |
|
264 | 258 |
} |
265 | 259 |
|
266 | 260 |
|
Also available in: Unified diff