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>
This commit is contained in:
Jacopo Mondi 2020-04-20 10:32:45 +02:00
parent 66a1928a0a
commit 96653be728
5 changed files with 16 additions and 16 deletions

View file

@ -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;
};