diff acelp_vectors.h @ 9156:139d30c8c274 libavcodec

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.
author reynaldo
date Mon, 09 Mar 2009 21:55:24 +0000
parents c4a4495715dd
children 9f35b262d3f0
line wrap: on
line diff
--- a/acelp_vectors.h	Mon Mar 09 08:04:41 2009 +0000
+++ b/acelp_vectors.h	Mon Mar 09 21:55:24 2009 +0000
@@ -150,4 +150,18 @@
         int shift,
         int length);
 
+/**
+ * float implementation of weighted sum of two vectors.
+ * @param out [out] result of addition
+ * @param in_a first vector
+ * @param in_b second vector
+ * @param weight_coeff_a first vector weight coefficient
+ * @param weight_coeff_a second vector weight coefficient
+ * @param length vectors length
+ *
+ * @note It is safe to pass the same buffer for out and in_a or in_b.
+ */
+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);
+
 #endif /* AVCODEC_ACELP_VECTORS_H */