# HG changeset patch # User reynaldo # Date 1240095217 0 # Node ID 2838045383c5803a9ca03a68a59caae1c27ebd61 # Parent 41ab6db265d069bac27e68be16c34fe239040ec8 Add LP zero synthesis filter. Patch by Kenan Gillet. diff -r 41ab6db265d0 -r 2838045383c5 celp_filters.c --- a/celp_filters.c Sat Apr 18 20:23:13 2009 +0000 +++ b/celp_filters.c Sat Apr 18 22:53:37 2009 +0000 @@ -103,3 +103,23 @@ out[n] -= filter_coeffs[i-1] * out[n-i]; } } + +void ff_celp_lp_zero_synthesis_filterf( + float *out, + const float* filter_coeffs, + const float* in, + int buffer_length, + int filter_length) +{ + int i,n; + + // Avoids a +1 in the inner loop. + filter_length++; + + for(n=0; n