summaryrefslogtreecommitdiff
path: root/libavcodec/celp_math.h
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-12-07 15:50:45 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2015-12-07 15:50:45 +0100
commit90c93fb12948f0b00720df91961a09e187703060 (patch)
tree6da306f52459e1178c7d75c058b0389b49db6d89 /libavcodec/celp_math.h
parent6c9cc21bcca952ca86a6cf08376afa9f3b7a2034 (diff)
parentf023d57d355ff3b917f1aad9b03db5c293ec4244 (diff)
downloadffmpeg-90c93fb12948f0b00720df91961a09e187703060.tar.gz
Merge commit 'f023d57d355ff3b917f1aad9b03db5c293ec4244'
* commit 'f023d57d355ff3b917f1aad9b03db5c293ec4244': lavc: G.723.1 encoder Split existing FFmpeg G.723.1 encoder into a new file. Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/celp_math.h')
-rw-r--r--libavcodec/celp_math.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/celp_math.h b/libavcodec/celp_math.h
index 18d3ad94d1..18888a425d 100644
--- a/libavcodec/celp_math.h
+++ b/libavcodec/celp_math.h
@@ -62,6 +62,16 @@ int ff_exp2(uint16_t power);
int ff_log2_q15(uint32_t value);
/**
+ * Calculate the dot product of 2 int16_t vectors.
+ * @param a input data array
+ * @param b input data array
+ * @param length number of elements
+ *
+ * @return dot product = sum of elementwise products
+ */
+int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length);
+
+/**
* Shift value left or right depending on sign of offset parameter.
* @param value value to shift
* @param offset shift offset
@@ -75,16 +85,6 @@ 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
- *
- * @return dot product = sum of elementwise products
- */
-int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length);
-
-/**
* Return the dot product.
* @param a input data array
* @param b input data array