From b5f5a89bc34c601d9b59e160af9db557e1443904 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Mon, 23 Oct 2023 09:22:16 +0100 Subject: apps: qcam: Add support for RGB565 Qt supports RGB565 natively; add support for the format by mapping the libcamera format to Qt's representation of it. Signed-off-by: Daniel Scally Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/apps/qcam/viewfinder_qt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/qcam/viewfinder_qt.cpp b/src/apps/qcam/viewfinder_qt.cpp index 597ccffc..62ed5e7c 100644 --- a/src/apps/qcam/viewfinder_qt.cpp +++ b/src/apps/qcam/viewfinder_qt.cpp @@ -36,6 +36,7 @@ static const QMap nativeFormats { libcamera::formats::RGB888, QImage::Format_BGR888 }, #endif { libcamera::formats::BGR888, QImage::Format_RGB888 }, + { libcamera::formats::RGB565, QImage::Format_RGB16 }, }; ViewFinderQt::ViewFinderQt(QWidget *parent) -- cgit v1.2.1