diff options
author | Mohamed Naufal <naufal22@gmail.com> | 2015-11-23 17:10:54 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-11-30 10:58:46 -0500 |
commit | f023d57d355ff3b917f1aad9b03db5c293ec4244 (patch) | |
tree | 3eb9a1def012f48b9678e30428767c5c361d7508 /libavcodec/celp_math.h | |
parent | 165cc6fb9defcd79fd71c08167f3e8df26b058ff (diff) | |
download | ffmpeg-f023d57d355ff3b917f1aad9b03db5c293ec4244.tar.gz |
lavc: G.723.1 encoder
Additional improvements by Michael Niedermayer <michaelni@gmx.at>.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
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 |