{"id":23526,"url":"https://patchwork.libcamera.org/api/patches/23526/?format=json","web_url":"https://patchwork.libcamera.org/patch/23526/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20250611013245.133785-21-bryan.odonoghue@linaro.org>","date":"2025-06-11T01:32:30","name":"[20/35] libcamera: software_isp: lut: Make gain corrected CCM in lut.cpp available in debayer params","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"9d304fe26c2b31a86740d2eb6769c345bf8629e1","submitter":{"id":175,"url":"https://patchwork.libcamera.org/api/people/175/?format=json","name":"Bryan O'Donoghue","email":"bryan.odonoghue@linaro.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/23526/mbox/","series":[{"id":5212,"url":"https://patchwork.libcamera.org/api/series/5212/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5212","date":"2025-06-11T01:32:10","name":"Add GLES 2.0 GPUISP to libcamera","version":1,"mbox":"https://patchwork.libcamera.org/series/5212/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/23526/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/23526/checks/","tags":{},"headers":{"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\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 1C39AC332D\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 11 Jun 2025 01:34:01 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 92C7468DB4;\n\tWed, 11 Jun 2025 03:34:00 +0200 (CEST)","from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com\n\t[IPv6:2a00:1450:4864:20::32c])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3426668DE0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 11 Jun 2025 03:33:57 +0200 (CEST)","by mail-wm1-x32c.google.com with SMTP id\n\t5b1f17b1804b1-451d3f72391so78653615e9.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 10 Jun 2025 18:33:57 -0700 (PDT)","from inspiron14p-linux.ht.home (188-141-3-146.dynamic.upc.ie.\n\t[188.141.3.146]) by smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-4532514138asm5680625e9.3.2025.06.10.18.33.53\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 10 Jun 2025 18:33:55 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"taoQ1GsB\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1749605636; x=1750210436;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=fG3uKUiGO5dBKo4QNdD4AfdVef55fyidXJo0XY2syC4=;\n\tb=taoQ1GsBxd6dWXdbydCGhDaqX3LOh9SMksK7a/Dc8Wxfffx+b+SQtcc/1SSBqpmZYW\n\tXiPYL6zuH12x096fki+ZQEQ6P3CzqH9TpBrHomPK7xcrdGw+/wD63ZlmTTlE1Em8Eq7S\n\t4FqPglFPbcVz4K17cDF1cuGcIljFKv2dYkqDrjcqHUXLxj4hdzXCg0xwgL5EoYFGB9W2\n\tJzFRrhWgBfgK8dAYKIOjgPnD+SS3+EX5PtMpEfZUv82JRKNWDRoCXll8hUzRD4hhIj9L\n\tbRSgDL+y2e8EPOV1vQ9oA0JFEPXeGaOEG9eoRF4g4SCdszcbr+35K6ZFO3aWZ0XBRWsZ\n\tkXeA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1749605636; x=1750210436;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date:message-id:reply-to;\n\tbh=fG3uKUiGO5dBKo4QNdD4AfdVef55fyidXJo0XY2syC4=;\n\tb=oZPj8ocnSZZHNkAVMX7HGLdPug2+krwj7kokuoauQ/zSf4rTNETFvYkuO/bWo1ew6V\n\tZS/8FnWtU2Z7JFWCLnnOy1PRrNghDFwe3hjhcLom8tf8lR4TvBQ10XaxzXOnlD+9dqQ5\n\tHbY/+cxzQTGt4YPSpfDpV20mCBvecUbEd5WoPfNGlRFswm9BE0ltJyNiixPYqJfKO7pv\n\tmE6b4TuPiXpFN1XTFccshEq8aDVDgFvMcAFdsij/9U7M1byhhu1+epzRPnXmwKOlhw0U\n\tREZfD+9zOB1JpFws5DX8+gOYA7pATAoqqC8yL4hhVgyp1Ujo33kM51eluNS9pW5gmcEr\n\tNp6A==","X-Gm-Message-State":"AOJu0Yx3tWbhUz0CRh1xyV/XgIo8MTUohs6IzX7qHF3PFR08Yf2VjoeY\n\tQgXueg6V1+mEYy3Db01nOXopbPUuTcJ9+2uolhIuJOeWgQNnLuC/csSNcZohtNG7KG7u5q1CNdi\n\tLIfionXU=","X-Gm-Gg":"ASbGnctcnIF/xK2XwNL6GVrs6D0iD3f9YdcXsHVrHX9GYDVeCn73WILEGH5zFqEKwze\n\toQC53hemWSNtvfxycf86gwLRuulENIMnOcLg3Upw/O+SGDgUjJ5r/kIJxisMPPSFvuES+KvZ5gu\n\t4VnKXP/pH0KlyaAXrgsQxHD2MFZe4/vuKcABdd2ZHJ7SarxaVTH38cwYTwrnnk/rbFK2lqm/egW\n\tvVk/+Pe8Ef9vLjxuje7oaXCIbKclLuw9SfiGcVAHASgFKnfZRMX66cjEQPrSn6KdZLDGjnQ4fWI\n\tiNV8Na1AvyckrVPNFXzgxnHA+DDpNgZZ23lL+QzvBgetczrTK/LaQQDFH9lk6XCUJOgYdJzixOI\n\t8Ex4TMATbUrHoT0OKBrsboC9GvBck7x9XYK9jA8vUWw==","X-Google-Smtp-Source":"AGHT+IHHiTRTMu1jn2wW+MsR9qqKT1cs9Ze9bcd/bjQ1tDTUIveVj9QHXO2PVYhF679uuvOkwBDzBw==","X-Received":"by 2002:a05:6000:401e:b0:3a0:9dfc:da4 with SMTP id\n\tffacd0b85a97d-3a558aeca6emr767130f8f.42.1749605636492; \n\tTue, 10 Jun 2025 18:33:56 -0700 (PDT)","From":"Bryan O'Donoghue <bryan.odonoghue@linaro.org>","To":"libcamera-devel@lists.libcamera.org","Cc":"Bryan O'Donoghue <bryan.odonoghue@linaro.org>","Subject":"[PATCH 20/35] libcamera: software_isp: lut: Make gain corrected CCM\n\tin lut.cpp available in debayer params","Date":"Wed, 11 Jun 2025 02:32:30 +0100","Message-ID":"<20250611013245.133785-21-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","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>,\n\t<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>,\n\t<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>"},"content":"There is another CCM calculated in this algorithm callback, this time based\non the LUT.\n\nSigned-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n src/ipa/simple/algorithms/lut.cpp | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/src/ipa/simple/algorithms/lut.cpp b/src/ipa/simple/algorithms/lut.cpp\nindex d1d5f727..a161adb1 100644\n--- a/src/ipa/simple/algorithms/lut.cpp\n+++ b/src/ipa/simple/algorithms/lut.cpp\n@@ -126,6 +126,7 @@ void Lut::prepare(IPAContext &context,\n \t\tauto &red = params->redCcm;\n \t\tauto &green = params->greenCcm;\n \t\tauto &blue = params->blueCcm;\n+\t\tparams->ccm = ccm;\n \t\tfor (unsigned int i = 0; i < DebayerParams::kRGBLookupSize; i++) {\n \t\t\tred[i].r = ccmValue(i, ccm[0][0]);\n \t\t\tred[i].g = ccmValue(i, ccm[1][0]);\n","prefixes":["20/35"]}