diff options
| author | erdgeist <> | 2008-09-16 15:40:46 +0000 |
|---|---|---|
| committer | erdgeist <> | 2008-09-16 15:40:46 +0000 |
| commit | 8d957f068792b4ee55f807930c975699c29922a2 (patch) | |
| tree | 4a960cbe6c05797175a7c8b518f93e4459bafd1d /heuristics.h | |
Diffstat (limited to 'heuristics.h')
| -rw-r--r-- | heuristics.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/heuristics.h b/heuristics.h new file mode 100644 index 0000000..a01d1f7 --- /dev/null +++ b/heuristics.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | // Gets the two longest consecutive gestures found | ||
| 2 | // in frames. -1 in off[ab] means no gesture found | ||
| 3 | |||
| 4 | // Here what counts: the bigger abs(dx[ab]), the longer the gesture | ||
| 5 | // the bigger dy[ab]/dx[ab], the slower the gesture | ||
| 6 | void heuristics_getGestures( int const amount, int const * const values, | ||
| 7 | int *offa, int *dxa, int *dya, int *dda, | ||
| 8 | int *offb, int *dxb, int *dyb, int *ddb ); | ||
| 9 | |||
| 10 | // Calculate an "energy" level contained in vu bars. | ||
| 11 | // to soften spikes, we correlate neighbouring bars | ||
| 12 | int heuristics_getEnergy( int const amount, int const * const values ); | ||
| 13 | |||
