summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-09 11:48:11 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-09 11:48:11 +0200
commit62a721226d5e08f57f1bda12a7f570be6be77635 (patch)
tree85fbf36c608a0afb2795708d95196d32b692e97a /tracker-pt
parent7b07d63e8129b620d275845c5d79573aac72a800 (diff)
tracker/pt: no need for 4-byte command mask
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp6
-rw-r--r--tracker-pt/ftnoir_tracker_pt.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index 14813b62..950dde71 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -19,11 +19,11 @@
//#define PT_PERF_LOG //log performance
//-----------------------------------------------------------------------------
-Tracker_PT::Tracker_PT()
- : commands(0),
+Tracker_PT::Tracker_PT() :
video_widget(NULL),
video_frame(NULL),
- ever_success(false)
+ ever_success(false),
+ commands(0)
{
connect(s.b.get(), SIGNAL(saving()), this, SLOT(apply_settings()));
}
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h
index 6a889f13..b6815bd7 100644
--- a/tracker-pt/ftnoir_tracker_pt.h
+++ b/tracker-pt/ftnoir_tracker_pt.h
@@ -49,7 +49,8 @@ protected:
void run() override;
private:
// thread commands
- enum Command {
+ enum Command : unsigned char
+ {
ABORT = 1<<0
};
void set_command(Command command);
@@ -57,8 +58,6 @@ private:
bool get_focal_length(float &ret);
- volatile int commands;
-
QMutex camera_mtx;
CVCamera camera;
PointExtractor point_extractor;
@@ -72,6 +71,7 @@ private:
cv::Mat frame;
volatile bool ever_success;
+ volatile unsigned char commands;
static constexpr float rad2deg = float(180/3.14159265);
//static constexpr float deg2rad = float(3.14159265/180);