summaryrefslogtreecommitdiff
path: root/src/match.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-11-07 18:04:46 +0100
committerHenrik Rydberg <rydberg@euromail.se>2010-11-07 18:04:46 +0100
commit67fdae132708889ed89e302bd63a5cb91b2c75a7 (patch)
tree29e6b2989ab5180eece929ad7a12def515e24259 /src/match.h
parent868f53c8a5684524bc6b1e7cd39aabed56fad9df (diff)
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 <rydberg@euromail.se>
Diffstat (limited to 'src/match.h')
-rw-r--r--src/match.h8
1 files changed, 8 insertions, 0 deletions
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 @@
40void mtdev_match(int index[DIM_FINGER], int A[DIM2_FINGER], 40void mtdev_match(int index[DIM_FINGER], int A[DIM2_FINGER],
41 int nrow, int ncol); 41 int nrow, int ncol);
42 42
43struct trk_coord {
44 int x;
45 int y;
46};
47
48const unsigned char *mtdev_match_four(const struct trk_coord *old, int nslot,
49 const struct trk_coord *pos, int npos);
50
43#endif 51#endif