楼主好:
我的这部分一直有问题
// Set the desired picture mode to RGB32.
struct video_picture pict;
memset( &pict, 0, sizeof( pict ) );
ioctl( fd, VIDIOCGPICT, &pict );
pict.palette = VIDEO_PALETTE_RGB32;
if ( ioctl( fd, VIDIOCSPICT, &pict ) < 0 ) {
qWarning( "%s: could not set the picture mode", VIDEO_DEVICE );
close( fd );
fd = -1;
return;
}
编译时说不能could not set the picture mode,怎么办,我也修改成其他格式,但是还是没什么用,请问是我的摄像头问题,还是什么,麻烦楼主解决
谢谢了