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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libcamera/include/geometry.h b/src/libcamera/include/geometry.h
index cc146da7..eadc4ed4 100644
--- a/src/libcamera/include/geometry.h
+++ b/src/libcamera/include/geometry.h
@@ -17,6 +17,18 @@ struct Rectangle {
unsigned int h;
};
+struct SizeRange {
+ SizeRange(unsigned int minW, unsigned int minH,
+ unsigned int maxW, unsigned int maxH)
+ : minWidth(minW), minHeight(minH), maxWidth(maxW),
+ maxHeight(maxH) {}
+
+ unsigned int minWidth;
+ unsigned int minHeight;
+ unsigned int maxWidth;
+ unsigned int maxHeight;
+};
+
} /* namespace libcamera */
#endif /* __LIBCAMERA_GEOMETRY_H__ */