summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-15 01:43:34 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-15 17:29:59 +0300
commit935aec66ae50ec2448e052c95757b2a83e3999ba (patch)
tree89fee10062105c3321c80c1e95e8f9fa6adb7abf /include
parent120cbd802463803165d342a0206f820bd1e11e6c (diff)
libcamera: geometry: Define Rectangle after Size
A subsequent change to the Rectangle will require the definition of the Size to be available. Define Rectangle after Size to ease review of that change. No code change is included. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
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 d217cfd5..f3088d33 100644
--- a/include/libcamera/geometry.h
+++ b/include/libcamera/geometry.h
@@ -13,21 +13,6 @@
namespace libcamera {
-struct Rectangle {
- int x;
- int y;
- unsigned int width;
- unsigned int height;
-
- const std::string toString() const;
-};
-
-bool operator==(const Rectangle &lhs, const Rectangle &rhs);
-static inline bool operator!=(const Rectangle &lhs, const Rectangle &rhs)
-{
- return !(lhs == rhs);
-}
-
struct Size {
Size()
: Size(0, 0)
@@ -141,6 +126,21 @@ static inline bool operator!=(const SizeRange &lhs, const SizeRange &rhs)
return !(lhs == rhs);
}
+struct Rectangle {
+ int x;
+ int y;
+ unsigned int width;
+ unsigned int height;
+
+ const std::string toString() const;
+};
+
+bool operator==(const Rectangle &lhs, const Rectangle &rhs);
+static inline bool operator!=(const Rectangle &lhs, const Rectangle &rhs)
+{
+ return !(lhs == rhs);
+}
+
} /* namespace libcamera */
#endif /* __LIBCAMERA_GEOMETRY_H__ */