mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
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>
This commit is contained in:
parent
d477ee97bc
commit
b5f5a89bc3
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue