使用mini6410,Linux 2.6.28.6,注意这里/dev/video0 ,/dev/video1,是CMOS摄像头,它们的驱动对于V4l1,并且一运行某些V4L1的ioctl命令的就产生oops.关于修正这一些BUG,可以参见我的博文使用用USB摄像头,我使用的是ZC301摄像头.设备结点是/dev/video2三种测试结果如下:
./test_v4l /dev/video2
### v4l device info [/dev/video2] ###
general info
VIDIOCGCAP = (0x803c7601)
cap.name :"PC Camera"
cap.channels :1
cap.audios :0
cap.maxwidth :640
cap.maxheight :480
cap.minwidth :48
cap.minheight :32
cap.type :0x1 [VID_TYPE_CAPTURE,]
channels
VIDIOCGCAP (0) = (0x803c7601)
channel.channel :0
channel.name :"zc3xx"
channel.tuners :0
channel.flags :0x0 []
channel.type :0x2 [VIDEO_TYPE_CAMERA,]
channel.norm :0
VIDIOCGPICT = (0x800e7606)
pic.brightness :32896
pic.hue :0
pic.colour :0
pic.contrast :32768
pic.whiteness :39321
pic.depth :8
pic.palette :
-----------------------------------------------------------------------
./test_v4l /dev/video0
### v4l device info [/dev/video0] ###
general info
VIDIOCGCAP = (0x803c7601)
cap.name :"s3c-fimc0"
cap.channels :2
cap.audios :0
cap.maxwidth :0
cap.maxheight :0
cap.minwidth :48
cap.minheight :32
cap.type :0x29 [VID_TYPE_CAPTURE,VID_TYPE_OVERLAY,VID_TYPE_CLIPPING,]
channels
VIDIOCGCAP (0) = (0x803c7601)
channel.channel :0
channel.name :"External Camera Input"
channel.tuners :0
channel.flags :0x0 []
channel.type :0x2 [VIDEO_TYPE_CAMERA,]
channel.norm :0
VIDIOCGCAP (1) = (0x803c7601)
channel.channel :1
channel.name :"Memory Input"
channel.tuners :0
channel.flags :0x0 []
channel.type :0x2 [VIDEO_TYPE_CAMERA,]
channel.norm :0
VIDIOCGPICT = (0x800e7606)
pic.brightness :0
pic.hue :0
pic.colour :0
pic.contrast :0
pic.whiteness :0
pic.depth :32
pic.palette :
[root@FriendlyARM 2]#
--------------------------------------------------------------------------------------------------------------------------
./test_v4l /dev/video1
### v4l device info [/dev/video1] ###
general info
VIDIOCGCAP = (0x803c7601)
cap.name :"s3c-fimc1"
cap.channels :2
cap.audios :0
cap.maxwidth :0
cap.maxheight :0
cap.minwidth :48
cap.minheight :32
cap.type :0x29 [VID_TYPE_CAPTURE,VID_TYPE_OVERLAY,VID_TYPE_CLIPPING,]
channels
VIDIOCGCAP (0) = (0x803c7601)
channel.channel :0
channel.name :"External Camera Input"
channel.tuners :0
channel.flags :0x0 []
channel.type :0x2 [VIDEO_TYPE_CAMERA,]
channel.norm :0
VIDIOCGCAP (1) = (0x803c7601)
channel.channel :1
channel.name :"Memory Input"
channel.tuners :0
channel.flags :0x0 []
channel.type :0x2 [VIDEO_TYPE_CAMERA,]
channel.norm :0
VIDIOCGPICT = (0x800e7606)
pic.brightness :0
pic.hue :0
pic.colour :0
pic.contrast :0
pic.whiteness :0
pic.depth :32
pic.palette :
[root@FriendlyARM 2]#