summaryrefslogtreecommitdiff
path: root/libavcodec/celp_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/celp_math.h')
-rw-r--r--libavcodec/celp_math.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavcodec/celp_math.h b/libavcodec/celp_math.h
index ec62a9ea09..16cc19ccd7 100644
--- a/libavcodec/celp_math.h
+++ b/libavcodec/celp_math.h
@@ -25,6 +25,25 @@
#include <stdint.h>
+typedef struct CELPMContext {
+ /**
+ * Return the dot product.
+ * @param a input data array
+ * @param b input data array
+ * @param length number of elements
+ *
+ * @return dot product = sum of elementwise products
+ */
+ float (*dot_productf)(const float* a, const float* b, int length);
+
+}CELPMContext;
+
+/**
+ * Initialize CELPMContext.
+ */
+void ff_celp_math_init(CELPMContext *c);
+void ff_celp_math_init_mips(CELPMContext *c);
+
/**
* fixed-point implementation of cosine in [0; PI) domain.
* @param arg fixed-point cosine argument, 0 <= arg < 0x4000