diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-11 18:08:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-11 18:08:15 +0100 |
commit | 19dcf6de27cbb4347f940186370823f479ab1a5c (patch) | |
tree | 9dba47b2f422c3fcb13c7b4f90b11b540eeeae3b /FTNoIR_Tracker_PT/pt_video_widget.cpp | |
parent | 7da7a26385c1d54762d6f2d11a7036d856bc5864 (diff) |
get rid of frame copy throttling
Diffstat (limited to 'FTNoIR_Tracker_PT/pt_video_widget.cpp')
-rw-r--r-- | FTNoIR_Tracker_PT/pt_video_widget.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/FTNoIR_Tracker_PT/pt_video_widget.cpp b/FTNoIR_Tracker_PT/pt_video_widget.cpp index 75fa18a0..02817cbf 100644 --- a/FTNoIR_Tracker_PT/pt_video_widget.cpp +++ b/FTNoIR_Tracker_PT/pt_video_widget.cpp @@ -18,15 +18,8 @@ using namespace std; void PTVideoWidget::update_image(const cv::Mat& frame)
{
QMutexLocker foo(&mtx);
- const int rate = 40;
- if (freshp)
- return;
- if (frame.empty() || !update_throttler.isValid() || update_throttler.elapsed() > rate)
- {
- _frame = frame.clone();
- update_throttler.restart();
- freshp = true;
- }
+ _frame = frame.clone();
+ freshp = true;
}
// ----------------------------------------------------------------------------
|