Lines Matching refs:gain_before
566 * \param gain_before gain of speech before applying postfilters
574 int16_t ff_g729_adaptive_gain_control(int gain_before, int gain_after, int16_t *speech,
581 if(!gain_after && gain_before)
584 if (gain_before) {
586 exp_before = 14 - av_log2(gain_before);
587 gain_before = bidir_sal(gain_before, exp_before);
592 if (gain_before < gain_after) {
593 gain = (gain_before << 15) / gain_after;
596 gain = ((gain_before - gain_after) << 14) / gain_after + 0x4000;