summaryrefslogtreecommitdiff
path: root/src/qcam/format_converter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/format_converter.h')
-rw-r--r--src/qcam/format_converter.h5
1 files changed, 3 insertions, 2 deletions
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 <stddef.h>
+#include <QSize>
+
#include <libcamera/pixelformats.h>
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);