Searched refs:history_idx (Results 1 – 2 of 2) sorted by relevance
73 unsigned history_idx, n_history; member142 if (s->history_x[s->history_idx] + s->history_time >= x) in drop_old()148 REDUCE_INC(s->history_idx); in drop_old()159 i = s->history_idx; in add_to_history()174 j = s->history_idx + s->n_history; in add_to_history()186 s->history_idx += s->n_history - HISTORY_MAX; in add_to_history()187 REDUCE(s->history_idx); in add_to_history()209 i = s->history_idx; in avg_gradient()226 i = s->history_idx; in avg_gradient()511 s->history_idx = 0; in pa_smoother_reset()
307 int history_idx = s->frame_num % s->history_len; in normalize() local314 s->min[c].history_sum -= s->min[c].history[history_idx]; in normalize()315 s->max[c].history_sum -= s->max[c].history[history_idx]; in normalize()322 s->min[c].history_sum += (s->min[c].history[history_idx] = min[c].in); in normalize()324 s->max[c].history_sum += (s->max[c].history[history_idx] = max[c].in); in normalize()