libcamera: v4l2_controls: Add min and max to V4L2ControlInfo

Add min() and max() methods to V4L2ControlInfo to report the control's
minimum and maximum value respectively.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2019-07-02 16:59:17 +03:00
parent f137451817
commit bd0245a0dc
2 changed files with 20 additions and 0 deletions
+6
View File
@@ -28,11 +28,17 @@ public:
size_t size() const { return size_; }
const std::string &name() const { return name_; }
int64_t min() const { return min_; }
int64_t max() const { return max_; }
private:
unsigned int id_;
unsigned int type_;
size_t size_;
std::string name_;
int64_t min_;
int64_t max_;
};
class V4L2Control