diff options
author | Daniel Scally <dan.scally@ideasonboard.com> | 2023-10-23 09:22:16 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-10-23 13:50:18 +0300 |
commit | b5f5a89bc34c601d9b59e160af9db557e1443904 (patch) | |
tree | 5ab8ed7f4bfc4d7f3b4f5bec8a6b1873926597d1 /src | |
parent | d477ee97bc2a086b5f486e4a967a08fcf68c35c9 (diff) |
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 <dan.scally@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/apps/qcam/viewfinder_qt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<libcamera::PixelFormat, QImage::Format> nativeFormats { libcamera::formats::RGB888, QImage::Format_BGR888 }, #endif { libcamera::formats::BGR888, QImage::Format_RGB888 }, + { libcamera::formats::RGB565, QImage::Format_RGB16 }, }; ViewFinderQt::ViewFinderQt(QWidget *parent) |