Home | History | Annotate | Download | only in src

Lines Matching defs:gain

118     g_coeff  = pointer to buffer of correlations needed for gain quantization
128 gain = ratio of dot products.(Word16)
139 This function computes the pitch (adaptive codebook) gain. The adaptive
140 codebook gain is given by
148 The gain is limited to the range [0,1.2] (=0..19661 Q14)
163 Word16 G_pitch ( // o : Gain of pitch lag saturated to 1.2
167 Word16 g_coeff[], // i : Correlations need for gain quantization
172 Word16 xy, yy, exp_xy, exp_yy, gain;
244 // If (xy < 4) gain = 0
251 // compute gain = xy/yy
254 gain = div_s (xy, yy);
257 gain = shr (gain, i);
259 // if(gain >1.2) gain = 1.2
261 if (sub (gain, 19661) > 0)
263 gain = 19661;
269 gain = gain & 0xfffC;
272 return (gain);
298 Word16 G_pitch( /* o : Gain of pitch lag saturated to 1.2 */
302 Word16 g_coeff[], /* i : Correlations need for gain quantization */
313 Word16 gain;
433 /* If (xy < 4) gain = 0 */
439 /* compute gain = xy/yy */
444 gain = div_s(xy, yy);
448 gain = shr(gain, i, pOverflow);
451 /* if(gain >1.2) gain = 1.2 */
452 if (gain > 19661)
454 gain = 19661;
460 gain = gain & 0xfffC;
463 return(gain);