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>
This commit is contained in:
Laurent Pinchart
2020-07-15 01:43:34 +03:00
parent 120cbd8024
commit 935aec66ae
2 changed files with 76 additions and 76 deletions
+15 -15
View File
@@ -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__ */