From eff4fbd1d77b84829ab0f9f14593b12246e3fcdd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 Sep 2021 22:34:18 +0200 Subject: video, video/ps3eye: allow setting camera's channel count --- video/camera.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') 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(); -- cgit v1.2.3