Hi all, So I've been looking into converting cx18 to videobuf2 for about a day. Overall I think I can make it work. I might not be able to take full advantage of some things. I've encountered these design challenges already: 1. Supporting V4L2_MPEG_STREAM_VBI_FMT_IVTV http://linuxtv.org/downloads/v4l-dvb-apis/sliced.html#id2811930 is going to be a hassle, if not impossible, in a single-planar format without copying buffers and losing the benefit of zero-copy. 2. A new technique for detecting missed buffer notifications from the CX23418 is needed. The old technique I used won't work, since it relies on buffer allocations not being very dynamic at all. 3. When staring an MPEG capture, the cx18 and ivtv driver can automatically start associated metadata or data streams: MPEG Index and/or Sliced VBI. Unfortunately the CX23418 engine generally DMAs these buffers at different rates, so they are not in lock-step. To take adavantage of the multiplanar support in vb2 (which is nice, BTW), I can only use zero-copy for the primary capture stream. 4. When starting up one of the associated data or metadata streams, the cx18 driver will likely need to use a vb2 queue internally and not hook it to any particular device node in user space. I still need to investigate if this is possible; I think it should be. So I have some questions 1. Do we have any mulitplanar FourCCs defined yet? 2. Would an MPEG multiplanar format with these planes be acceptable? MPEG MPEG Index MPEG Private packets (holding struct v4l2_mpeg_vbi_fmt_ivtv) 3. Is a multiplanar format for a particular FourCC envisionsed to always have all of its metadata planes present? For example, what about the above with the "MPEG Index" absent: MPEG MPEG Private packets (holding struct v4l2_mpeg_vbi_fmt_ivtv) or MPEG MPEG Index Sliced VBI (struct v4l2_sliced_vbi_data) or MPEG Sliced VBI (struct v4l2_sliced_vbi_data) Instead of having a separate FourCC for each permutaion, would it make sense for a plane format be added to struct v4l2_plane_pix_format? 3. I have some additional ideas for some multiplanar formats HM12 Sliced VBI (struct v4l2_sliced_vbi_data) HM12 Raw VBI UYVY Sliced VBI (struct v4l2_sliced_vbi_data) UYVY Raw VBI (The CX23418 can actually produce UYVY in hardware, unlike the CX23415/6.) These multiplanar image/data formats can certainly help applications keep Video and VBI synchronized. Would this sort of thing be acceptable? The same question about FourCC's for each permutation applies. Such multiplanar image/data formats somewhat obviate the need to use the seperate V4L2 device node for VBI when capturing video. [I'd throw a PCM audio data plane in there too, if I though I could get away with it. ;) ] Regards, Andy -- 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