summaryrefslogtreecommitdiff
path: root/libavcodec/acelp_pitch_delay.h
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-12-29 17:14:30 +0000
committerReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>2008-12-29 17:14:30 +0000
commit275131628d12392d6ea40aa63e557290d13088e4 (patch)
treed6e86582261d3312bee309e83c855385fc3e1417 /libavcodec/acelp_pitch_delay.h
parent0a11fc82ae4e488d9802ea15c79711e71813c48a (diff)
Remove duplicated dot product code. Use dsputil's
scalarproduct instead. Patch by Aurelien Jacobs. Originally committed as revision 16391 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/acelp_pitch_delay.h')
-rw-r--r--libavcodec/acelp_pitch_delay.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/acelp_pitch_delay.h b/libavcodec/acelp_pitch_delay.h
index be5ac09432..2504a9e3dd 100644
--- a/libavcodec/acelp_pitch_delay.h
+++ b/libavcodec/acelp_pitch_delay.h
@@ -24,6 +24,7 @@
#define AVCODEC_ACELP_PITCH_DELAY_H
#include <stdint.h>
+#include "dsputil.h"
#define PITCH_DELAY_MIN 20
#define PITCH_DELAY_MAX 143
@@ -140,6 +141,7 @@ void ff_acelp_update_past_gain(
/**
* \brief Decode the adaptive codebook gain and add
* correction (4.1.5 and 3.9.1 of G.729).
+ * \param dsp initialized dsputil context
* \param gain_corr_factor gain correction factor (2.13)
* \param fc_v fixed-codebook vector (2.13)
* \param mr_energy mean innovation energy and fixed-point correction (7.13)
@@ -209,6 +211,7 @@ void ff_acelp_update_past_gain(
* \remark The routine is used in G.729 and AMR (all modes).
*/
int16_t ff_acelp_decode_gain_code(
+ DSPContext *dsp,
int gain_corr_factor,
const int16_t* fc_v,
int mr_energy,