comparison nellymoserdec.c @ 6610:675f6d8e3f64 libavcodec

commutative law based cleanup
author michael
date Wed, 16 Apr 2008 14:55:11 +0000
parents f9aaf7429477
children 79c5af90afde
comparison
equal deleted inserted replaced
6609:f9aaf7429477 6610:675f6d8e3f64
119 bot = 0; 119 bot = 0;
120 top = NELLY_BUF_LEN-1; 120 top = NELLY_BUF_LEN-1;
121 121
122 while (bot < NELLY_BUF_LEN/2) { 122 while (bot < NELLY_BUF_LEN/2) {
123 audio[bot] = ( a_in[bot]*sine_window[bot]+state[bot]*sine_window[top])/s->scale_bias + s->add_bias; 123 audio[bot] = ( a_in[bot]*sine_window[bot]+state[bot]*sine_window[top])/s->scale_bias + s->add_bias;
124 audio[top] = (state[bot]*sine_window[bot]+ a_in[top]*sine_window[top])/s->scale_bias + s->add_bias; 124 audio[top] = ( a_in[top]*sine_window[top]+state[bot]*sine_window[bot])/s->scale_bias + s->add_bias;
125 state[bot] = a_in[bot + NELLY_BUF_LEN]; 125 state[bot] = a_in[bot + NELLY_BUF_LEN];
126 126
127 bot++; 127 bot++;
128 top--; 128 top--;
129 } 129 }