mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
ebc087d090
commit
2150158b31
4 changed files with 115 additions and 8 deletions
|
|
@ -122,6 +122,8 @@ struct v4l2_ioctl_ops {
|
|||
int (*vidioc_qbuf) (struct file *file, void *fh, struct v4l2_buffer *b);
|
||||
int (*vidioc_dqbuf) (struct file *file, void *fh, struct v4l2_buffer *b);
|
||||
|
||||
int (*vidioc_create_bufs)(struct file *file, void *fh, struct v4l2_create_buffers *b);
|
||||
int (*vidioc_prepare_buf)(struct file *file, void *fh, struct v4l2_buffer *b);
|
||||
|
||||
int (*vidioc_overlay) (struct file *file, void *fh, unsigned int i);
|
||||
int (*vidioc_g_fbuf) (struct file *file, void *fh,
|
||||
|
|
|
|||
Loading…
Reference in a new issue