diff options
Diffstat (limited to 'libavcodec/celp_math.h')
-rw-r--r-- | libavcodec/celp_math.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/celp_math.h b/libavcodec/celp_math.h index ed3f8c0fe2..9cebdfe695 100644 --- a/libavcodec/celp_math.h +++ b/libavcodec/celp_math.h @@ -43,6 +43,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 |