Lines Matching defs:pitch_index
148 void ff_decode_pitch_lag(int *lag_int, int *lag_frac, int pitch_index,
155 if (pitch_index < 197)
156 pitch_index += 59;
158 pitch_index = 3 * pitch_index - 335;
166 if (pitch_index < 4) {
168 pitch_index = 3 * (pitch_index + search_range_min) + 1;
169 } else if (pitch_index < 12) {
171 pitch_index += 3 * search_range_min + 7;
174 pitch_index = 3 * (pitch_index + search_range_min - 6) + 1;
178 pitch_index--;
181 pitch_index += 3 * av_clip(prev_lag_int - 10, PITCH_DELAY_MIN,
184 pitch_index += 3 * av_clip(prev_lag_int - 5, PITCH_DELAY_MIN,
188 *lag_int = pitch_index * 10923 >> 15;
189 *lag_frac = pitch_index - 3 * *lag_int - 1;