summaryrefslogtreecommitdiff
path: root/src/libcamera/include/geometry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/include/geometry.h')
-rw-r--r--src/libcamera/include/geometry.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libcamera/include/geometry.h b/src/libcamera/include/geometry.h
index b14f9732..d8d587d3 100644
--- a/src/libcamera/include/geometry.h
+++ b/src/libcamera/include/geometry.h
@@ -22,10 +22,17 @@ struct Rectangle {
};
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) {}
+ maxHeight(maxH)
+ {
+ }
unsigned int minWidth;
unsigned int minHeight;