[libcamera-devel] [PATCH] qcam: Add support for RGB565
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Mon Oct 23 10:43:21 CEST 2023
Hi Dan,
Thank you for the patch.
On Mon, Oct 23, 2023 at 09:22:16AM +0100, Daniel Scally via libcamera-devel wrote:
> 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 at ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
> 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<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)
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list