检查设备支持的格式: 在设置格式之前,可以先获取设备支持的像素格式,以确认你尝试设置的V4L2_PIX_FMT_BGR24格式是否被支持。可以通过调用VIDIOC_ENUM_FMT来列举所有支持的格式。 structv4l2_fmtdesc fmt_desc; memset(&fmt_desc,0,sizeof(fmt_desc)); fmt_desc.type=V4L2_BUF_TYPE_VIDEO_CAPTURE; while(ioctl(...
I'm using the v4l2-mem2mem infrastructure for a driver I'm writing and I'm looking if it's possible to have the capture vb2_queue to take both V4L2_BUF_TYPE_VIDEO_CAPTURE and V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE buffers, across instances....