From patchwork Tue Jul 5 15:31:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 16550 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 8E1DFBD1F1 for ; Tue, 5 Jul 2022 15:31:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A45F963315; Tue, 5 Jul 2022 17:31:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1657035079; bh=ou04oLYVdJrSuxYecdHupc43xyesfHa0qHIxCjca6es=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=o+qrhRK/aUZ6mW0LYHPbIbdaLRMe93o+vWoHA2IIxxyVblXE7OgHDyPezySMdOXgl xRaKHAJKDHPHGh7gRZIio4acUOsW2gh72myPf8c/YaFbZGao/3wfjUd+eq+7bfPGEL uYenh05HLc++J6dOj3aWJxj/xqH1P2UPSGAuCoA0Z8OB8gvQFJxP4IyWz3ihmBOd73 I9KSUvN4t7x+AQxbKH33X68+J5Q4Mvy9mlt7e0Skk8/M6WaxRTTlj263oQoXuMbqLp aYbASs4GKxjylCn+vSUXJoZGQPl2Db0Ej2jcxZcfi0PZSThAloSFEQrNbAwJ0duiyn 4iYIJIx8nDABQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3084661FB0 for ; Tue, 5 Jul 2022 17:31:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="rKqRY78G"; dkim-atps=neutral Received: from Monstersaurus.ksquared.org.uk.beta.tailscale.net (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CF3416BB; Tue, 5 Jul 2022 17:31:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1657035075; bh=ou04oLYVdJrSuxYecdHupc43xyesfHa0qHIxCjca6es=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rKqRY78GZoyYFGlGshKmiUjKJdidHgPYMxHJKAN4UcDYO7eSvM1xuIAZOp5wq90YB LW7Vks7EUcyFguuomsd6R64sD/9GkRl1HbMSrO/aE/8BQ3yk/t5xHkwRdYbJIEQkMM ZVdFz9p8eSopdgcpfDLvpxTHLxuduGHRL+Fz0m+c= To: libcamera devel Date: Tue, 5 Jul 2022 16:31:11 +0100 Message-Id: <20220705153111.2338369-4-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220705153111.2338369-1-kieran.bingham@ideasonboard.com> References: <20220705153111.2338369-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/3] qcam: viewfinder_qt: Support X RGB variants 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: Kieran Bingham via libcamera-devel From: Kieran Bingham Reply-To: Kieran Bingham Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Support the X variants of the RGB pixel formats along side the equivalent Alpha component based versions. Signed-off-by: Kieran Bingham --- src/qcam/viewfinder_qt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qcam/viewfinder_qt.cpp b/src/qcam/viewfinder_qt.cpp index 27955e3f9593..14ecd70a839e 100644 --- a/src/qcam/viewfinder_qt.cpp +++ b/src/qcam/viewfinder_qt.cpp @@ -28,8 +28,10 @@ static const QMap nativeFormats { #if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) { libcamera::formats::ABGR8888, QImage::Format_RGBA8888 }, + { libcamera::formats::XBGR8888, QImage::Format_RGBA8888 }, #endif { libcamera::formats::ARGB8888, QImage::Format_RGB32 }, + { libcamera::formats::XRGB8888, QImage::Format_RGB32 }, #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) { libcamera::formats::RGB888, QImage::Format_BGR888 }, #endif