summaryrefslogtreecommitdiff
path: root/src/libcamera/controls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/controls.cpp')
-rw-r--r--src/libcamera/controls.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp
index 34a8c8dd..0031cd06 100644
--- a/src/libcamera/controls.cpp
+++ b/src/libcamera/controls.cpp
@@ -357,10 +357,12 @@ Control<int64_t>::Control(unsigned int id, const char *name)
* \brief Construct a ControlRange with minimum and maximum range parameters
* \param[in] min The control minimum value
* \param[in] max The control maximum value
+ * \param[in] def The control default value
*/
ControlRange::ControlRange(const ControlValue &min,
- const ControlValue &max)
- : min_(min), max_(max)
+ const ControlValue &max,
+ const ControlValue &def)
+ : min_(min), max_(max), def_(def)
{
}
@@ -377,6 +379,12 @@ ControlRange::ControlRange(const ControlValue &min,
*/
/**
+ * \fn ControlRange::def()
+ * \brief Retrieve the default value of the control
+ * \return A ControlValue with the default value for the control
+ */
+
+/**
* \brief Provide a string representation of the ControlRange
*/
std::string ControlRange::toString() const