Home | History | Annotate | Download | only in src

Lines Matching defs:gain

107     pOverflow -> 1 if the innovative gain calculation resulted in overflow
110 gain = Gain of Innovation code (Word16)
121 This function computes the innovative codebook gain.
123 The innovative codebook gain is given by
142 Word16 G_code ( // out : Gain of innovation code
148 Word16 xy, yy, exp_xy, exp_yy, gain;
173 // If (xy < 0) gain = 0
188 // compute gain = xy/yy
191 gain = div_s (xy, yy);
197 gain = shl (shr (gain, i), 1); // Q0 -> Q1/
199 return (gain);
229 Word16 G_code( /* o : Gain of innovation code */
236 Word16 xy, yy, exp_xy, exp_yy, gain;
272 /* If (xy < 0) gain = 0 */
303 gain = div_s(xy, yy);
309 // gain = shl (shr (gain, i), 1); /* Q0 -> Q1 */
313 gain >>= i - 1;
317 gain <<= 1 - i;
321 return (gain);