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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user