Revision a3896c63
libavcodec/ra288.c  

97  97 
*(tgt++) = (*(m1++)) * (*(m2++)); 
98  98 
} 
99  99  
100 
static int pred(const float *in, float *tgt, int n) 

100 
/** 

101 
* Converts autocorrelation coefficients to LPC coefficients using the 

102 
* LevinsonDurbin algorithm. See blocks 37 and 50 of the G.728 specification. 

103 
* 

104 
* @return 1 if success, 0 if fail 

105 
*/ 

106 
static int eval_lpc_coeffs(const float *in, float *tgt, int n) 

101  107 
{ 
102  108 
int x, y; 
103  109 
double f0, f1, f2; 
...  ...  
189  195 
do_hybrid_window(36, 40, 35, buffer1, temp1, glob>st1a, glob>st1b, 
190  196 
syn_window); 
191  197  
192 
if (pred(temp1, glob>st1, 36))


198 
if (eval_lpc_coeffs(temp1, glob>st1, 36))


193  199 
colmult(glob>pr1, glob>st1, table1a, 36); 
194  200  
195  201 
memcpy(buffer2 , glob>history + 4, 4*sizeof(*buffer2)); 
...  ...  
198  204 
do_hybrid_window(10, 8, 20, buffer2, temp2, glob>st2a, glob>st2b, 
199  205 
gain_window); 
200  206  
201 
if (pred(temp2, glob>st2, 10))


207 
if (eval_lpc_coeffs(temp2, glob>st2, 10))


202  208 
colmult(glob>pr2, glob>st2, table2a, 10); 
203  209 
} 
204  210 
Also available in: Unified diff