libcamera: geometry: Add Size structure
Add a simple Size structure that contains an image width and height. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -40,6 +40,21 @@ 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__ */
|
||||
|
||||
Reference in New Issue
Block a user