Lines Matching defs:coords
144 "Created Median filter len:%d coords:%d dec_threshold:%d\n",
159 static void ts_filter_median_scale(struct ts_filter *tsf, int *coords)
164 coords[n] = (coords[n] + 2) / 3;
168 * Give us the raw sample data coords, and if we return 1 then you can
169 * get a filtered coordinate from coords. If we return 0 you didn't
173 static int ts_filter_median_process(struct ts_filter *tsf, int *coords)
181 tsfm->fifo[n][tsfm->pos] = coords[n];
183 ts_filter_median_insert(tsfm->sort[n], coords[n], tsfm->valid);
213 coords[n] = tsfm->sort[n][tsfm->config->midpoint - 1] +
217 movement += abs(tsfm->last_issued[n] - coords[n]);
225 memcpy(&tsfm->last_issued[0], coords, tsf->count_coords * sizeof(int));