diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-04 19:51:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-05 09:55:58 +0200 |
commit | 74b8483457b51727dba38aa05a5be9bc773d8a28 (patch) | |
tree | 2f5f454163057dd4f0f11e7346788231c5788c2a /ftnoir_tracker_ht/ht_video_widget.h | |
parent | b1c929e63eaf689895359ce7b5a4b86b46439f11 (diff) |
octopus, pt, aruco: optimize image copying
Perform less operations in inner loop where pixels are accessed.
Diffstat (limited to 'ftnoir_tracker_ht/ht_video_widget.h')
-rw-r--r-- | ftnoir_tracker_ht/ht_video_widget.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ftnoir_tracker_ht/ht_video_widget.h b/ftnoir_tracker_ht/ht_video_widget.h index cbfe6ddc..be4aee44 100644 --- a/ftnoir_tracker_ht/ht_video_widget.h +++ b/ftnoir_tracker_ht/ht_video_widget.h @@ -23,7 +23,7 @@ class HTVideoWidget : public QWidget Q_OBJECT public: - HTVideoWidget(QWidget *parent) : QWidget(parent), fb(), width(0), height(0) { + HTVideoWidget(QWidget *parent) : QWidget(parent), fb(), width(0), height(0), fresh(false) { connect(&timer, SIGNAL(timeout()), this, SLOT(update_and_repaint())); timer.start(60); } @@ -40,8 +40,9 @@ private: QMutex mtx; QImage texture; QTimer timer; - char fb[2048*2048*3]; + unsigned char fb[2048*2048*3]; int width,height; + bool fresh; }; #endif // VIDEOWIDGET_H |