diff options
author | Tomasz Stanislawski <t.stanislaws@samsung.com> | 2011-08-10 09:37:47 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-10 20:17:45 -0500 |
commit | 0e8caaceff160ad821c83d798fc03812cb810560 (patch) | |
tree | fd5f0687bff110fddb62b8f22ac31f41e8bc11f6 /include/media | |
parent | dab734ec95168488c4b32632e968ce885a083078 (diff) |
[media] v4l: add support for selection api
This patch introduces new api for a precise control of cropping and composing
features for video devices. The new ioctls are VIDIOC_S_SELECTION and
VIDIOC_G_SELECTION.
Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-ioctl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index 4d1c74ad4c84..3f5d60fc5df6 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h | |||
@@ -196,6 +196,10 @@ struct v4l2_ioctl_ops { | |||
196 | struct v4l2_crop *a); | 196 | struct v4l2_crop *a); |
197 | int (*vidioc_s_crop) (struct file *file, void *fh, | 197 | int (*vidioc_s_crop) (struct file *file, void *fh, |
198 | struct v4l2_crop *a); | 198 | struct v4l2_crop *a); |
199 | int (*vidioc_g_selection) (struct file *file, void *fh, | ||
200 | struct v4l2_selection *s); | ||
201 | int (*vidioc_s_selection) (struct file *file, void *fh, | ||
202 | struct v4l2_selection *s); | ||
199 | /* Compression ioctls */ | 203 | /* Compression ioctls */ |
200 | int (*vidioc_g_jpegcomp) (struct file *file, void *fh, | 204 | int (*vidioc_g_jpegcomp) (struct file *file, void *fh, |
201 | struct v4l2_jpegcompression *a); | 205 | struct v4l2_jpegcompression *a); |