From patchwork Mon Oct 23 08:22:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Scally X-Patchwork-Id: 19178 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id D1D1EBDCBD for ; Mon, 23 Oct 2023 08:22:38 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3E2326297F; Mon, 23 Oct 2023 10:22:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1698049358; bh=kPfN5GS+BeGmXCt3a7ufuKaaQNAfrnn/rhLrm9iOE1M=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=0kTOGBDH4bX6O0RM7MuLJoWNmHo5nVJWDu8YStmoRlDPO4NhjZefPtISQKzi4bBsM +TRB+29iSYraZ5PWEvIyQsXxs/cZdL6nPAU1XhdAK3JmH/b2TfJHjg0qnyGmTjmoNs Tbarywxrym9Z/9zmAmeQeX9IUiCyncgFHa3qGliWEvqtLIEk2u2zhY2XiGUXORU5jP GELkCyIolcwBU49Xk6Y/Mzr0DQ2fmmUf+yB0nhUW1GFX7C8JiUTw+a9bq61dKeWFRw aWcGCveHPJwsZUorklphkGaGYjFmf2jnxvJ4gypqIQCg/Vffkr1ekX/+E24alQCmWD HD4L1Yah4VUIw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D4C1560556 for ; Mon, 23 Oct 2023 10:22:35 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="MwruZJ74"; dkim-atps=neutral Received: from mail.ideasonboard.com (cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C934B749; Mon, 23 Oct 2023 10:22:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698049345; bh=kPfN5GS+BeGmXCt3a7ufuKaaQNAfrnn/rhLrm9iOE1M=; h=From:To:Cc:Subject:Date:From; b=MwruZJ74N4B+QtbYtbcmbDlB4DxBWhAMJObIf9sX6Hh+3TZRQqQ5XWUruLv2SbZDr n7RiRvlpBqDTUTqeV4UK2Y1/2heCq3srKU9ZGiWpX7CRGfatyQohyqP/wQVYlS4ZD9 LAfCFyC33MwKV5ohRWvlrXxrIe0e7nU+Vb8oJXrQ= To: libcamera-devel@lists.libcamera.org Date: Mon, 23 Oct 2023 09:22:16 +0100 Message-Id: <20231023082216.763287-1-dan.scally@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] qcam: Add support for RGB565 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Daniel Scally via libcamera-devel From: Dan Scally Reply-To: Daniel Scally Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Kieran Bingham --- 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)