comparison wmaprodec.c @ 10827:3d011a01a6a0 libavcodec

Add support for hard-coded MDCT-related ff_sine_windows tables.
author reimar
date Sat, 09 Jan 2010 13:28:04 +0000
parents 99a26e9d6e1b
children 34a65026fa06
comparison
equal deleted inserted replaced
10826:59c35482189e 10827:3d011a01a6a0
423 1.0 / (1 << (BLOCK_MIN_BITS + i - 1)) 423 1.0 / (1 << (BLOCK_MIN_BITS + i - 1))
424 / (1 << (s->bits_per_sample - 1))); 424 / (1 << (s->bits_per_sample - 1)));
425 425
426 /** init MDCT windows: simple sinus window */ 426 /** init MDCT windows: simple sinus window */
427 for (i = 0; i < WMAPRO_BLOCK_SIZES; i++) { 427 for (i = 0; i < WMAPRO_BLOCK_SIZES; i++) {
428 const int n = 1 << (WMAPRO_BLOCK_MAX_BITS - i);
429 const int win_idx = WMAPRO_BLOCK_MAX_BITS - i; 428 const int win_idx = WMAPRO_BLOCK_MAX_BITS - i;
430 ff_sine_window_init(ff_sine_windows[win_idx], n); 429 ff_init_ff_sine_windows(win_idx);
431 s->windows[WMAPRO_BLOCK_SIZES - i - 1] = ff_sine_windows[win_idx]; 430 s->windows[WMAPRO_BLOCK_SIZES - i - 1] = ff_sine_windows[win_idx];
432 } 431 }
433 432
434 /** calculate subwoofer cutoff values */ 433 /** calculate subwoofer cutoff values */
435 for (i = 0; i < num_possible_block_sizes; i++) { 434 for (i = 0; i < num_possible_block_sizes; i++) {