1 #ifndef __TS_FILTER_GROUP_H__
2 #define __TS_FILTER_GROUP_H__
7 * Touchscreen group filter.
9 * Copyright (C) 2008 by Openmoko, Inc.
10 * Author: Nelson Castillo <arhuaco@freaks-unidos.net>
14 struct ts_filter_group_configuration
{
21 struct ts_filter_group
{
23 struct ts_filter_group_configuration
*config
;
25 int N
; /* How many samples we have */
26 int *samples
[MAX_TS_FILTER_COORDS
]; /* the samples, our input */
28 int *group_size
; /* used for temporal computations */
29 int *sorted_samples
; /* used for temporal computations */
31 int range_max
[MAX_TS_FILTER_COORDS
]; /* max computed ranges */
32 int range_min
[MAX_TS_FILTER_COORDS
]; /* min computed ranges */
34 int tries_left
; /* We finish if we don't get enough samples */
37 extern struct ts_filter_api ts_filter_group_api
;