1 #ifndef __TS_FILTER_MEDIAN_H__
2 #define __TS_FILTER_MEDIAN_H__
11 * (c) 2008 Andy Green <andy@openmoko.com>
14 struct ts_filter_median_configuration
{
15 /* Size of the filter. */
17 /* Precomputed midpoint. */
19 /* A reference value for us to check if we are going fast or slow. */
20 int decimation_threshold
;
21 /* How many points to replace if we're going fast. */
23 /* How many points to replace if we're going slow. */
26 /* Generic configuration. */
27 struct ts_filter_configuration config
;
30 extern const struct ts_filter_api ts_filter_median_api
;