Message ID | 20251015012251.17508-22-bryan.odonoghue@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <libcamera-devel-bounces@lists.libcamera.org> 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 41C55C3333 for <parsemail@patchwork.libcamera.org>; Wed, 15 Oct 2025 01:23:30 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DB4D360650; Wed, 15 Oct 2025 03:23:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="MVkb1HL1"; dkim-atps=neutral Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 73CE160631 for <libcamera-devel@lists.libcamera.org>; Wed, 15 Oct 2025 03:23:16 +0200 (CEST) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-b48d8deafaeso1242407466b.1 for <libcamera-devel@lists.libcamera.org>; Tue, 14 Oct 2025 18:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760491396; x=1761096196; 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=6Peo5/k8P8OiLfg/4ofwrT2kHhOPQ2yyIlXqRLA27yY=; b=MVkb1HL1Y7byLthH0cCT23XHze4vqmlQZ4os2zQyI3mb/RLrTZ/RnqsItE4BNyWEmc 10nPzxqiTZGlwphDFf8TuAIEHej6EL9leohGOkZ1W5Hh+fYaRhM3iYDFn/sQ25PfG4WE EEzBfFt7jUkUC7ZtGBdY+Hol/2xE72wnQr2h8ZRZu/hpMww+XrKDRHzjhqM8IQD7wkcE L9Mk+PHTLLp9RG91BjbDAqME41kRCEXpeRmgCM/H5hL/fsUoVdk+7G+BMwh5SBOO74e0 ppJx9vzS/L8v8rMZy4errolAO2Vd5ICbf60zjBlYTGjNi+tRApoEkMznTXno4rTSUv+S Dotw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760491396; x=1761096196; 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=6Peo5/k8P8OiLfg/4ofwrT2kHhOPQ2yyIlXqRLA27yY=; b=ILsb2RF9XE1E2mcP7JQM0Z0dRzaqu5ppILtna3uw2kp/ZmHJLZ/pXudZVZTmr+rlXf PLXT6LDrGL1MA52axkDXtp7HQtYwhTxQ4iiQ/ebx53Hoefc7YbHWa5k9o0+VKKKJnERk suwElseND4A6HdwBvj28bVH6KQgl/WxV6b4O7iJmAwo9sP+x243gC8QYvMKnpJjt1WLq 55K1ES8tThmmKTMEf5logVyUS1WosNXtCQVoj+iVkMm/RJXLi61gp0JJr0CyOZH/F9qC xM43IBVoZBBobhnLidBranhuaLblTFRrj8uKpyLIucgYE0yGEvludbbTcfaASFlDoBZZ jDJg== X-Gm-Message-State: AOJu0Yyds4aPhWY62Jo7Cty2Hw/3Pfy4zo0Sexw+w2reWo+Vx84nc4sL xLbfGq2MDeuFGcbu69fV3grz2RZljM3wIeAMhpHw8HownwZAF+hC9/WucS13w1BKfkZDZbvjSN/ pFy4d X-Gm-Gg: ASbGnct8OCmP+jsj2ecixddGaYC+F6XgrqCXQ0YNXP9r9KZDV1R3afqWNMxvmkXcXgS EALXUJ2npzAVU/MuqObzUQtIyx0+nGq+06nSy1FY+87Cr0Tj+mwnVwFVy18GVpAdbODYpTDAOiG 3iprA9t0bO+WWa3n6PByHJmM9HEmB1xg87Ubkz7LwaVJfGhm1ZEMGDyn3FiNQuCVQW0VqhB+Dv6 3HtSBBn0w11jXDQ9G1y89OdqJzD1AB+nt2hH85pajTTTiiOYZOiTO3CA5KPEvT6SJV0LI0EA/aS x7bwDAeI3YuHHQKTubk6ryxmGPINb8TlLeyoPuf1bfG8fnZJayleeB7rXDVPeoagZ2vS7TcG+GP bvGJ+iNIW3jGj3NRCDlkB0y1Imiw2r2NEO67iv4fMINMBhvJcjq6ricxH9nlGpoiSYUzG3PAY/u 9E1g54EM75Nyo8XEbcYGc4md78jpEmsA== X-Google-Smtp-Source: AGHT+IFeQd6HKRU1a49yLU6jNq4p8+hRum+XXgRWl85j5r5nBNhZSm0J0G9C7/GFNC/tKf0odw6O4A== X-Received: by 2002:a17:907:94c8:b0:b47:de64:df1b with SMTP id a640c23a62f3a-b50abfd6d92mr2822960266b.39.1760491395799; Tue, 14 Oct 2025 18:23:15 -0700 (PDT) Received: from inspiron14p-linux.nxsw.local (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b5ccd7b202dsm98348466b.82.2025.10.14.18.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Oct 2025 18:23:15 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: libcamera-devel@lists.libcamera.org Cc: hdegoede@redhat.com, mzamazal@redhat.com, bryan.odonoghue@linaro.org, bod.linux@nxsw.ie Subject: [PATCH v3 21/39] libcamera: software_isp: ccm: Populate CCM table to Debayer params structure Date: Wed, 15 Oct 2025 02:22:33 +0100 Message-ID: <20251015012251.17508-22-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251015012251.17508-1-bryan.odonoghue@linaro.org> References: <20251015012251.17508-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <libcamera-devel.lists.libcamera.org> List-Unsubscribe: <https://lists.libcamera.org/options/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe> List-Archive: <https://lists.libcamera.org/pipermail/libcamera-devel/> List-Post: <mailto:libcamera-devel@lists.libcamera.org> List-Help: <mailto:libcamera-devel-request@lists.libcamera.org?subject=help> List-Subscribe: <https://lists.libcamera.org/listinfo/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe> Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" <libcamera-devel-bounces@lists.libcamera.org> |
Series |
|
Related |
show
|
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 <libcamera/control_ids.h> #include "libcamera/internal/matrix.h" +#include "libcamera/internal/software_isp/debayer_params.h" namespace { @@ -84,7 +85,7 @@ void Ccm::applySaturation(Matrix<float, 3, 3> &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; }
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 <bryan.odonoghue@linaro.org> --- src/ipa/simple/algorithms/ccm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)