qcam: Use QSize through the code base

Qt has a QSize class to store sizes. Use it to replace width and height
where applicable.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2020-03-22 12:53:13 +02:00
parent ac02d741dc
commit acd02afab0
5 changed files with 19 additions and 20 deletions
+3 -3
View File
@@ -26,7 +26,7 @@
#endif
int FormatConverter::configure(const libcamera::PixelFormat &format,
unsigned int width, unsigned int height)
const QSize &size)
{
switch (format) {
case DRM_FORMAT_NV12:
@@ -139,8 +139,8 @@ int FormatConverter::configure(const libcamera::PixelFormat &format,
};
format_ = format;
width_ = width;
height_ = height;
width_ = size.width();
height_ = size.height();
return 0;
}