summaryrefslogtreecommitdiff
path: root/src/qcam/format_converter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/format_converter.cpp')
-rw-r--r--src/qcam/format_converter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qcam/format_converter.cpp b/src/qcam/format_converter.cpp
index d8962a28..bf887ad4 100644
--- a/src/qcam/format_converter.cpp
+++ b/src/qcam/format_converter.cpp
@@ -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;
}