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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user