Lines Matching defs:pitch_index
107 void ff_decode_pitch_lag(int *lag_int, int *lag_frac, int pitch_index,
114 if (pitch_index < 197)
115 pitch_index += 59;
117 pitch_index = 3 * pitch_index - 335;
125 if (pitch_index < 4) {
127 pitch_index = 3 * (pitch_index + search_range_min) + 1;
128 } else if (pitch_index < 12) {
130 pitch_index += 3 * search_range_min + 7;
133 pitch_index = 3 * (pitch_index + search_range_min - 6) + 1;
137 pitch_index--;
140 pitch_index += 3 * av_clip(prev_lag_int - 10, PITCH_DELAY_MIN,
143 pitch_index += 3 * av_clip(prev_lag_int - 5, PITCH_DELAY_MIN,
147 *lag_int = pitch_index * 10923 >> 15;
148 *lag_frac = pitch_index - 3 * *lag_int - 1;