diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-03 22:34:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-03 22:34:30 +0200 |
commit | eff4fbd1d77b84829ab0f9f14593b12246e3fcdd (patch) | |
tree | a647a8dc8272b9bfb1d22f33222ad34080ae3f30 /video/camera.hpp | |
parent | 318616903f4f3540c74b1cccb84aa394b2a05f10 (diff) |
video, video/ps3eye: allow setting camera's channel count
Diffstat (limited to 'video/camera.hpp')
-rw-r--r-- | video/camera.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/camera.hpp b/video/camera.hpp index c3297876..8d96ff6b 100644 --- a/video/camera.hpp +++ b/video/camera.hpp @@ -48,12 +48,14 @@ struct OTR_VIDEO_EXPORT camera { struct info final { + enum : unsigned char { channels_gray = 1, channels_bgr = 3 }; // TODO: expose FOV-based focal length for regular webcams int width = 0, height = 0, fps = 0; double fx = 0, fy = 0; // focal length double P_x = 0, P_y = 0; // principal point double dist_c[8] {}; // distortion coefficients bool use_mjpeg = false; + int num_channels = channels_bgr; }; camera(); |