Lines Matching defs:pitch_index
263 * @param[in] pitch_index Adaptive codebook pitch index
267 static void decode_pitch_lag_high(int *lag_int, int *lag_frac, int pitch_index,
271 if (pitch_index < 376) {
272 *lag_int = (pitch_index + 137) >> 2;
273 *lag_frac = pitch_index - (*lag_int << 2) + 136;
274 } else if (pitch_index < 440) {
275 *lag_int = (pitch_index + 257 - 376) >> 1;
276 *lag_frac = (pitch_index - (*lag_int << 1) + 256 - 376) * 2;
279 *lag_int = pitch_index - 280;
289 *lag_int = (pitch_index + 1) >> 2;
290 *lag_frac = pitch_index - (*lag_int << 2);
300 static void decode_pitch_lag_low(int *lag_int, int *lag_frac, int pitch_index,
304 if (pitch_index < 116) {
305 *lag_int = (pitch_index + 69) >> 1;
306 *lag_frac = (pitch_index - (*lag_int << 1) + 68) * 2;
308 *lag_int = pitch_index - 24;
315 *lag_int = (pitch_index + 1) >> 1;
316 *lag_frac = (pitch_index - (*lag_int << 1)) * 2;