summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_Base/ftnoir_tracker_sm_types.h
blob: 1767cb942f93a0bd19e0a7a25e5c1ca0ad1ba757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Definitions for the Shared Memory to send the data to FaceTrackNoIR
//
static const char* SM_MM_DATA = "SM_SharedMem";
static const char* SM_FACEAPI = "SM_FaceAPI";
static const char* SM_MUTEX = "SM_Mutex";

#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
};