libcamera: geometry: SizeRange: Add constructor for a single size

The SizeRange can describe a single size where min == max. Add a
constructor to help create such a description.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2019-05-26 18:27:09 +02:00
parent c6090542cd
commit 85a9b66134
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -196,6 +196,13 @@ bool operator<(const Size &lhs, const Size &rhs)
* \brief Construct a size range initialized to 0
*/
/**
* \fn SizeRange::SizeRange(unsigned int width, unsigned int height)
* \brief Construct a size range representing a single size
* \param[in] width The size width
* \param[in] height The size height
*/
/**
* \fn SizeRange::SizeRange(unsigned int minW, unsigned int minH,
* unsigned int maxW, unsigned int maxH)