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
+4 -4
View File
@@ -355,8 +355,8 @@ int V4L2Subdevice::setSelection(unsigned int pad, unsigned int target,
sel.r.left = rect->x;
sel.r.top = rect->y;
sel.r.width = rect->w;
sel.r.height = rect->h;
sel.r.width = rect->width;
sel.r.height = rect->height;
int ret = ioctl(VIDIOC_SUBDEV_S_SELECTION, &sel);
if (ret < 0) {
@@ -368,8 +368,8 @@ int V4L2Subdevice::setSelection(unsigned int pad, unsigned int target,
rect->x = sel.r.left;
rect->y = sel.r.top;
rect->w = sel.r.width;
rect->h = sel.r.height;
rect->width = sel.r.width;
rect->height = sel.r.height;
return 0;
}