summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye/shm-layout.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/shm-layout.hpp
parente8f5b7ec366f1cf7660e870335b4e503e4527990 (diff)
video/ps3eye: move number of channels to a constant
Diffstat (limited to 'video-ps3eye/shm-layout.hpp')
-rw-r--r--video-ps3eye/shm-layout.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/video-ps3eye/shm-layout.hpp b/video-ps3eye/shm-layout.hpp
index 3ae406c5..d7905109 100644
--- a/video-ps3eye/shm-layout.hpp
+++ b/video-ps3eye/shm-layout.hpp
@@ -3,6 +3,8 @@
namespace ps3eye {
+static constexpr unsigned num_channels = 1;
+
struct shm_in {
enum class mode : uint8_t { qvga, vga, };
@@ -23,8 +25,8 @@ struct shm_out
status status_;
char error_string[256];
union {
- uint8_t data_320x240[320][240][1];
- uint8_t data_640x480[640][480][1];
+ uint8_t data_320x240[320][240][num_channels];
+ uint8_t data_640x480[640][480][num_channels];
};
};