~ubuntu-branches/debian/experimental/libav/experimental

« back to all changes in this revision

Viewing changes to libavcodec/acelp_pitch_delay.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-08-10 09:45:02 UTC
  • mfrom: (1.3.14)
  • mto: (1.3.16)
  • mto: This revision was merged to the branch mainline in revision 41.
  • Revision ID: package-import@ubuntu.com-20140810094502-mmdupdml8tixclg2
Tags: upstream-11~alpha1
ImportĀ upstreamĀ versionĀ 11~alpha1

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "avcodec.h"
27
27
#include "acelp_pitch_delay.h"
28
28
#include "celp_math.h"
 
29
#include "audiodsp.h"
29
30
 
30
31
int ff_acelp_decode_8bit_to_1st_delay3(int ac_index)
31
32
{
90
91
}
91
92
 
92
93
int16_t ff_acelp_decode_gain_code(
93
 
    DSPContext *dsp,
 
94
    AudioDSPContext *adsp,
94
95
    int gain_corr_factor,
95
96
    const int16_t* fc_v,
96
97
    int mr_energy,
107
108
        mr_energy += quant_energy[i] * ma_prediction_coeff[i];
108
109
 
109
110
    mr_energy = gain_corr_factor * exp(M_LN10 / (20 << 23) * mr_energy) /
110
 
                sqrt(dsp->scalarproduct_int16(fc_v, fc_v, subframe_size));
 
111
                sqrt(adsp->scalarproduct_int16(fc_v, fc_v, subframe_size));
111
112
    return mr_energy >> 12;
112
113
}
113
114