diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-01-18 21:46:03 +0000 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-01-18 21:46:03 +0000 |
commit | e4ef9f33a072a0c46897a3e58fd9a7bada519a2b (patch) | |
tree | 4a89358faf9ec725af1c1492c322555cebd01fe5 /FTNoIR_Tracker_HT/headtracker-ftnoir.h | |
parent | 9f7fd1d155128e1d382654d9de1c72f19006e856 (diff) |
First version of the HT tracker
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@209 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_HT/headtracker-ftnoir.h')
-rw-r--r-- | FTNoIR_Tracker_HT/headtracker-ftnoir.h | 24 |
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; |