summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye/module.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-08-18 19:44:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-08-18 19:47:13 +0200
commit2fc5d7b3490e41952e0e335841d7d7f72a3b76a9 (patch)
tree0b3da3015ee518849b85303c28fb53e54a1137c5 /video-ps3eye/module.hpp
parente8f5b7ec366f1cf7660e870335b4e503e4527990 (diff)
video/ps3eye: move number of channels to a constant
Diffstat (limited to 'video-ps3eye/module.hpp')
-rw-r--r--video-ps3eye/module.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/video-ps3eye/module.hpp b/video-ps3eye/module.hpp
index 595d446a..26cfad60 100644
--- a/video-ps3eye/module.hpp
+++ b/video-ps3eye/module.hpp
@@ -57,7 +57,7 @@ struct ps3eye_camera final : video::impl::camera
settings s;
frame fr;
Timer t;
- unsigned char data[640 * 480 * 3] = {};
+ unsigned char data[640 * 480 * ps3eye::num_channels] = {};
int framerate = 30, sleep_ms = 1;
bool open = false;
unsigned timecode = 0;