summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/geometry.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/libcamera/geometry.h b/include/libcamera/geometry.h
index f41017aa..7704ab5a 100644
--- a/include/libcamera/geometry.h
+++ b/include/libcamera/geometry.h
@@ -21,6 +21,21 @@ struct Rectangle {
const std::string toString() const;
};
+struct Size {
+ Size()
+ : Size(0, 0)
+ {
+ }
+
+ Size(unsigned int w, unsigned int h)
+ : width(w), height(h)
+ {
+ }
+
+ unsigned int width;
+ unsigned int height;
+};
+
struct SizeRange {
SizeRange()
: SizeRange(0, 0, 0, 0)
@@ -40,21 +55,6 @@ struct SizeRange {
unsigned int maxHeight;
};
-struct Size {
- Size()
- : Size(0, 0)
- {
- }
-
- Size(unsigned int w, unsigned int h)
- : width(w), height(h)
- {
- }
-
- unsigned int width;
- unsigned int height;
-};
-
} /* namespace libcamera */
#endif /* __LIBCAMERA_GEOMETRY_H__ */