From acd02afab0298bc91099fa280f13775e8e5e315b Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 22 Mar 2020 12:53:13 +0200 Subject: 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 Reviewed-by: Kieran Bingham --- src/qcam/format_converter.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/qcam/format_converter.h') diff --git a/src/qcam/format_converter.h b/src/qcam/format_converter.h index 96bde238..5e28adf0 100644 --- a/src/qcam/format_converter.h +++ b/src/qcam/format_converter.h @@ -9,6 +9,8 @@ #include +#include + #include class QImage; @@ -16,8 +18,7 @@ class QImage; class FormatConverter { public: - int configure(const libcamera::PixelFormat &format, unsigned int width, - unsigned int height); + int configure(const libcamera::PixelFormat &format, const QSize &size); void convert(const unsigned char *src, size_t size, QImage *dst); -- cgit v1.2.1