diff options
author | Nelson Castillo <arhuaco@freaks-unidos.net> | 2009-10-24 03:04:31 -0500 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-12-15 18:30:22 +0100 |
commit | 9c015a908586a923406b025f51c5dc3896e530a7 (patch) | |
tree | aa96d1d9c01b835b6a144abe42270e32278a4812 /drivers/input/touchscreen/ts_filter_group.h | |
parent | fb49c8b3238fec0f79535303e90e909ccc058059 (diff) |
Add touchscreen filters
Add filter source code and add it to the defconfig.
Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
Diffstat (limited to 'drivers/input/touchscreen/ts_filter_group.h')
-rw-r--r-- | drivers/input/touchscreen/ts_filter_group.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ts_filter_group.h b/drivers/input/touchscreen/ts_filter_group.h new file mode 100644 index 00000000000..d1e3590e936 --- /dev/null +++ b/drivers/input/touchscreen/ts_filter_group.h @@ -0,0 +1,36 @@ +#ifndef __TS_FILTER_GROUP_H__ +#define __TS_FILTER_GROUP_H__ + +#include "ts_filter.h" + +/* + * Touchscreen group filter. + * + * Copyright (C) 2008,2009 by Openmoko, Inc. + * Author: Nelson Castillo <arhuaco@freaks-unidos.net> + * + */ + +struct ts_filter_group_configuration { + /* Size of the filter. */ + int length; + /* + * If two points are separated by this distance or less they + * are considered to be members of the same group. + */ + int close_enough; + /* Minimum allowed size for the biggest group in the sample set. */ + int threshold; + /* + * Number of times we try to get a group of points with at least + * threshold points. + */ + int attempts; + + /* Generic filter configuration. */ + struct ts_filter_configuration config; +}; + +extern const struct ts_filter_api ts_filter_group_api; + +#endif |