Hi Wen, On Friday 07 May 2010 20:20:38 Wang, Wen W wrote: > Hi all, > > I'm wondering if V4L2 framework supports dual stream video capture device > that transfer a preview stream and a regular stream (still capture or > video capture) at the same time. > > We are developing a device driver with such capability. Our proposal to do > this in V4L2 framework is to have two device nodes, one as primary node > for still/video capture and one for preview. If the device supports multiple simultaneous video streams, multiple video nodes is the way to go. > The primary still/video capture device node is used for device > configuration which can be compatible with open sourced applications. This > will ensure the normal V4L2 application can run without code modification. > Device node for preview will only accept preview buffer related > operations. Buffer synchronization for still/video capture and preview > will be done internally in the driver. I suspect that the preview device node will need to support more than the buffer-related operations, as you probably want applications to configure the preview video stream format and size. > This is our initial idea about the dual stream support in V4L2. Your > comments will be appreciated! You should use the media controller framework. This will allow applications to configure all sizes in the pipeline, including the frame sizes for the two video nodes. -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html