Lines Matching refs:gain
124 * Calculate match score and gain of an LPC-filtered vector with respect to
134 * @param gain pointer to variable where gain is returned
138 const float *data, float *score, float *gain)
157 *gain = c / g;
158 *score = *gain * c;
183 * Search the adaptive codebook for the best entry and gain and remove its
196 float score, gain, best_score, av_uninit(best_gain);
199 gain = best_score = 0;
202 get_match_score(work, coefs, exc, NULL, NULL, data, &score, &gain);
206 best_gain = gain;
237 * @param gain pointer to variable where the gain of the best codebook entry is
243 float *gain)
249 *idx = *gain = best_score = 0;
257 *gain = g;
264 * Search the two fixed codebooks for the best entry and gain
279 float gain;
291 data, cb1_idx, &gain);
297 if (gain) {
304 data[i] -= gain * work[i];
311 ortho_cb1 ? cb1_vect : NULL, data, cb2_idx, &gain);
332 int cba_idx, cb1_idx, cb2_idx, gain;
387 gain = 0;
412 gain = n;
416 put_bits(pb, 8, gain);
420 gain);