goldfish: R.I.P.
[openwrt/svn-archive/archive.git] / target / linux / s3c24xx / files-2.6.30 / include / linux / touchscreen / ts_filter_group.h
1 #ifndef __TS_FILTER_GROUP_H__
2 #define __TS_FILTER_GROUP_H__
3
4 #include "ts_filter.h"
5
6 /*
7 * Touchscreen group filter.
8 *
9 * Copyright (C) 2008,2009 by Openmoko, Inc.
10 * Author: Nelson Castillo <arhuaco@freaks-unidos.net>
11 *
12 */
13
14 struct ts_filter_group_configuration {
15 /* Size of the filter. */
16 int length;
17 /*
18 * If two points are separated by this distance or less they
19 * are considered to be members of the same group.
20 */
21 int close_enough;
22 /* Minimum allowed size for the biggest group in the sample set. */
23 int threshold;
24 /*
25 * Number of times we try to get a group of points with at least
26 * threshold points.
27 */
28 int attempts;
29
30 /* Generic filter configuration. */
31 struct ts_filter_configuration config;
32 };
33
34 extern const struct ts_filter_api ts_filter_group_api;
35
36 #endif