diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2013-03-08 11:20:59 +0100 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2013-03-08 11:20:59 +0100 |
commit | e21a35e8a518e0dae488ec6c2a0655aa4d07fe1f (patch) | |
tree | d28745a539401890017a050edc80c4c1b3ad1c84 /FTNoIR_Tracker_Base | |
parent | 990116bf8ac838fce808316e0d5886b531318cff (diff) |
Add some files that were meant to be in the repo.
Diffstat (limited to 'FTNoIR_Tracker_Base')
-rw-r--r-- | FTNoIR_Tracker_Base/ftnoir_tracker_ma_types.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/FTNoIR_Tracker_Base/ftnoir_tracker_ma_types.h b/FTNoIR_Tracker_Base/ftnoir_tracker_ma_types.h new file mode 100644 index 00000000..bc663056 --- /dev/null +++ b/FTNoIR_Tracker_Base/ftnoir_tracker_ma_types.h @@ -0,0 +1,33 @@ +// +// Definitions for the Shared Memory to send the data to FaceTrackNoIR +// +static const char* MA_MM_DATA = "MA_SharedMem"; +static const char* MA_FACEAPI = "MA_FaceAPI"; +static const char* MA_MUTEX = "MA_Mutex"; + +struct TFaceData { + int DataID; +// smEngineHeadPoseData new_pose; +}; +typedef TFaceData * PFaceData; + +struct SMMemMap { + int command; // Command from FaceTrackNoIR + int status; // Status from faceAPI + TFaceData data; + HANDLE handle; + int state; + int par_val_int; // Value of parameter, indicated by 'command' + int par_val_float; + int initial_filter_level; // Internal faceAPI Filter level + int handshake; +}; +typedef SMMemMap * PSMMemMap; + +enum FTNoIR_Tracker_Command { + FT_MA_START = 10, + FT_MA_STOP = 20, + FT_MA_SHOW_CAM = 30, + FT_MA_SET_PAR_FILTER = 50, + FT_MA_EXIT = 100 +}; |