Lines Matching defs:pitch_index
255 * @param[in] pitch_index Adaptive codebook pitch index
259 static void decode_pitch_lag_high(int *lag_int, int *lag_frac, int pitch_index,
263 if (pitch_index < 376) {
264 *lag_int = (pitch_index + 137) >> 2;
265 *lag_frac = pitch_index - (*lag_int << 2) + 136;
266 } else if (pitch_index < 440) {
267 *lag_int = (pitch_index + 257 - 376) >> 1;
268 *lag_frac = (pitch_index - (*lag_int << 1) + 256 - 376) << 1;
271 *lag_int = pitch_index - 280;
281 *lag_int = (pitch_index + 1) >> 2;
282 *lag_frac = pitch_index - (*lag_int << 2);
292 static void decode_pitch_lag_low(int *lag_int, int *lag_frac, int pitch_index,
296 if (pitch_index < 116) {
297 *lag_int = (pitch_index + 69) >> 1;
298 *lag_frac = (pitch_index - (*lag_int << 1) + 68) << 1;
300 *lag_int = pitch_index - 24;
307 *lag_int = (pitch_index + 1) >> 1;
308 *lag_frac = (pitch_index - (*lag_int << 1)) << 1;