summaryrefslogtreecommitdiff
path: root/src/libcamera/controls.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-27 07:30:43 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-20 21:47:29 +0200
commitc27b7c103a7d0e8a6ca02b5f6e42372d1ee6993e (patch)
treee2b2bdd88f5ba2765c8d237b2871656e5702fec1 /src/libcamera/controls.cpp
parent76b9923e55fd615d0edf065085a4c14475304868 (diff)
libcamera: controls: Add operator== and operator!= to ControlRange
Allow comparision of control ranges by adding the required operators. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/controls.cpp')
-rw-r--r--src/libcamera/controls.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp
index c23c1b88..c743c13b 100644
--- a/src/libcamera/controls.cpp
+++ b/src/libcamera/controls.cpp
@@ -384,6 +384,18 @@ std::string ControlRange::toString() const
}
/**
+ * \fn bool ControlRange::operator==()
+ * \brief Compare ControlRange instances for equality
+ * \return True if the ranges have identical min and max, false otherwise
+ */
+
+/**
+ * \fn bool ControlRange::operator!=()
+ * \brief Compare ControlRange instances for non equality
+ * \return False if the ranges have identical min and max, true otherwise
+ */
+
+/**
* \typedef ControlIdMap
* \brief A map of numerical control ID to ControlId
*