diff options
author | Antti Palosaari <crope@iki.fi> | 2013-12-14 11:10:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-05 12:15:16 -0500 |
commit | 855df1dc6fdb519c7552053bc095f821bc360905 (patch) | |
tree | 832a87b20c181ce9bfe6cc2fdffee7f712590728 /include/media | |
parent | 6f3073b8dcdcf7a0eabbdd60ec3706bb9d4a131c (diff) |
[media] v4l: define own IOCTL ops for SDR FMT
Use own format ops for SDR data:
vidioc_enum_fmt_sdr_cap
vidioc_g_fmt_sdr_cap
vidioc_s_fmt_sdr_cap
vidioc_try_fmt_sdr_cap
Signed-off-by: Antti Palosaari <crope@iki.fi>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-ioctl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index e0b74a430b3a..8be32f5824bf 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h | |||
@@ -40,6 +40,8 @@ struct v4l2_ioctl_ops { | |||
40 | struct v4l2_fmtdesc *f); | 40 | struct v4l2_fmtdesc *f); |
41 | int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh, | 41 | int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh, |
42 | struct v4l2_fmtdesc *f); | 42 | struct v4l2_fmtdesc *f); |
43 | int (*vidioc_enum_fmt_sdr_cap) (struct file *file, void *fh, | ||
44 | struct v4l2_fmtdesc *f); | ||
43 | 45 | ||
44 | /* VIDIOC_G_FMT handlers */ | 46 | /* VIDIOC_G_FMT handlers */ |
45 | int (*vidioc_g_fmt_vid_cap) (struct file *file, void *fh, | 47 | int (*vidioc_g_fmt_vid_cap) (struct file *file, void *fh, |
@@ -62,6 +64,8 @@ struct v4l2_ioctl_ops { | |||
62 | struct v4l2_format *f); | 64 | struct v4l2_format *f); |
63 | int (*vidioc_g_fmt_vid_out_mplane)(struct file *file, void *fh, | 65 | int (*vidioc_g_fmt_vid_out_mplane)(struct file *file, void *fh, |
64 | struct v4l2_format *f); | 66 | struct v4l2_format *f); |
67 | int (*vidioc_g_fmt_sdr_cap) (struct file *file, void *fh, | ||
68 | struct v4l2_format *f); | ||
65 | 69 | ||
66 | /* VIDIOC_S_FMT handlers */ | 70 | /* VIDIOC_S_FMT handlers */ |
67 | int (*vidioc_s_fmt_vid_cap) (struct file *file, void *fh, | 71 | int (*vidioc_s_fmt_vid_cap) (struct file *file, void *fh, |
@@ -84,6 +88,8 @@ struct v4l2_ioctl_ops { | |||
84 | struct v4l2_format *f); | 88 | struct v4l2_format *f); |
85 | int (*vidioc_s_fmt_vid_out_mplane)(struct file *file, void *fh, | 89 | int (*vidioc_s_fmt_vid_out_mplane)(struct file *file, void *fh, |
86 | struct v4l2_format *f); | 90 | struct v4l2_format *f); |
91 | int (*vidioc_s_fmt_sdr_cap) (struct file *file, void *fh, | ||
92 | struct v4l2_format *f); | ||
87 | 93 | ||
88 | /* VIDIOC_TRY_FMT handlers */ | 94 | /* VIDIOC_TRY_FMT handlers */ |
89 | int (*vidioc_try_fmt_vid_cap) (struct file *file, void *fh, | 95 | int (*vidioc_try_fmt_vid_cap) (struct file *file, void *fh, |
@@ -106,6 +112,8 @@ struct v4l2_ioctl_ops { | |||
106 | struct v4l2_format *f); | 112 | struct v4l2_format *f); |
107 | int (*vidioc_try_fmt_vid_out_mplane)(struct file *file, void *fh, | 113 | int (*vidioc_try_fmt_vid_out_mplane)(struct file *file, void *fh, |
108 | struct v4l2_format *f); | 114 | struct v4l2_format *f); |
115 | int (*vidioc_try_fmt_sdr_cap) (struct file *file, void *fh, | ||
116 | struct v4l2_format *f); | ||
109 | 117 | ||
110 | /* Buffer handlers */ | 118 | /* Buffer handlers */ |
111 | int (*vidioc_reqbufs) (struct file *file, void *fh, struct v4l2_requestbuffers *b); | 119 | int (*vidioc_reqbufs) (struct file *file, void *fh, struct v4l2_requestbuffers *b); |