diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-06-13 12:45:00 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2019-06-25 14:01:47 +0200 |
commit | 3ef81b7f7f7a435a0c9c43d4146eb40aced99ec2 (patch) | |
tree | 48b01926133c28747f04c1025967bd6927451bec /src/libcamera/include | |
parent | eb068f4e67eedacd5c6dcc559c3554317be45c31 (diff) |
libcamera: camera_sensor: Add V4L2 control operations
Add operations to get and set control and to retrieve the informations
on a V4L2 control. For simple camera sensors, the operations are
directly called on the underlying V4L2 subdevice.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/include')
-rw-r--r-- | src/libcamera/include/camera_sensor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcamera/include/camera_sensor.h b/src/libcamera/include/camera_sensor.h index b8234802..b42e7b8e 100644 --- a/src/libcamera/include/camera_sensor.h +++ b/src/libcamera/include/camera_sensor.h @@ -17,6 +17,8 @@ namespace libcamera { class MediaEntity; +class V4L2ControlInfo; +class V4L2ControlList; class V4L2Subdevice; struct V4L2SubdeviceFormat; @@ -41,6 +43,10 @@ public: const Size &size) const; int setFormat(V4L2SubdeviceFormat *format); + const V4L2ControlInfo *getControlInfo(unsigned int id) const; + int getControls(V4L2ControlList *ctrls); + int setControls(V4L2ControlList *ctrls); + protected: std::string logPrefix() const; |