linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH zbar 1/1] v4l2: add fallback for systems without v4l2_query_ext_ctrl
@ 2019-01-25  1:48 james.hilliard1
  0 siblings, 0 replies; only message in thread
From: james.hilliard1 @ 2019-01-25  1:48 UTC (permalink / raw)
  To: mchehab+samsung; +Cc: linux-media, James Hilliard

From: James Hilliard <james.hilliard1@gmail.com>

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 zbar/video/v4l2.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/zbar/video/v4l2.c b/zbar/video/v4l2.c
index 0d18094..1610b95 100644
--- a/zbar/video/v4l2.c
+++ b/zbar/video/v4l2.c
@@ -55,6 +55,28 @@
 #define V4L2_FORMATS_MAX 64
 #define V4L2_FORMATS_SIZE_MAX 256
 
+#ifndef VIDIOC_QUERY_EXT_CTRL
+#define VIDIOC_QUERY_EXT_CTRL   _IOWR('V', 103, struct v4l2_query_ext_ctrl)
+#define V4L2_CTRL_MAX_DIMS    (4)
+
+struct v4l2_query_ext_ctrl {
+    __u32            id;
+    __u32            type;
+    char             name[32];
+    __s64            minimum;
+    __s64            maximum;
+    __u64            step;
+    __s64            default_value;
+    __u32                flags;
+    __u32                elem_size;
+    __u32                elems;
+    __u32                nr_of_dims;
+    __u32                dims[V4L2_CTRL_MAX_DIMS];
+    __u32            reserved[32];
+};
+
+#endif
+
 typedef struct video_controls_priv_s {
     struct video_controls_s s;
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-25  1:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-25  1:48 [PATCH zbar 1/1] v4l2: add fallback for systems without v4l2_query_ext_ctrl james.hilliard1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).