aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/acelp_vectors.h
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>2009-03-09 21:55:24 +0000
committerReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>2009-03-09 21:55:24 +0000
commit95e83257715818d113724eb92035f4e685d1ec11 (patch)
treec0bf7092251919b30fc7610f3c513078f077240d /libavcodec/acelp_vectors.h
parent88c4339bda6f2ad0e6e431b5c45e32d44d44a344 (diff)
downloadffmpeg-95e83257715818d113724eb92035f4e685d1ec11.tar.gz
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
Diffstat (limited to 'libavcodec/acelp_vectors.h')
-rw-r--r--libavcodec/acelp_vectors.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/acelp_vectors.h b/libavcodec/acelp_vectors.h
index a5e71fc128..3a47a7b61c 100644
--- a/libavcodec/acelp_vectors.h
+++ b/libavcodec/acelp_vectors.h
@@ -150,4 +150,18 @@ void ff_acelp_weighted_vector_sum(
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 */