diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-04-02 11:41:30 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2019-04-03 10:11:17 +0200 |
commit | 289343a24a0dce38e646e6b5cee97b770f849c11 (patch) | |
tree | acec818822605c005d819c52ff8a49781c935460 /src/libcamera/include/geometry.h | |
parent | 05a8608f1f20db721ef1cd9210f70a167eb1f54c (diff) |
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>
Diffstat (limited to 'src/libcamera/include/geometry.h')
-rw-r--r-- | src/libcamera/include/geometry.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libcamera/include/geometry.h b/src/libcamera/include/geometry.h index d8d587d3..f41017aa 100644 --- a/src/libcamera/include/geometry.h +++ b/src/libcamera/include/geometry.h @@ -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__ */ |