summaryrefslogtreecommitdiff
path: root/include/libcamera/controls.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-09-28 16:22:24 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-05 20:02:51 +0300
commitace50f75a4d4c10c0deb90fc857525b565cdd8c9 (patch)
treeb78482ea5b759f6b3cc37d45ad75594f387445ab /include/libcamera/controls.h
parentf1ab117e81e55b9b030dd921394dde294f7c3dc0 (diff)
libcamera: controls: Rename ControlInfo to ControlRange
The ControlInfo class stores a range of valid values for a control. Its name is vague, as "info" has multiple meanings. Rename it to ControlRange. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/libcamera/controls.h')
-rw-r--r--include/libcamera/controls.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
index 854ea3b8..d3eea643 100644
--- a/include/libcamera/controls.h
+++ b/include/libcamera/controls.h
@@ -95,11 +95,11 @@ private:
Control &operator=(const Control &) = delete;
};
-class ControlInfo
+class ControlRange
{
public:
- explicit ControlInfo(const ControlValue &min = 0,
- const ControlValue &max = 0);
+ explicit ControlRange(const ControlValue &min = 0,
+ const ControlValue &max = 0);
const ControlValue &min() const { return min_; }
const ControlValue &max() const { return max_; }
@@ -111,7 +111,7 @@ private:
ControlValue max_;
};
-using ControlInfoMap = std::unordered_map<const ControlId *, ControlInfo>;
+using ControlInfoMap = std::unordered_map<const ControlId *, ControlRange>;
class ControlList
{