From patchwork Wed Jun 11 01:32:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 23525 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 D7CFFC3326 for ; Wed, 11 Jun 2025 01:33:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6EA2668DE2; Wed, 11 Jun 2025 03:33:56 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="a3co4uxJ"; dkim-atps=neutral Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CFCAA68DD4 for ; Wed, 11 Jun 2025 03:33:53 +0200 (CEST) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4531e146a24so9702735e9.0 for ; Tue, 10 Jun 2025 18:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749605633; x=1750210433; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eKYgK1WfN5ePoqdc0nHiHli5OuTT0JnN7h99qCjPS28=; b=a3co4uxJEWOJr4o3ltUzbeVhxy2zXqkb11wj6HoYYlMy14DKbMKPCsPZh1f6FVJ09X 9J2gRTVcYxcBeVG2Wj6hoVPmGqVgCguMicNUgSCsbMwT3vepMHStONbd1xnTdzWC5ZtI EwjH1b4Sv2Z/X0326DG37Uk2D8A3g1A6nllmkWvmaUkZFVx9qI/7Pun3pNafWuQpyqgT MeEvfxsC3hQG9CAxolHe4rerTFIVhrdXCrNbfz2sP2Iqj50pP3i3vewKtwUDMS9mhFfr fPWkicyhGZa0vyl5c9hFfkLDySTWi95ESjnTZQUktdccqjw7yo2GuIcnCP9F5N0aSIgr vyoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749605633; x=1750210433; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eKYgK1WfN5ePoqdc0nHiHli5OuTT0JnN7h99qCjPS28=; b=eTKyjP7f2x8E04TfNZ1y/udyv4E3l7JjBEj5+/SVWisBCjyUeerKfdwmExHCifUzII /ccWx7/vijgGrpX1g4zTsw4s5k+kI9l3vCbI6QItw7EvLMpUF4olXMGsDYoZuHsefwQz kmn7RYCMts0MF8q+H1eOu13ZuOrLQMB3US4yc6d9aR2M7ND1fcdyUOVWiiK158tE/UnY Jy4RFW7lgrg8t1kO5W9r1WUF6aNLnGSHGpa7mUvpf5Is2JNCPR8B6Ebpq+RqgVQTtczQ aLu62rfrnfIDN00P5Yjn9fEphC+aFKR+ll7Ryx9K/oaPBKkMBkZIkqiwecQb+5tpU/F3 VkVw== X-Gm-Message-State: AOJu0YxpZhhkWHQoRrsrtsh73bk8X/L3QkDblQulhrWYimtrP7ZFFHQY wCNEPxdZAWIrHjspCCDoSHSrzTrK8TFRC67pd+K8Wo2Yh5jPCVdI/dh/Bcw3oA3t3HoIPulBsAe pCntdcbU= X-Gm-Gg: ASbGncseZS2mrqZpqo9kdY0FO3m76LjQ4/AJmfVruxqalk9wcrsgCXQP3XpcAcuNRgl QutvmsxcIj+7ixeJVvHptNtJAm6tpFIx29JVPAXtLaBSNmzzMzXtZokFN3KoCjshYfQWwmyvZaZ Kj5LLE21A/OnDx1xHH0AxfXGh2F9ujgXXLRpzWjX9GqRFkWapkyrzQwjrWQx3Q+IoVjr61EWY0f ciD5XqFo+E9gCdR+80rSWP3ZMnwim7uwwWU5lsfJebA2nyy+2bwGm/liXTWMzeDu0ytZPKT8L2g DfAFPT0lLloCFXMCIYNvDOOMhDNV0soAQWqMFNyhpuxam70CeyF9Min9x5UbV2G8e4FYPu87THf TZiUqcV/xfIqBR3UoCdOh9W9vRZVJNMSVp1X2sx08dg== X-Google-Smtp-Source: AGHT+IH4sxxVhXJp+vX7Vp0cDt3oPyvpWfSCb49R5uKKc2j2UH8qUFvJCHzC3zOs5A1oeT7ejVk+fw== X-Received: by 2002:a05:600c:6087:b0:442:f956:53f9 with SMTP id 5b1f17b1804b1-453248be49emr10321235e9.18.1749605633191; Tue, 10 Jun 2025 18:33:53 -0700 (PDT) Received: from inspiron14p-linux.ht.home (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4532514138asm5680625e9.3.2025.06.10.18.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 18:33:52 -0700 (PDT) From: Bryan O'Donoghue To: libcamera-devel@lists.libcamera.org Cc: Bryan O'Donoghue Subject: [PATCH 19/35] libcamera: software_isp: ccm: Populate CCM table to Debayer params structure Date: Wed, 11 Jun 2025 02:32:29 +0100 Message-ID: <20250611013245.133785-20-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611013245.133785-1-bryan.odonoghue@linaro.org> References: <20250611013245.133785-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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" Populate the DebayerParams CCM table during ccm::prepare(). A copy is made of the CCM into the DebayerParams structure. Signed-off-by: Bryan O'Donoghue --- src/ipa/simple/algorithms/ccm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ipa/simple/algorithms/ccm.cpp b/src/ipa/simple/algorithms/ccm.cpp index 0a98406c..cb023878 100644 --- a/src/ipa/simple/algorithms/ccm.cpp +++ b/src/ipa/simple/algorithms/ccm.cpp @@ -14,6 +14,7 @@ #include #include "libcamera/internal/matrix.h" +#include "libcamera/internal/software_isp/debayer_params.h" namespace { @@ -84,7 +85,7 @@ void Ccm::applySaturation(Matrix &ccm, float saturation) } void Ccm::prepare(IPAContext &context, const uint32_t frame, - IPAFrameContext &frameContext, [[maybe_unused]] DebayerParams *params) + IPAFrameContext &frameContext, DebayerParams *params) { auto &saturation = context.activeState.knobs.saturation; @@ -108,6 +109,7 @@ void Ccm::prepare(IPAContext &context, const uint32_t frame, context.activeState.ccm.ccm = ccm; frameContext.ccm.ccm = ccm; frameContext.saturation = saturation; + params->ccm = ccm; context.activeState.ccm.changed = true; }