首页| 论坛| 消息

标题:QT4进行V4L摄像头编程时的疑问
作者:yanyanzhou
日期:2010-05-29 21:16
内容:

本人使用的是QT4,编译时红色部分出错,应该格式不正确。请问各位达人应该怎么办?
void * camera(void * pram)
{
QImage image;
QFrame * camframe = (QFrame *)pram;
QRect rect = camframe->frameRect();//
int w = rect.width();
int h = rect.height();
QPainter p(camframe);
QRgb * point;
int fb_bpp = 32;
int a,r, g, b;
int i = 0;
int x, y;
int frame = 0;
uchar *buffer;
//printf("camera started OK!\n");
image.create(width, height, fb_bpp, 0, QImage::IgnoreEndian);
v4lopen(&video);
//printf("the value of video->fd is %d\n",video.fd);
//printf("v4lopen is ok!\n");
if( v4lgetcapability(&video)

回复 发表
主题 版块