From patchwork Mon Oct 26 08:26:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alain Cousinie X-Patchwork-Id: 28608 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 EA12CC3261 for ; Mon, 26 Oct 2026 08:27:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5E31768FEB; Mon, 26 Oct 2026 09:27:07 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=laposte.net header.i=@laposte.net header.b="fbqElN/X"; dkim-atps=neutral Received: from smtp-outgoing-1702.laposte.net (smtp-outgoing-1702.laposte.net [160.92.124.100]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 100A968FDA for ; Mon, 26 Oct 2026 09:27:00 +0100 (CET) X-mail-filterd: {"version":"1.9.7", "queueID":"4jCmv34K0SzgY7m", "contextId": "749ead37-4186-41b7-a6b0-5bc0554262ac"} Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0104.laposte.net (SMTP Server) with ESMTP id 4jCmv34K0SzgY7m; Mon, 26 Oct 2026 09:26:55 +0100 (CET) X-mail-filterd: {"version":"1.9.7", "queueID":"4jCmv250nzzgY7R", "contextId": "86399fa9-e7c9-452d-bbb6-5454c7388fd2"} X-lpn-mailing: LEGIT X-lpn-spamrating: 36 X-lpn-spamlevel: not-spam Received: from debian (unknown [212.133.41.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mlpnf0104.laposte.net (SMTP Server) with ESMTPSA id 4jCmv250nzzgY7R; Mon, 26 Oct 2026 09:26:54 +0100 (CET) From: alain.cousinie@laposte.net To: libcamera-devel@lists.libcamera.org Cc: bryan.odonoghue@linaro.org, barnabas.pocze@ideasonboard.com, mzamazal@redhat.com, johannes.goede@oss.qualcomm.com, laurent.pinchart@ideasonboard.com, jai.luthra@ideasonboard.com, =?utf-8?q?Alain_Cousini=C3=A9?= Subject: [PATCH v7 5/5] libcamera: software_isp: Add support for monochrome formats - SOFT Date: Mon, 26 Oct 2026 09:26:02 +0100 Message-ID: <20261026082602.60417-6-alain.cousinie@laposte.net> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261026082602.60417-1-alain.cousinie@laposte.net> References: <20261026082602.60417-1-alain.cousinie@laposte.net> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laposte.net; s=lpn-wlmd; t=1793003219; bh=b+Qm8w4NYNzHD2L3UtUVUrSSOmnQdam2VspmUyodjH0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fbqElN/XdyRSgCEMIEdg17pkTOlSt0m7E2bsDS2wbo3Jx+dyf/B5bVsYzQlR6BD6p3Qdpuh9Qc3fuHJEHdZuXkhe2iTUO6qCz1S8gOkjPzLd6swTU1eflyqNb+inBJ0/VWbsE22aja9070bttLHMzRMJCPzNcePzTR3ihLjigwtsTLHOIXW0PxxgPfTYuDgL0hEuUZY8AnUCA2/OijoI8uCBtaeJFYCxFszr7FxKS/rsB0xaP7d4j7KEqzXA9dRBB5dA2xPsJ0m5ZD3EXzL8P6y3GhzgJh9HXFNihw9O8kT+V26HXj6321Ll1IjQg+xMGC9A56Nfz7VDk9DyTM0UVQ==; 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Signed-off-by: Alain CousiniƩ --- src/libcamera/software_isp/software_isp.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.55.0 diff --git a/src/libcamera/software_isp/software_isp.cpp b/src/libcamera/software_isp/software_isp.cpp index 627625b4f..4784804ee 100644 --- a/src/libcamera/software_isp/software_isp.cpp +++ b/src/libcamera/software_isp/software_isp.cpp @@ -294,6 +294,17 @@ int SoftwareIsp::configure(const StreamConfiguration &inputCfg, if (ret < 0) return ret; + BayerFormat bayerFormat = BayerFormat::fromPixelFormat(inputCfg.pixelFormat); + if (bayerFormat.order == BayerFormat::Order::MONO) { + /* \todo Move to IPA uncalibrated-mono.yaml when lifecycle allows */ + ccmEnabled_ = false; + lscEnabled_ = false; + } else { + /* \todo Move to IPA uncalibrated.yaml when lifecycle allows */ + ccmEnabled_ = true; + lscEnabled_ = true; + } + ret = debayer_->configure(inputCfg, outputCfgs, ccmEnabled_, lscEnabled_); if (ret < 0) return ret;