summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_sm
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-19 19:36:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-19 19:36:47 +0200
commit6b2fcdcbafffcd6a1c3c9141616b79f2f70ee755 (patch)
tree642e787d6b4032ae2607889d45f5f3ca42756f11 /ftnoir_tracker_sm
parent214a8083c3a4e794c0d88b939606a263dc045563 (diff)
faceapi: move SM .h to appropriate dir
Diffstat (limited to 'ftnoir_tracker_sm')
-rw-r--r--ftnoir_tracker_sm/ftnoir_tracker_sm.h2
-rw-r--r--ftnoir_tracker_sm/ftnoir_tracker_sm_types.h36
2 files changed, 37 insertions, 1 deletions
diff --git a/ftnoir_tracker_sm/ftnoir_tracker_sm.h b/ftnoir_tracker_sm/ftnoir_tracker_sm.h
index 44a5627a..95e1edeb 100644
--- a/ftnoir_tracker_sm/ftnoir_tracker_sm.h
+++ b/ftnoir_tracker_sm/ftnoir_tracker_sm.h
@@ -23,7 +23,7 @@
* *
********************************************************************************/
#include "ftnoir_tracker_base/ftnoir_tracker_base.h"
-#include "ftnoir_tracker_base/ftnoir_tracker_sm_types.h"
+#include "ftnoir_tracker_sm/ftnoir_tracker_sm_types.h"
#include "ui_ftnoir_sm_controls.h"
#include <QMessageBox>
diff --git a/ftnoir_tracker_sm/ftnoir_tracker_sm_types.h b/ftnoir_tracker_sm/ftnoir_tracker_sm_types.h
new file mode 100644
index 00000000..526f8cdc
--- /dev/null
+++ b/ftnoir_tracker_sm/ftnoir_tracker_sm_types.h
@@ -0,0 +1,36 @@
+//
+// Definitions for the Shared Memory to send the data to FaceTrackNoIR
+//
+#define SM_MM_DATA "SM_SharedMem"
+#define SM_FACEAPI "SM_FaceAPI"
+#define SM_MUTEX "SM_Mutex"
+
+#include "faceapi/stdafx.h"
+#include <sm_api.h>
+
+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_SM_START = 10,
+ FT_SM_STOP = 20,
+ FT_SM_SHOW_CAM = 30,
+ FT_SM_SET_PAR_FILTER = 50,
+ FT_SM_EXIT = 100
+};