[media] V4L: add two new ioctl()s for multi-size videobuffer management
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 28 Sep 2011 14:34:06 +0000 (11:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:28:24 +0000 (18:28 -0200)
commit2150158b31a3290cc883cf6dea4f5d6803b6b811
tree1c06a0fa4688a14df0ed9a630656d7188fb4420a
parentebc087d0905c41d7fe450866eb1afd1f661cba76
[media] V4L: add two new ioctl()s for multi-size videobuffer management

A possibility to preallocate and initialise buffers of different sizes
in V4L2 is required for an efficient implementation of a snapshot
mode. This patch adds two new ioctl()s: VIDIOC_CREATE_BUFS and
VIDIOC_PREPARE_BUF and defines respective data structures.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-compat-ioctl32.c
drivers/media/video/v4l2-ioctl.c
include/linux/videodev2.h
include/media/v4l2-ioctl.h