]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavcodec/acelp_vectors.h
Fix segault
[frescor/ffmpeg.git] / libavcodec / acelp_vectors.h
index ae6c0b23c3f3517e20e5281c923d2885f3cd491c..3a47a7b61cce1dda5c88d8c8ebc24b23ece0a508 100644 (file)
@@ -20,8 +20,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_ACELP_VECTORS_H
-#define FFMPEG_ACELP_VECTORS_H
+#ifndef AVCODEC_ACELP_VECTORS_H
+#define AVCODEC_ACELP_VECTORS_H
 
 #include <stdint.h>
 
@@ -150,4 +150,18 @@ void ff_acelp_weighted_vector_sum(
         int shift,
         int length);
 
-#endif /* FFMPEG_ACELP_VECTORS_H */
+/**
+ * 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 */