summaryrefslogtreecommitdiffhomepage
path: root/video
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-03 22:34:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-03 22:34:30 +0200
commiteff4fbd1d77b84829ab0f9f14593b12246e3fcdd (patch)
treea647a8dc8272b9bfb1d22f33222ad34080ae3f30 /video
parent318616903f4f3540c74b1cccb84aa394b2a05f10 (diff)
video, video/ps3eye: allow setting camera's channel count
Diffstat (limited to 'video')
-rw-r--r--video/camera.hpp2
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();