summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye/module.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-03-29 15:36:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2020-03-29 15:36:43 +0200
commit3d20cc94beaa114a4ae8ab63e042ca907471d819 (patch)
tree222861f373c4f231719f883b17c81fafb1c5f847 /video-ps3eye/module.hpp
parentfafe2e19d9f411f892fb9a162f03e6a6ce381f5a (diff)
video/ps3eye: sleep the right amount
Diffstat (limited to 'video-ps3eye/module.hpp')
-rw-r--r--video-ps3eye/module.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/video-ps3eye/module.hpp b/video-ps3eye/module.hpp
index 9f7aaec1..56ffe5df 100644
--- a/video-ps3eye/module.hpp
+++ b/video-ps3eye/module.hpp
@@ -5,6 +5,7 @@
#include "compat/shm.h"
#include "options/options.hpp"
#include "compat/macros1.h"
+#include "compat/timer.hpp"
#include "ui_dialog.h"
#include <QDialog>
@@ -52,8 +53,9 @@ struct ps3eye_camera final : video::impl::camera
shm_wrapper shm { "ps3eye-driver-shm", nullptr, sizeof(ps3eye::shm) };
settings s;
frame fr;
+ Timer t;
unsigned char data[640 * 480 * 3] = {};
- int framerate = 30;
+ int framerate = 30, sleep_ms = 1;
bool open = false;
unsigned timecode = 0;