From 6b0ef8b8c5e4ada112092f904a5cb3a0f80456c9 Mon Sep 17 00:00:00 2001 From: ronin18 Date: Wed, 17 Jun 2015 13:06:55 +0200 Subject: [PATCH] Added #ifdef CAMERA_CONTROL_USE_PS3EYE_DRIVER so cc->eye will only be used when configured --- src/tracker/platform/camera_control_win32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tracker/platform/camera_control_win32.c b/src/tracker/platform/camera_control_win32.c index 6b26d3c8..071edbf8 100644 --- a/src/tracker/platform/camera_control_win32.c +++ b/src/tracker/platform/camera_control_win32.c @@ -181,6 +181,7 @@ void camera_control_set_parameters(CameraControl* cc, int autoE, int autoG, int cvReleaseCapture(&cc->capture); } +#ifdef CAMERA_CONTROL_USE_PS3EYE_DRIVER //autoE... setAutoExposure not defined in ps3eye.h ps3eye_set_parameter(cc->eye, PS3EYE_AUTO_GAIN, autoG > 0); ps3eye_set_parameter(cc->eye, PS3EYE_AUTO_WHITEBALANCE, autoWB > 0); @@ -198,7 +199,8 @@ void camera_control_set_parameters(CameraControl* cc, int autoE, int autoG, int * ps3eye_set_parameter(cc->eye, PS3EYE_HFLIP, ??); * ps3eye_set_parameter(cc->eye, PS3EYE_VFLIP, ??); **/ - +#endif //CAMERA_CONTROL_USE_PS3EYE_DRIVER + int width, height; get_metrics(&width, &height);