日期:2014-05-16 浏览次数:20603 次
ret = ioctl(cam_fd,VIDIOCGMBUF,&cam_mbuf); if( ret<0 ) { printf("ERROR:VIDIOCGMBUF,Can't get video_mbuf\n"); }
Device name:USB 2.0 PC Cam Width:320 ~ 48 Height:240 ~ 32 VIDIOCGPICT brightnes=30583 hue=0 color=516 contrast=43346 whiteness=0depth=16 p alette=8 ERROR:VIDIOCGMBUF,Can't get video_mbuf Frames:0 ERROR:mmap Buffer size:0 Offset:0 ERROR: VIDIOCMCAPTURE ERROR: VIDIOCSYNC Segmentation fault [root@FORLINX6410]#