Commit fad54541 authored by Thiago Santini's avatar Thiago Santini

Sets a sane saturation level

Original value came from pupil source; however, that results in a gray image
parent 5d608b49
......@@ -82,7 +82,7 @@ bool UVCCameraSession::load()
uvc_set_focus_auto(devh, 0);
uvc_set_ae_priority(devh, 0);
uvc_set_ae_mode(devh, 1);
uvc_set_saturation(devh, 0);
uvc_set_saturation(devh, 63);
uvc_set_exposure_abs(devh, 63);
uvc_set_backlight_compensation(devh, 2);
uvc_set_gamma(devh, 100);
......@@ -123,6 +123,7 @@ bool UVCCameraSession::startPreview()
}
res = uvc_get_stream_ctrl_format_size(devh, &ctrl, format, settings.resolution().width(), settings.resolution().height(), settings.maximumFrameRate());
if (res != UVC_SUCCESS) {
qWarning() << "uvc_get_stream_ctrl" << uvc_strerror(res);
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment