summaryrefslogtreecommitdiff
path: root/heuristics.h
diff options
context:
space:
mode:
Diffstat (limited to 'heuristics.h')
-rw-r--r--heuristics.h13
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
6void 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
12int heuristics_getEnergy( int const amount, int const * const values );
13