|
|
@@ -1000,16 +1000,16 @@ int VideoCaptureImpl::SetCamAutoBrightness()
|
|
|
{
|
|
|
int iret = -1;
|
|
|
|
|
|
- //struct v4l2_control ctrl;
|
|
|
- //ctrl.id = V4L2_CID_BRIGHTNESS;
|
|
|
- //ctrl.value = m_idefaultbrightness;
|
|
|
- //if (ioctl(m_deviceFd, VIDIOC_S_CTRL, &ctrl) == -1) {
|
|
|
- // m_callback->Debug("VIDIOC_S_CTRL set V4L2_CID_AUTOBRIGHTNESS error for %s", strerror(errno));
|
|
|
- //}
|
|
|
- //else {
|
|
|
- // //m_callback->Debug("VIDIOC_S_CTRL set V4L2_CID_AUTOBRIGHTNESS success.");
|
|
|
- // iret = 0;
|
|
|
- //}
|
|
|
+ struct v4l2_control ctrl;
|
|
|
+ ctrl.id = V4L2_CID_BRIGHTNESS;
|
|
|
+ ctrl.value = m_idefaultbrightness;
|
|
|
+ if (ioctl(m_deviceFd, VIDIOC_S_CTRL, &ctrl) == -1) {
|
|
|
+ CapLog("VIDIOC_S_CTRL set V4L2_CID_AUTOBRIGHTNESS error for %s", strerror(errno));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ CapLog("VIDIOC_S_CTRL set V4L2_CID_AUTOBRIGHTNESS success.");
|
|
|
+ iret = 0;
|
|
|
+ }
|
|
|
iret = 0;
|
|
|
|
|
|
return iret;
|