summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs/rs_impl/ftnoir_tracker_rs_impl.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-21 12:01:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-21 12:01:58 +0200
commitea0fe4748db634d4f45805c677572db6c3b09f79 (patch)
tree6fa3b55843625de5acc5193747e79d42b0715007 /tracker-rs/rs_impl/ftnoir_tracker_rs_impl.cpp
parent397aabbef822f7438a55600829cd4d5604a31ebf (diff)
tracker/realsense: downgrade to r2
Issue: #1317 Installation instructions in the UI based on post by @JayMonkey <https://github.com/opentrack/opentrack/issues/1317#issuecomment-908408101>.
Diffstat (limited to 'tracker-rs/rs_impl/ftnoir_tracker_rs_impl.cpp')
-rw-r--r--tracker-rs/rs_impl/ftnoir_tracker_rs_impl.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/tracker-rs/rs_impl/ftnoir_tracker_rs_impl.cpp b/tracker-rs/rs_impl/ftnoir_tracker_rs_impl.cpp
index eb97380c..f54531a6 100644
--- a/tracker-rs/rs_impl/ftnoir_tracker_rs_impl.cpp
+++ b/tracker-rs/rs_impl/ftnoir_tracker_rs_impl.cpp
@@ -9,18 +9,21 @@
#ifdef _WIN32
# include <windows.h>
#endif
+#include <cstdlib>
#include <pxcsensemanager.h>
+#if 0
#include <RealSense/Face/FaceModule.h>
#include <RealSense/Face/FaceConfiguration.h>
-
-#include <cstdlib>
-
-const size_t kPreviewStreamWidth = 640;
-const size_t kPreviewStreamHeight = 480;
-
using PXCFaceData = Intel::RealSense::Face::FaceData;
using PXCFaceConfiguration = Intel::RealSense::Face::FaceConfiguration;
+#else
+#include <pxcfacemodule.h>
+#include <pxcfaceconfiguration.h>
+#endif
+
+constexpr size_t kPreviewStreamWidth = 640;
+constexpr size_t kPreviewStreamHeight = 480;
PXCSenseManager* g_senseManager = NULL;
PXCFaceData* g_faceData = NULL;