From 1fb0d4b8a65bc0b631ea2afdb2e0b80800efe82f Mon Sep 17 00:00:00 2001 From: Kenan Gillet Date: Thu, 30 Oct 2008 21:05:37 +0000 Subject: [PATCH] Add a LPC filter Part of the QCELP patch by Kenan Gillet, kenan.gillet gmail com Originally committed as revision 15754 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/celp_filters.c | 21 +++++++++++++++++++++ libavcodec/celp_filters.h | 24 ++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/libavcodec/celp_filters.c b/libavcodec/celp_filters.c index 758c9b0a90..3d983c4f75 100644 --- a/libavcodec/celp_filters.c +++ b/libavcodec/celp_filters.c @@ -84,3 +84,24 @@ int ff_celp_lp_synthesis_filter( return 0; } + +void ff_celp_lp_synthesis_filterf( + float *out, + const float* filter_coeffs, + const float* in, + int buffer_length, + int filter_length) +{ + int i,n; + + // These two lines are to avoid a -1 subtraction in the main loop + filter_length++; + filter_coeffs--; + + for(n=0; n