diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/geometry.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/libcamera/geometry.h b/include/libcamera/geometry.h index 7704ab5a..80f79c6b 100644 --- a/include/libcamera/geometry.h +++ b/include/libcamera/geometry.h @@ -38,21 +38,17 @@ struct Size { struct SizeRange { SizeRange() - : SizeRange(0, 0, 0, 0) { } SizeRange(unsigned int minW, unsigned int minH, unsigned int maxW, unsigned int maxH) - : minWidth(minW), minHeight(minH), maxWidth(maxW), - maxHeight(maxH) + : min(minW, minH), max(maxW, maxH) { } - unsigned int minWidth; - unsigned int minHeight; - unsigned int maxWidth; - unsigned int maxHeight; + Size min; + Size max; }; } /* namespace libcamera */ |