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
{
17 int decimation_threshold
;
22 struct ts_filter_median
{
24 struct ts_filter_median_configuration
*config
;
27 int last_issued
[MAX_TS_FILTER_COORDS
];
28 int valid
; /* how many samples in the sort buffer are valid */
29 int *sort
[MAX_TS_FILTER_COORDS
]; /* samples taken for median */
30 int *fifo
[MAX_TS_FILTER_COORDS
]; /* samples taken for median */
31 int pos
; /* where we are in the fifo sample memory */
34 extern struct ts_filter_api ts_filter_median_api
;