From patchwork Wed Jun 11 01:32:25 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: 23521 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 2C52FC332A for ; Wed, 11 Jun 2025 01:33:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 52C4E68DE2; Wed, 11 Jun 2025 03:33:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="khRc6Ur9"; dkim-atps=neutral Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A330568DDB for ; Wed, 11 Jun 2025 03:33:43 +0200 (CEST) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43cfe63c592so69818325e9.2 for ; Tue, 10 Jun 2025 18:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749605623; x=1750210423; 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=VlZsLSCI0eHbsP358YG7f0fZQe0fXQgP3U2V4cVsdEM=; b=khRc6Ur9DsSW4/OdElX+7SjuZ4S+TjsANsUEJHWoJunj8WUXeIWMY4ANY18XQhZI+m D8IxkalQgEMAmK1k8RJuxP8D1OuWgJqg0COTtD+UJiinFArzhhQPcWWYPv33Bv393fpW 2SHwlWc67259L4QQcGyGRKjRFLzQGeWatJb29S1TFxfbQcSUzb2JbGqvJCTb1WakEFg6 LBrGPBRJMqgC1wIbpldrbVyAsWIOfWNEeabv7q3KBOV70f+Z54gNxdaejmkEPEkH3e1i 7iWyUfDmXnVu3jm8CTy16jkXuXlb03sWNvrpoJUCkJo3XQa7FzIhaWcFfWwGtjE2oBCV VvrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749605623; x=1750210423; 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=VlZsLSCI0eHbsP358YG7f0fZQe0fXQgP3U2V4cVsdEM=; b=GDDYLsQhyzqG+Pye05b4zu/41L14nFzliAybeGD0Yl24gJMz+mnDNGpw2t1DLYFQ9G bTD2d2sgKyyvUq/9Ln4qjZxKEZ+gKslZPNvy7GY/DhlEyvzefxuKJXjTgN7brAcNWiia /fOh6ueT47j1zlYmS4BJ/5kEp1Jo6kXcAlfSnS99HXJCEnIEl1OTJApgckTv1GbmPYC6 ewnfyX9cpC8dfur2Qzke2U9R173dGlzRRwrbjOQwoC+JT5QD0ifd6oFI1Tiy+HFyPhUK i52q1APghq/aRjvpQlcLsshrKYM1lV3fjNKQRWi5/XK4gCUq7+ZeuquY3ws5CqjhvdyM 8w3A== X-Gm-Message-State: AOJu0Yx1edJZxvEJh5Lc+ss2BATVuxspb/vDBUXJCERHC0luMATYP5j9 kvhu1eAJS6sSws4J262KblHmCoGGfukv1uGn9hzSCXSozXaI0GIwVpwsGwfGAvb/mLi4nCTut2f kpCthL88= X-Gm-Gg: ASbGncsbINaaad1LZHGfohcT3ieBTK0gEwl3ApLkf6O64++fhiYHLrUt18foh6zSsqz yXdsH27Yd1QZJZ03O0QHwjcgsMLiU5O3isnsjB5SY1z7DgWtS1ttUgpmPU32eKiVAKlugH9qnip RqwSdf3R5unYywxFc1rXyDL2MgqWL7o04Lw8U3zrrRVTptkDvhb3MluoKwZbasDyin4taLb+u7h k8BZVOiOCS2zUbhqdir8s8P79PSYBN/7Fq/vErT2Mw73bsSVWLo3mey6bO7B6f3+KgdyLltAsPg gML3qL6UIRWxoBk+wqkQPHyZWsB1460fkyjlt5CwyYbnyTRrNgPQuw+0eOO/9Hc8YFmT2AtNkc6 eF00iiHACAcEsetdJUGBiXA85RAIm83FQ4Dp92s72FQ== X-Google-Smtp-Source: AGHT+IEg2JpVH6FuD177YRJ21nHPTfoUW9hOUK7KvF/qaNQVnzahkE26wnDzvvB8fmag8s5AjS+uJQ== X-Received: by 2002:a5d:4563:0:b0:3a5:25e4:264f with SMTP id ffacd0b85a97d-3a55881dbcfmr690702f8f.31.1749605623040; Tue, 10 Jun 2025 18:33:43 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 18:33:42 -0700 (PDT) From: Bryan O'Donoghue To: libcamera-devel@lists.libcamera.org Cc: Bryan O'Donoghue Subject: [PATCH 15/35] libcamera: software_isp: debayer: Extend DebayerParams struct to hold a copy of per-frame CCM values Date: Wed, 11 Jun 2025 02:32:25 +0100 Message-ID: <20250611013245.133785-16-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" Add an element to the DebayerParams structure to capture the calculated CCM. This allows us to pass the CCM into the eGL Debayer shader later on. Signed-off-by: Bryan O'Donoghue --- include/libcamera/internal/software_isp/debayer_params.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/libcamera/internal/software_isp/debayer_params.h b/include/libcamera/internal/software_isp/debayer_params.h index 217cd5d9..56803195 100644 --- a/include/libcamera/internal/software_isp/debayer_params.h +++ b/include/libcamera/internal/software_isp/debayer_params.h @@ -13,6 +13,8 @@ #include #include +#include "libcamera/internal/matrix.h" + namespace libcamera { struct DebayerParams { @@ -49,6 +51,11 @@ struct DebayerParams { CcmLookupTable greenCcm; CcmLookupTable blueCcm; LookupTable gammaLut; + + /* + * Per frame CCM values as calcualted by the IPA + */ + Matrix ccm; }; } /* namespace libcamera */