从USB摄像头读取数据,read_frame后,能看到pd中有数据,但后面做loadFromData操作时,返回失败。请问,可能是什么原因?
QImage image;
read_frame (&pd);
image.loadFromData((uchar*)pd.buffers[pd.buf.index].start, pd.fmt.fmt.pix.sizeimage);
loadFromData是qimage.h中提供的函数,只有声明,没有实现的函数体,没法跟踪。这种问题有什么好多处理方法?