diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-01-16 17:30:19 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-06-22 06:20:15 -0700 |
commit | 9a9e2f1c8aa4539a261625145e5c1f46a8106ac2 (patch) | |
tree | 8df94d9ee621e07b5e5f9aad954cc68d92105e88 /libavcodec/acelp_pitch_delay.c | |
parent | ca1e36a8e4cd416142487071dbca734567bdaddf (diff) | |
download | ffmpeg-9a9e2f1c8aa4539a261625145e5c1f46a8106ac2.tar.gz |
dsputil: Split audio operations off into a separate context
Diffstat (limited to 'libavcodec/acelp_pitch_delay.c')
-rw-r--r-- | libavcodec/acelp_pitch_delay.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/acelp_pitch_delay.c b/libavcodec/acelp_pitch_delay.c index ab09bdb6c5..19657729ce 100644 --- a/libavcodec/acelp_pitch_delay.c +++ b/libavcodec/acelp_pitch_delay.c @@ -26,6 +26,7 @@ #include "avcodec.h" #include "acelp_pitch_delay.h" #include "celp_math.h" +#include "audiodsp.h" int ff_acelp_decode_8bit_to_1st_delay3(int ac_index) { @@ -90,7 +91,7 @@ void ff_acelp_update_past_gain( } int16_t ff_acelp_decode_gain_code( - DSPContext *dsp, + AudioDSPContext *adsp, int gain_corr_factor, const int16_t* fc_v, int mr_energy, @@ -107,7 +108,7 @@ int16_t ff_acelp_decode_gain_code( mr_energy += quant_energy[i] * ma_prediction_coeff[i]; mr_energy = gain_corr_factor * exp(M_LN10 / (20 << 23) * mr_energy) / - sqrt(dsp->scalarproduct_int16(fc_v, fc_v, subframe_size)); + sqrt(adsp->scalarproduct_int16(fc_v, fc_v, subframe_size)); return mr_energy >> 12; } |