Message ID | 20251015012251.17508-21-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 4780EC3331 for <parsemail@patchwork.libcamera.org>; Wed, 15 Oct 2025 01:23:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B853E6064F; Wed, 15 Oct 2025 03:23:28 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="WQvXGJwR"; dkim-atps=neutral Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 833016062E for <libcamera-devel@lists.libcamera.org>; Wed, 15 Oct 2025 03:23:15 +0200 (CEST) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-b457d93c155so936408466b.1 for <libcamera-devel@lists.libcamera.org>; Tue, 14 Oct 2025 18:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760491395; x=1761096195; 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=EtuzlS89J7v9+K50cAFFyOxzlYC9+JcdH7asTL6ajb4=; b=WQvXGJwRsfhV1/4cCJRadopsnd1Y3OLY+tKzKmL9VmMHVo6eyd911IFFFwgaE2S/9P n+jXlt9OQAfOhxn9KG9LrbW1T6HcGWn2l6ixYx57MFpngo5ulnn3ilaVHUZEPXfoaMCX ukAM7P8DrpJWbb1CINZdypygqoIyQSsHf+6bQTzXZ2D6QlKDnXHq4dTaiT1Mi6IkFwrw oCK2ddFUf//EoZw8bSXt8Lp2KFy3T6JBVCXjssyzjDEmrFXNC6wYyOdVt0rUzhvkm/vV S2MOFbjq9KQGFfJP2/MFYtSvlsIGNS0twIKL9FVPneCpiUkaVXhpvcpDo0EX2C4dkcw4 qdgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760491395; x=1761096195; 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=EtuzlS89J7v9+K50cAFFyOxzlYC9+JcdH7asTL6ajb4=; b=LxeYpIyHI++gzE2aQMhF5R0NO8ek3hHiWoHxBDcewHHF+E7yMIFlE69HskOEISVBFO w3JN7NvDAIE+TtasYq17sNuaMIsO1QnwJM92PjrAVPF4MzBByzQRxy9fYr8l6pXD/h/S 3j/xufqhmxFoApmX765sNd86cmPjj0YVZgVy2TofJLUuAIbo0l0Q2+kqH15xHLo9Z3JZ 8hG4Y10dJ/TD7VIFWOaFrMyft02QS32Lnw23gkb3BxHBJNFrE2pIzqmxYmVw7brtb8bD C2i55HsmpVg7MvwHnDe71ctJhkIU8vtWR+itAd3EIq0Ah6tlc0fdWGrQzJhI6nyGYAYG CyQQ== X-Gm-Message-State: AOJu0Yx+eWFhWNxqEMxZysoDGSnTQY6PX6L1yovAVidRTTFLRHE16HW3 g+IfiXW83aFfCuID8KGtajtB6o7KkPUCarTK4tEQeWIhtF9W9u+1LtjH9yUFApSOZCKUe8ApvbH xy7Np X-Gm-Gg: ASbGncsk06wxgCaym9OaWFNU+x1q4FRqJINFINztCgJtKB3gijSi9f/TJMQZzKmuFhW aulzzqhTCdJHGDNbTCIemiEa0wIzItBenmiBL36TgcPaUnysGplHYrwyM22HalBZawRf78z3zDT fQpCI1WHQa19vD/nhI5XMu7kXtRxiWylMHrn1ASSb5GBQsVa7PzUS7ZAZVEJjB/nk+Eo3ibXjMa cBbXRNDEkmTurogvhHiP4UAKsgh/7QWfkgh93/ZTRAtU7seSAFj1Dq0l4EqoS32jAb9mnocSxId nf0nlAL5UpyGL3K+9lkQifIKAQf5tAEE6lN1RUKI0onkjH2SbANtFIDB5QasUmu0M8kvY9Ou2Oy mKneSbxxp0lu3Rij3Nt3KKDeA1Gm5Sy8Wwgge5NoW2+1U+UZ4SkxN9c9rPRGZ2zkdbm1/rUzxO5 iwiq9mMjoe58QJd/XCjR5O13guma8FZw7TmUebwj0g X-Google-Smtp-Source: AGHT+IG19uvMl078D5vmFKMN1GoZg3YjClRb2WlJ0RXqQNF2J9Up2/s5Vj/PEdBQXpX+Ta9Vv0wdTg== X-Received: by 2002:a17:907:2d26:b0:b32:8943:786f with SMTP id a640c23a62f3a-b50ac4d6253mr2854908866b.58.1760491394864; Tue, 14 Oct 2025 18:23:14 -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:14 -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 20/39] libcamera: software_isp: awb Populate AWB gains to Debayer params structure Date: Wed, 15 Oct 2025 02:22:32 +0100 Message-ID: <20251015012251.17508-21-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/awb.cpp b/src/ipa/simple/algorithms/awb.cpp index cf78e980..3c4e5d09 100644 --- a/src/ipa/simple/algorithms/awb.cpp +++ b/src/ipa/simple/algorithms/awb.cpp @@ -38,12 +38,14 @@ int Awb::configure(IPAContext &context, void Awb::prepare(IPAContext &context, [[maybe_unused]] const uint32_t frame, IPAFrameContext &frameContext, - [[maybe_unused]] DebayerParams *params) + DebayerParams *params) { auto &gains = context.activeState.awb.gains; /* Just report, the gains are applied in LUT algorithm. */ frameContext.gains.red = gains.r(); frameContext.gains.blue = gains.b(); + /* Latch the AWB gains so GPUISP can consume them. */ + params->gains = gains; } void Awb::process(IPAContext &context,
Populate the white-balance gains table in awb::prepare(). A copy is made of the gains in the DebayerParams structure. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- src/ipa/simple/algorithms/awb.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)