Hi, On 06/28/2017 03:31 PM, Sakari Ailus wrote:
IMO VB2/V4L2 could better support conversion between single and multi-planar buffer types so that the applications could just use any and drivers could manage with one. I don't have a strong opinion either way, but IMO this could be well addressed later on by improving the framework when (or if) the support for formats such as NV12 is added.
We had already conversion between single and multi-planar buffer types in the kernel. But for some reasons it got removed. [1] The conversion is supposed to be done in libv4l2, which is not mandatory so it cannot be used to ensure backward compatibility while moving driver from one API to the other. [1] commit 1d0c86cad38678fa42f6d048a7b9e4057c8c16fc [media] media: v4l: remove single to multiplane conversion Regards, Sylwester