libcamera  v0.0.0
Supporting cameras in Linux since 2019
v4l2_controls.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  * Copyright (C) 2019, Google Inc.
4  *
5  * v4l2_controls.h - V4L2 Controls Support
6  */
7 
8 #ifndef __LIBCAMERA_INTERNAL_V4L2_CONTROLS_H__
9 #define __LIBCAMERA_INTERNAL_V4L2_CONTROLS_H__
10 
11 #include <linux/videodev2.h>
12 
13 #include <libcamera/controls.h>
14 
15 namespace libcamera {
16 
17 class V4L2ControlId : public ControlId
18 {
19 public:
20  V4L2ControlId(const struct v4l2_query_ext_ctrl &ctrl);
21 };
22 
24 {
25 public:
26  V4L2ControlInfo(const struct v4l2_query_ext_ctrl &ctrl);
27 };
28 
29 } /* namespace libcamera */
30 
31 #endif /* __LIBCAMERA_INTERNAL_V4L2_CONTROLS_H__ */
Control static metadata.
Definition: controls.h:209
Describe the limits of valid values for a Control.
Definition: controls.h:266
V4L2 control static metadata.
Definition: v4l2_controls.h:18
V4L2ControlId(const struct v4l2_query_ext_ctrl &ctrl)
Construct a V4L2ControlId from a struct v4l2_query_ext_ctrl.
Definition: v4l2_controls.cpp:104
Convenience specialisation of ControlInfo for V4L2 controls.
Definition: v4l2_controls.h:24
V4L2ControlInfo(const struct v4l2_query_ext_ctrl &ctrl)
Construct a V4L2ControlInfo from a struct v4l2_query_ext_ctrl.
Definition: v4l2_controls.cpp:122
Framework to manage controls related to an object.