summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-12 11:40:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-12 11:40:43 +0200
commitb98f07d984dff6718d7184ed1bf68709f4dae348 (patch)
tree005d72fc084cebc0107fae9f396b5dd2a1b04cde /ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
parent79f3cabf4639be401ae79ca73f58fdec84e5e2e0 (diff)
reduce CPU usage during tracking
Diffstat (limited to 'ftnoir_tracker_ht/ftnoir_tracker_ht.cpp')
-rw-r--r--ftnoir_tracker_ht/ftnoir_tracker_ht.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
index 4f7d68f0..33b4c944 100644
--- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
+++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
@@ -228,6 +228,7 @@ bool Tracker::GiveHeadPoseData(THeadPoseData* data)
videoWidget->updateImage(shm->frame.frame, shm->frame.width, shm->frame.height);
//memcpy(foo, shm->frame.frame, shm->frame.width * shm->frame.height * 3);
fresh = true;
+ shm->frame.width = 0;
}
if (shm->result.filled) {
if (enableRX)