From 67fdae132708889ed89e302bd63a5cb91b2c75a7 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 7 Nov 2010 18:04:46 +0100 Subject: Add and test a simple kernel matcher This matcher is for up to four fingers, and has these properties: * Approximately 1.4 times faster at 4 fingers * Approximately 4.0 times faster at 2 fingers * Roughly 100 lines of code Signed-off-by: Henrik Rydberg --- src/match.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/match.h') diff --git a/src/match.h b/src/match.h index 98e1fa5..efba6f5 100644 --- a/src/match.h +++ b/src/match.h @@ -40,4 +40,12 @@ void mtdev_match(int index[DIM_FINGER], int A[DIM2_FINGER], int nrow, int ncol); +struct trk_coord { + int x; + int y; +}; + +const unsigned char *mtdev_match_four(const struct trk_coord *old, int nslot, + const struct trk_coord *pos, int npos); + #endif -- cgit v1.2.3