aboutsummaryrefslogtreecommitdiff
path: root/include/linux/input/touchscreen/ts_filter_median.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2009-10-24 16:06:05 +0200
committerLars-Peter Clausen <lars@metafoo.de>2009-10-24 16:06:05 +0200
commit374f8036d1f74352a2d9a90f740bef6ecc33f5cd (patch)
treec8e6bcca30be9535a4f8cb11aac6263147d5b59e /include/linux/input/touchscreen/ts_filter_median.h
parentf858d8fceb8519604ab7b1221724d5ad4ede7b29 (diff)
ts-filter: Move include files to include/linux/input/touchscreen
Diffstat (limited to 'include/linux/input/touchscreen/ts_filter_median.h')
-rw-r--r--include/linux/input/touchscreen/ts_filter_median.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/input/touchscreen/ts_filter_median.h b/include/linux/input/touchscreen/ts_filter_median.h
new file mode 100644
index 00000000000..08051619531
--- /dev/null
+++ b/include/linux/input/touchscreen/ts_filter_median.h
@@ -0,0 +1,32 @@
+#ifndef __TS_FILTER_MEDIAN_H__
+#define __TS_FILTER_MEDIAN_H__
+
+#include <linux/input/touchscreen/ts_filter.h>
+
+/*
+ * Touchscreen filter.
+ *
+ * median
+ *
+ * (c) 2008 Andy Green <andy@warmcat.com>
+ */
+
+struct ts_filter_median_configuration {
+ /* Size of the filter. */
+ int extent;
+ /* Precomputed midpoint. */
+ int midpoint;
+ /* A reference value for us to check if we are going fast or slow. */
+ int decimation_threshold;
+ /* How many points to replace if we're going fast. */
+ int decimation_above;
+ /* How many points to replace if we're going slow. */
+ int decimation_below;
+
+ /* Generic configuration. */
+ struct ts_filter_configuration config;
+};
+
+extern const struct ts_filter_api ts_filter_median_api;
+
+#endif