summaryrefslogtreecommitdiff
path: root/include/libcamera/geometry.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-04-20 10:32:45 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-04-26 17:12:42 +0200
commit96653be72831e9d26e5d6076ebb6be98a51a3124 (patch)
tree4a14e2efb82c703c0db676cb73b384991a7aca55 /include/libcamera/geometry.h
parent66a1928a0a7a14c19f10d8fd09980258912f515e (diff)
libcamera: geometry: Rename Rectangle fields
The Rectangle class members that represents the rectangle horizontal and vertical sizes are named 'w' and 'h', in contrast with the Size and SizeRange classes which use 'width' and 'height', resulting in having to look at class definition every time to know which names to use. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include/libcamera/geometry.h')
-rw-r--r--include/libcamera/geometry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/geometry.h b/include/libcamera/geometry.h
index 7f1b29fe..2d364891 100644
--- a/include/libcamera/geometry.h
+++ b/include/libcamera/geometry.h
@@ -15,8 +15,8 @@ namespace libcamera {
struct Rectangle {
int x;
int y;
- unsigned int w;
- unsigned int h;
+ unsigned int width;
+ unsigned int height;
const std::string toString() const;
};