Lines Matching refs:pitch_index
256 static void decode_pitch_lag_high(int *lag_int, int *lag_frac, int pitch_index, in decode_pitch_lag_high() argument
260 if (pitch_index < 376) { in decode_pitch_lag_high()
261 *lag_int = (pitch_index + 137) >> 2; in decode_pitch_lag_high()
262 *lag_frac = pitch_index - (*lag_int << 2) + 136; in decode_pitch_lag_high()
263 } else if (pitch_index < 440) { in decode_pitch_lag_high()
264 *lag_int = (pitch_index + 257 - 376) >> 1; in decode_pitch_lag_high()
265 *lag_frac = (pitch_index - (*lag_int << 1) + 256 - 376) * 2; in decode_pitch_lag_high()
268 *lag_int = pitch_index - 280; in decode_pitch_lag_high()
278 *lag_int = (pitch_index + 1) >> 2; in decode_pitch_lag_high()
279 *lag_frac = pitch_index - (*lag_int << 2); in decode_pitch_lag_high()
289 static void decode_pitch_lag_low(int *lag_int, int *lag_frac, int pitch_index, in decode_pitch_lag_low() argument
293 if (pitch_index < 116) { in decode_pitch_lag_low()
294 *lag_int = (pitch_index + 69) >> 1; in decode_pitch_lag_low()
295 *lag_frac = (pitch_index - (*lag_int << 1) + 68) * 2; in decode_pitch_lag_low()
297 *lag_int = pitch_index - 24; in decode_pitch_lag_low()
304 *lag_int = (pitch_index + 1) >> 1; in decode_pitch_lag_low()
305 *lag_frac = (pitch_index - (*lag_int << 1)) * 2; in decode_pitch_lag_low()