diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-12 11:40:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-12 11:40:43 +0200 |
commit | b98f07d984dff6718d7184ed1bf68709f4dae348 (patch) | |
tree | 005d72fc084cebc0107fae9f396b5dd2a1b04cde /ftnoir_tracker_ht/ftnoir_tracker_ht.cpp | |
parent | 79f3cabf4639be401ae79ca73f58fdec84e5e2e0 (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.cpp | 1 |
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) |