diff options
Diffstat (limited to 'match')
| -rw-r--r-- | match/match.c | 31 | ||||
| -rw-r--r-- | match/match.h | 21 | ||||
| -rw-r--r-- | match/test.c | 21 |
3 files changed, 71 insertions, 2 deletions
diff --git a/match/match.c b/match/match.c index 0080ee6..ebeadcd 100644 --- a/match/match.c +++ b/match/match.c | |||
| @@ -1,11 +1,38 @@ | |||
| 1 | /*************************************************************************** | ||
| 2 | * | ||
| 3 | * Multitouch X driver | ||
| 4 | * Copyright (C) 2008 Henrik Rydberg <rydberg@euromail.se> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 19 | * | ||
| 20 | **************************************************************************/ | ||
| 21 | |||
| 1 | #include "match.h" | 22 | #include "match.h" |
| 2 | #include <string.h> | 23 | #include <string.h> |
| 3 | #include <stdio.h> | 24 | #include <stdio.h> |
| 4 | 25 | ||
| 5 | /** | 26 | /** |
| 6 | * MATLAB implementation of the hungarian algorithm (2008) | 27 | * Bitmap implementation of the hungarian algorithm (GPL license) |
| 28 | * | ||
| 29 | * Copyright (C) 2008 Henrik Rydberg <rydberg@euromail.se> | ||
| 30 | * | ||
| 31 | * Based on code released by Markus Buehren (2004) (BSD license) | ||
| 32 | * | ||
| 33 | * Copyright (C) 2004, Markus Buehren. All rights reserved. | ||
| 34 | * See CREDITS file for full license terms. | ||
| 7 | * | 35 | * |
| 8 | * modified by Henrik Rydberg (2008) | ||
| 9 | */ | 36 | */ |
| 10 | 37 | ||
| 11 | typedef unsigned short col_t[1]; | 38 | typedef unsigned short col_t[1]; |
diff --git a/match/match.h b/match/match.h index 8936de4..61ac72d 100644 --- a/match/match.h +++ b/match/match.h | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | /*************************************************************************** | ||
| 2 | * | ||
| 3 | * Multitouch X driver | ||
| 4 | * Copyright (C) 2008 Henrik Rydberg <rydberg@euromail.se> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 19 | * | ||
| 20 | **************************************************************************/ | ||
| 21 | |||
| 1 | #ifndef MATCHER_H | 22 | #ifndef MATCHER_H |
| 2 | #define MATCHER_H | 23 | #define MATCHER_H |
| 3 | 24 | ||
diff --git a/match/test.c b/match/test.c index c65e581..e60e19a 100644 --- a/match/test.c +++ b/match/test.c | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | /*************************************************************************** | ||
| 2 | * | ||
| 3 | * Multitouch X driver | ||
| 4 | * Copyright (C) 2008 Henrik Rydberg <rydberg@euromail.se> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program; if not, write to the Free Software | ||
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 19 | * | ||
| 20 | **************************************************************************/ | ||
| 21 | |||
| 1 | #include <stdio.h> | 22 | #include <stdio.h> |
| 2 | #include <time.h> | 23 | #include <time.h> |
| 3 | #include "match.c" | 24 | #include "match.c" |
