comparison ra288.c @ 7372:e97d0795ee70 libavcodec

Rename update() function to backward_filter() and add a doxy comment
author vitor
date Thu, 24 Jul 2008 04:29:23 +0000
parents c6c6b6236ff3
children 981b14d8b0e9
comparison
equal deleted inserted replaced
7371:c6c6b6236ff3 7372:e97d0795ee70
182 182
183 /* Multiply by the white noise correcting factor (WNCF) */ 183 /* Multiply by the white noise correcting factor (WNCF) */
184 *out *= 257./256.; 184 *out *= 257./256.;
185 } 185 }
186 186
187 static void update(Real288_internal *glob) 187 /**
188 * Backward synthesis filter. Find the LPC coefficients from past speech data.
189 */
190 static void backward_filter(Real288_internal *glob)
188 { 191 {
189 float buffer1[40], temp1[37]; 192 float buffer1[40], temp1[37];
190 float buffer2[8], temp2[11]; 193 float buffer2[8], temp2[11];
191 194
192 memcpy(buffer1 , glob->output + 20, 20*sizeof(*buffer1)); 195 memcpy(buffer1 , glob->output + 20, 20*sizeof(*buffer1));
235 238
236 for (y=0; y < 5; y++) 239 for (y=0; y < 5; y++)
237 *(out++) = 8 * glob->output[glob->phase*5 + y]; 240 *(out++) = 8 * glob->output[glob->phase*5 + y];
238 241
239 if (glob->phase == 3) 242 if (glob->phase == 3)
240 update(glob); 243 backward_filter(glob);
241 } 244 }
242 245
243 *data_size = (char *)out - (char *)data; 246 *data_size = (char *)out - (char *)data;
244 return avctx->block_align; 247 return avctx->block_align;
245 } 248 }