summaryrefslogtreecommitdiff
path: root/libavcodec/celp_math.h
diff options
context:
space:
mode:
authorMohamed Naufal Basheer <naufal11@gmail.com>2011-03-17 23:56:48 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-09-29 21:44:03 +0200
commita82c6238ae286c12318e5ad512107b86ec337369 (patch)
tree44ff0fe97f63a9312722cc62b6a054044ba5c62d /libavcodec/celp_math.h
parentbcc67dffa0e40602f2ce3240e831db173fe939a1 (diff)
downloadffmpeg-a82c6238ae286c12318e5ad512107b86ec337369.tar.gz
Add dot_product function for use by the G.723.1 decoder
Diffstat (limited to 'libavcodec/celp_math.h')
-rw-r--r--libavcodec/celp_math.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/celp_math.h b/libavcodec/celp_math.h
index 4cf656fb7e..476e668795 100644
--- a/libavcodec/celp_math.h
+++ b/libavcodec/celp_math.h
@@ -64,6 +64,17 @@ static inline int bidir_sal(int value, int offset)
}
/**
+ * returns the dot product of 2 int16_t vectors.
+ * @param a input data array
+ * @param b input data array
+ * @param length number of elements
+ * @param shift the result is scaled by 2^shift
+ *
+ * @return dot product = sum of elementwise products
+ */
+int ff_dot_product(const int16_t *a, const int16_t *b, int length, int shift);
+
+/**
* returns the dot product.
* @param a input data array
* @param b input data array