summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_ht/headtracker-ftnoir.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-03-22 21:48:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-03-22 21:51:09 +0100
commit4f05cb2af239ca8471b77c9f1d1c32e8c4cd3abc (patch)
tree338d3891b0c7710558aea3820d42af6eedfb0af9 /ftnoir_tracker_ht/headtracker-ftnoir.h
parent4f00c4c74d213a37a4b1a3313e50ce2b4dd51271 (diff)
Remove .bat files, actually finish rename this time
Diffstat (limited to 'ftnoir_tracker_ht/headtracker-ftnoir.h')
-rw-r--r--ftnoir_tracker_ht/headtracker-ftnoir.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/ftnoir_tracker_ht/headtracker-ftnoir.h b/ftnoir_tracker_ht/headtracker-ftnoir.h
new file mode 100644
index 00000000..48510997
--- /dev/null
+++ b/ftnoir_tracker_ht/headtracker-ftnoir.h
@@ -0,0 +1,24 @@
+#pragma once
+#include <stdlib.h>
+#include <stdio.h>
+#include "ht-api.h"
+
+#define HT_SHM_NAME "ftnoir-tracker-ht-shm"
+#define HT_MUTEX_NAME "ftnoir-tracker-ht-mutex"
+
+#define HT_MAX_VIDEO_WIDTH 2048
+#define HT_MAX_VIDEO_HEIGHT 1536
+#define HT_MAX_VIDEO_CHANNELS 3
+
+typedef struct {
+ int width, height, channels;
+ unsigned char frame[HT_MAX_VIDEO_WIDTH * HT_MAX_VIDEO_HEIGHT * HT_MAX_VIDEO_CHANNELS];
+} ht_video_t;
+
+typedef struct {
+ ht_video_t frame;
+ ht_config_t config;
+ ht_result_t result;
+ volatile int timer;
+ volatile bool pause, terminate, running;
+} ht_shm_t;