• Home
  • Raw
  • Download

Lines Matching refs:gain

195 static void decode_gain_and_index(QCELPContext *q, float *gain)  in decode_gain_and_index()  argument
212 gain[i] = qcelp_g12ga[g1[i]]; in decode_gain_and_index()
215 gain[i] = -gain[i]; in decode_gain_and_index()
226 gain[7] = gain[4]; in decode_gain_and_index()
227 gain[6] = 0.4 * gain[3] + 0.6 * gain[4]; in decode_gain_and_index()
228 gain[5] = gain[3]; in decode_gain_and_index()
229 gain[4] = 0.8 * gain[2] + 0.2 * gain[3]; in decode_gain_and_index()
230 gain[3] = 0.2 * gain[1] + 0.8 * gain[2]; in decode_gain_and_index()
231 gain[2] = gain[1]; in decode_gain_and_index()
232 gain[1] = 0.6 * gain[0] + 0.4 * gain[1]; in decode_gain_and_index()
256 gain[i - 1] = q->last_codebook_gain + slope * i; in decode_gain_and_index()
258 q->last_codebook_gain = gain[i - 2]; in decode_gain_and_index()
309 static void compute_svector(QCELPContext *q, const float *gain, in compute_svector() argument
319 tmp_gain = gain[i] * QCELP_RATE_FULL_CODEBOOK_RATIO; in compute_svector()
328 tmp_gain = gain[i] * QCELP_RATE_HALF_CODEBOOK_RATIO; in compute_svector()
343 tmp_gain = gain[i] * (QCELP_SQRT1887 / 32768.0); in compute_svector()
365 tmp_gain = gain[i] * (QCELP_SQRT1887 / 32768.0); in compute_svector()
375 tmp_gain = gain[i] * QCELP_RATE_FULL_CODEBOOK_RATIO; in compute_svector()
424 const float gain[4], const uint8_t *lag, in do_pitchfilter()
434 if (gain[i]) { in do_pitchfilter()
444 *v_out = *v_in + gain[i] * *v_out; in do_pitchfilter()
696 float gain[16]; in qcelp_decode_frame() local
751 decode_gain_and_index(q, gain); in qcelp_decode_frame()
752 compute_svector(q, gain, outbuffer); in qcelp_decode_frame()
765 decode_gain_and_index(q, gain); in qcelp_decode_frame()
766 compute_svector(q, gain, outbuffer); in qcelp_decode_frame()