/* Settings v4l2_fmtdesc */
memset(&fmt, 0, sizeof(fmt));
fmt.index = 0;
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
while ((ret = ioctl(cam_c_fp, VIDIOC_ENUM_FMT, &fmt)) == 0)
{
fmt.index++;
printf("{ pixelformat = ''%c%c%c%c'', description = ''%s'' }\n",
fmt.pixelformat & 0xFF, (fmt.pixelformat >> 8) & 0xFF, (fmt.pixelformat >> 16) & 0xFF,(fmt.pixelformat >> 24) & 0xFF, fmt.description);
}
发现输出结果为:pixelformat = ”MJPG“,description = ”MJPEG“。。
因为这样所以上面的read才会出错吗?
是不是这样就不能使用yuvl了?