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