libcamera: geometry: SizeRange: Add contains()
Add a method to check if a Size can fit inside a SizeRange. When determining if a size is containable take step values into account if they are not set to 0. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -92,6 +92,8 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
bool contains(const Size &size) const;
|
||||
|
||||
std::string toString() const;
|
||||
|
||||
Size min;
|
||||
|
||||
Reference in New Issue
Block a user