diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-05-28 13:09:02 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-05-28 13:09:02 +0000 |
commit | 7357858cee1c39ad25f187db422cb4ba0335ed77 (patch) | |
tree | 70362bcc792aeb0afd90672560acf0e44faaa80d /faceAPI | |
parent | 2852ec626fec6d4955a41202feec6be27e776e93 (diff) |
Added filter setting faceAPI
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@85 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'faceAPI')
-rw-r--r-- | faceAPI/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/faceAPI/main.cpp b/faceAPI/main.cpp index 403340a5..aeb2cd50 100644 --- a/faceAPI/main.cpp +++ b/faceAPI/main.cpp @@ -370,8 +370,9 @@ void run() //
// Process the command sent by FaceTrackNoIR.
//
- sprintf_s(msg, "Command: %d\n", pMemData->command);
+ sprintf_s(msg, "Command: %d, \n", pMemData->command, pMemData->par_val_int);
OutputDebugStringA(msg);
+ std::cout << msg;
if (pMemData) {
//
@@ -407,6 +408,11 @@ void run() pMemData->command = 0; // Reset
break;
+ case FT_SM_SET_PAR_FILTER:
+ THROW_ON_ERROR(smHTV2SetHeadPoseFilterLevel(engine_handle, pMemData->par_val_int));
+ pMemData->command = 0; // Reset
+ break;
+
case FT_SM_SHOW_CAM:
THROW_ON_ERROR(smEngineShowCameraControlPanel(engine_handle));
pMemData->command = 0; // Reset
|