libcamera: geometry: Use Size to store min and max in SizeRange
Instead of storing four integers for the minimum and maximum width and height in the SizeRange class, use two instance of the Size class for the minimum and maximum sizes. While it at replace the mention of image size with size in the SizeRange documentation, as the Size class isn't limited to image sizes. 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>
This commit is contained in:
@@ -37,10 +37,10 @@ void ListFormatsTest::printFormats(unsigned int pad,
|
||||
for (SizeRange &size : sizes) {
|
||||
cout << " mbus code: 0x" << setfill('0') << setw(4)
|
||||
<< hex << code << endl;
|
||||
cout << " min width: " << dec << size.minWidth << endl;
|
||||
cout << " min height: " << dec << size.minHeight << endl;
|
||||
cout << " max width: " << dec << size.maxWidth << endl;
|
||||
cout << " max height: " << dec << size.maxHeight << endl;
|
||||
cout << " min width: " << dec << size.min.width << endl;
|
||||
cout << " min height: " << dec << size.min.height << endl;
|
||||
cout << " max width: " << dec << size.max.width << endl;
|
||||
cout << " max height: " << dec << size.max.height << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user