summaryrefslogtreecommitdiff
path: root/test/v4l2_subdevice
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-10 00:35:37 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-18 18:13:06 +0300
commit72afcbb0873215dd31de098e0461586ba913dcfb (patch)
treecc26f9a6e88bba71e832f09f51e98baa0b4fa340 /test/v4l2_subdevice
parente7f446e1edcc6afc47287d49030280e335fe6838 (diff)
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>
Diffstat (limited to 'test/v4l2_subdevice')
-rw-r--r--test/v4l2_subdevice/list_formats.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/v4l2_subdevice/list_formats.cpp b/test/v4l2_subdevice/list_formats.cpp
index 47ae3a1c..09dec9ab 100644
--- a/test/v4l2_subdevice/list_formats.cpp
+++ b/test/v4l2_subdevice/list_formats.cpp
@@ -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;
}
}