V4L2 has no equivalent of the VIDIOCGPICT and VIDIOCSPICT ioctl and struct video_picture.
The following fields where replaced by V4L2 controls accessible with the VIDIOC_QUERYCTRL, VIDIOC_G_CTRL and VIDIOC_S_CTRL ioctls:
struct video_picture V4L2 Control ID
brightness V4L2_CID_BRIGHTNESS
hue V4L2_CID_HUE
colour V4L2_CID_SATURATION
contrast V4L2_CID_CONTRAST
whiteness V4L2_CID_WHITENESS
测试程序如下:
struct v4l2_control ctl;
ctl.id=V4L2_CID_BRIGHTNESS;
ctl.value=100;
ioctl(fd,VIDIOC_S_CTRL,&ctl);
运行时没有出错,但亮度没有变化,CMOS摄像头仍然会自动调整亮度。
继续请教????
Tiny6410 Linux下如何手动调整CMOS摄像头亮度??