Lines Matching refs:smoother

258 typedef struct smoother {  struct
430 smoother_t smoother[PSM_FINGERS]; /* Motion smoothing */ member
3758 smoother_t *smoother; local
3764 smoother = &sc->smoother[0];
3772 smoother = &sc->smoother[i];
3865 queue_len = smoother->queue_len + 1;
3866 start_x = smoother->start_x;
3867 start_y = smoother->start_y;
3994 dx = abs(smoother->queue[smoother->queue_cursor].x -
3995 smoother->start_x);
3996 dy = abs(smoother->queue[smoother->queue_cursor].y -
3997 smoother->start_y);
4012 smoother->queue_len));
4016 smoother->queue_len >= sc->syninfo.tap_min_queue) {
4121 smoother_t *smoother = &sc->smoother[smoother_id]; local
4188 if (smoother->active == 0) {
4192 smoother->start_x = x0;
4193 smoother->start_y = y0;
4197 smoother->queue_cursor = SYNAPTICS_PACKETQUEUE;
4198 smoother->queue_len = 0;
4201 smoother->avg_dx = 0;
4202 smoother->avg_dy = 0;
4205 smoother->squelch_x = 0;
4206 smoother->squelch_y = 0;
4209 smoother->active = 1;
4212 cursor = smoother->queue_cursor;
4213 dx = x0 - smoother->queue[cursor].x;
4214 dy = y0 - smoother->queue[cursor].y;
4221 cursor = SYNAPTICS_QUEUE_CURSOR(smoother->queue_cursor - 1);
4222 smoother->queue[cursor].x = x0;
4223 smoother->queue[cursor].y = y0;
4224 smoother->queue_cursor = cursor;
4225 if (smoother->queue_len < SYNAPTICS_PACKETQUEUE)
4226 smoother->queue_len++;
4232 if (smoother->queue_len < gest->window_min)
4266 window = imin(smoother->queue_len, window_max);
4268 dxp = abs(x0 - smoother->queue[peer].x) + 1;
4269 dyp = abs(y0 - smoother->queue[peer].y) + 1;
4290 smoother->avg_dx =
4292 weight_prev_x * smoother->avg_dx) /
4295 smoother->avg_dy =
4297 weight_prev_y * smoother->avg_dy) /
4302 smoother->avg_dx / multiplicator,
4303 smoother->avg_dy / multiplicator));
4306 smoother->squelch_x += smoother->avg_dx;
4307 dxp = smoother->squelch_x / (div_x * multiplicator);
4308 smoother->squelch_x = smoother->squelch_x %
4311 smoother->squelch_y += smoother->avg_dy;
4312 dyp = smoother->squelch_y / (div_y * multiplicator);
4313 smoother->squelch_y = smoother->squelch_y %
4319 if (is_fuzzy == smoother->is_fuzzy) {
4349 smoother->is_fuzzy = is_fuzzy;
4357 smoother->active = 0;