Lines Matching refs:pitch_index
241 * @param[in] pitch_index Adaptive codebook pitch index
245 static void decode_pitch_lag_high(int *lag_int, int *lag_frac, int pitch_index,
249 if (pitch_index < 376) {
250 *lag_int = (pitch_index + 137) >> 2;
251 *lag_frac = pitch_index - (*lag_int << 2) + 136;
252 } else if (pitch_index < 440) {
253 *lag_int = (pitch_index + 257 - 376) >> 1;
254 *lag_frac = (pitch_index - (*lag_int << 1) + 256 - 376) << 1;
257 *lag_int = pitch_index - 280;
267 *lag_int = (pitch_index + 1) >> 2;
268 *lag_frac = pitch_index - (*lag_int << 2);
278 static void decode_pitch_lag_low(int *lag_int, int *lag_frac, int pitch_index,
282 if (pitch_index < 116) {
283 *lag_int = (pitch_index + 69) >> 1;
284 *lag_frac = (pitch_index - (*lag_int << 1) + 68) << 1;
286 *lag_int = pitch_index - 24;
293 *lag_int = (pitch_index + 1) >> 1;
294 *lag_frac = (pitch_index - (*lag_int << 1)) << 1;