Lines Matching refs:smoother
262 typedef struct smoother { struct
445 smoother_t smoother[PSM_FINGERS]; /* Motion smoothing */ member
3788 smoother_t *smoother; local
3794 smoother = &sc->smoother[0];
3802 smoother = &sc->smoother[i];
3895 queue_len = smoother->queue_len + 1;
3896 start_x = smoother->start_x;
3897 start_y = smoother->start_y;
4024 dx = abs(smoother->queue[smoother->queue_cursor].x -
4025 smoother->start_x);
4026 dy = abs(smoother->queue[smoother->queue_cursor].y -
4027 smoother->start_y);
4042 smoother->queue_len));
4046 smoother->queue_len >= sc->syninfo.tap_min_queue) {
4151 smoother_t *smoother = &sc->smoother[smoother_id]; local
4218 if (smoother->active == 0) {
4222 smoother->start_x = x0;
4223 smoother->start_y = y0;
4227 smoother->queue_cursor = SYNAPTICS_PACKETQUEUE;
4228 smoother->queue_len = 0;
4231 smoother->avg_dx = 0;
4232 smoother->avg_dy = 0;
4235 smoother->squelch_x = 0;
4236 smoother->squelch_y = 0;
4239 smoother->active = 1;
4242 cursor = smoother->queue_cursor;
4243 dx = x0 - smoother->queue[cursor].x;
4244 dy = y0 - smoother->queue[cursor].y;
4251 cursor = SYNAPTICS_QUEUE_CURSOR(smoother->queue_cursor - 1);
4252 smoother->queue[cursor].x = x0;
4253 smoother->queue[cursor].y = y0;
4254 smoother->queue_cursor = cursor;
4255 if (smoother->queue_len < SYNAPTICS_PACKETQUEUE)
4256 smoother->queue_len++;
4262 if (smoother->queue_len < gest->window_min)
4296 window = imin(smoother->queue_len, window_max);
4298 dxp = abs(x0 - smoother->queue[peer].x) + 1;
4299 dyp = abs(y0 - smoother->queue[peer].y) + 1;
4320 smoother->avg_dx =
4322 weight_prev_x * smoother->avg_dx) /
4325 smoother->avg_dy =
4327 weight_prev_y * smoother->avg_dy) /
4332 smoother->avg_dx / multiplicator,
4333 smoother->avg_dy / multiplicator));
4336 smoother->squelch_x += smoother->avg_dx;
4337 dxp = smoother->squelch_x / (div_x * multiplicator);
4338 smoother->squelch_x = smoother->squelch_x %
4341 smoother->squelch_y += smoother->avg_dy;
4342 dyp = smoother->squelch_y / (div_y * multiplicator);
4343 smoother->squelch_y = smoother->squelch_y %
4349 if (is_fuzzy == smoother->is_fuzzy) {
4379 smoother->is_fuzzy = is_fuzzy;
4387 smoother->active = 0;