aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-08-24 09:30:21 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-03 16:28:28 -0400
commitfc714e70dd063e6887d09872ac6158b0c20cc817 (patch)
treea77f60bcc14a452c67166c0c4d4a2039efb2f9c2 /include/media
parent55093284fb6f9009a339e522773417bdd54ec144 (diff)
[media] V4L: vb2: prepare to support multi-size buffers
In preparation for the forthcoming VIDIOC_CREATE_BUFS ioctl add a "const struct v4l2_format *" argument to the .queue_setup() vb2 operation. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/videobuf2-core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
index dbd10acc8e80..692e35c232a9 100644
--- a/include/media/videobuf2-core.h
+++ b/include/media/videobuf2-core.h
@@ -218,9 +218,9 @@ struct vb2_buffer {
218 * pre-queued buffers before calling STREAMON 218 * pre-queued buffers before calling STREAMON
219 */ 219 */
220struct vb2_ops { 220struct vb2_ops {
221 int (*queue_setup)(struct vb2_queue *q, unsigned int *num_buffers, 221 int (*queue_setup)(struct vb2_queue *q, const struct v4l2_format *fmt,
222 unsigned int *num_planes, unsigned int sizes[], 222 unsigned int *num_buffers, unsigned int *num_planes,
223 void *alloc_ctxs[]); 223 unsigned int sizes[], void *alloc_ctxs[]);
224 224
225 void (*wait_prepare)(struct vb2_queue *q); 225 void (*wait_prepare)(struct vb2_queue *q);
226 void (*wait_finish)(struct vb2_queue *q); 226 void (*wait_finish)(struct vb2_queue *q);