Lines Matching refs:energy
445 int energy[5] = {0, 0, 0, 0, 0}; in comp_ppf_coeff() local
447 int fwd_lag = autocorr_max(buf, offset, &energy[1], pitch_lag, in comp_ppf_coeff()
449 int back_lag = autocorr_max(buf, offset, &energy[3], pitch_lag, in comp_ppf_coeff()
461 energy[0] = ff_g723_1_dot_product(buf, buf, SUBFRAME_LEN); in comp_ppf_coeff()
465 energy[2] = ff_g723_1_dot_product(buf + fwd_lag, buf + fwd_lag, in comp_ppf_coeff()
470 energy[4] = ff_g723_1_dot_product(buf - back_lag, buf - back_lag, in comp_ppf_coeff()
476 temp1 = FFMAX(energy[i], temp1); in comp_ppf_coeff()
480 energy[i] = (energy[i] << scale) >> 16; in comp_ppf_coeff()
483 comp_ppf_gains(fwd_lag, ppf, cur_rate, energy[0], energy[1], in comp_ppf_coeff()
484 energy[2]); in comp_ppf_coeff()
486 comp_ppf_gains(-back_lag, ppf, cur_rate, energy[0], energy[3], in comp_ppf_coeff()
487 energy[4]); in comp_ppf_coeff()
494 temp1 = energy[4] * ((energy[1] * energy[1] + (1 << 14)) >> 15); in comp_ppf_coeff()
495 temp2 = energy[2] * ((energy[3] * energy[3] + (1 << 14)) >> 15); in comp_ppf_coeff()
497 comp_ppf_gains(fwd_lag, ppf, cur_rate, energy[0], energy[1], in comp_ppf_coeff()
498 energy[2]); in comp_ppf_coeff()
500 comp_ppf_gains(-back_lag, ppf, cur_rate, energy[0], energy[3], in comp_ppf_coeff()
501 energy[4]); in comp_ppf_coeff()
615 static void gain_scale(G723_1_ChannelContext *p, int16_t * buf, int energy) in gain_scale() argument
620 num = energy; in gain_scale()
687 int scale, energy; in formant_postfilter() local
713 energy = av_clipl_int32((int64_t)auto_corr[1] << -temp); in formant_postfilter()
715 energy = auto_corr[1] >> temp; in formant_postfilter()
717 gain_scale(p, dst, energy); in formant_postfilter()