From 95e83257715818d113724eb92035f4e685d1ec11 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Mon, 9 Mar 2009 21:55:24 +0000 Subject: Functional part Kenan Gillet's 'extract and share weighted_vector_sumf' patchset. Idea is to share this common code between the AMR and QCELP decoders. Originally committed as revision 17916 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/acelp_vectors.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libavcodec/acelp_vectors.c') diff --git a/libavcodec/acelp_vectors.c b/libavcodec/acelp_vectors.c index cae6318fa0..5443006718 100644 --- a/libavcodec/acelp_vectors.c +++ b/libavcodec/acelp_vectors.c @@ -145,3 +145,13 @@ void ff_acelp_weighted_vector_sum( in_b[i] * weight_coeff_b + rounder) >> shift); } + +void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b, + float weight_coeff_a, float weight_coeff_b, int length) +{ + int i; + + for(i=0; i