Hi Mauro,
On Monday 23 January 2012 15:32:40 Mauro Carvalho Chehab wrote:
Em 23-01-2012 11:51, Tomasz Stanislawski escreveu:
This patch adds extension to V4L2 api. It allow to export a mmap buffer as file descriptor. New ioctl VIDIOC_EXPBUF is added. It takes a buffer offset used by mmap and return a file descriptor on success.
This requires more discussions.
The usecase for this new API seems to replace the features previously provided by the overlay mode. There, not only the buffer were exposed to userspace, but some control were provided, in order to control the overlay window.
Please start a separate thread about that, explaining how are you imagining that a V4L2 application would use such ioctl.
I think this is currently just a proof of concept. I'm sure Tomasz will discuss the V4L2 API extension on the linux-media list when the code will be stabilized.