mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 00:25:07 +03:00
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>
This commit is contained in:
parent
f1ab117e81
commit
ace50f75a4
4 changed files with 26 additions and 26 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue