From patchwork Fri Dec 12 00:29:24 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: 25528 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 EDC3DBD1F1 for ; Fri, 12 Dec 2025 00:34:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BB29C61858; Fri, 12 Dec 2025 01:34:07 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="c/+dED+h"; dkim-atps=neutral Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 720BB616A1 for ; Fri, 12 Dec 2025 01:34:06 +0100 (CET) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-7d26a7e5639so696354b3a.1 for ; Thu, 11 Dec 2025 16:34:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1765499645; x=1766104445; 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=5JFGAxxzJIIeX87u+TLTHc8/im0W2ElWoVY5etd6y20=; b=c/+dED+hbNhDzdbofAzW7YCbSH938RuzaUf5/ob0yeS+6T77NLI5r8XI6YCEfdMmFy 8T9SNqfHGoL1XDnej8WMrtUDYciwK7xqD4oMncrk/pYTePmBAPv0VbgI72Do82/NL1tP UWHbiaOBOLK1Gr1FbQbMAbHawXJC3vNEiaBNHnXpigE3555tUX5Gxt6GyPMLqdmGKrlW kDdVhkINBinPYsrGe6vCU5Oxlm6Db8wVJ1R7MtRC6hhPEVuEfpWB2nLp9R0zENuOSb5g DpBTGgRYou+smiqJ5g8XTR3gpO4BchoPd4/KeZ6YSBlEeqsdpwJoMPpSOcw7a9gCA6AZ P1wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765499645; x=1766104445; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5JFGAxxzJIIeX87u+TLTHc8/im0W2ElWoVY5etd6y20=; b=pFGOEYnd7xho8PJZ2vmIXploc0VqaaEhhZqUcZW4jN5+ITmYpd5U8hxYPOcEtqoQOl sUWJK3BPCQxBre11gxHzn9zM4mK2zU8JSWSxpQGgRledh9G0xAzJPbqm/rQ3HPmsYE1s 3Nw4FF5eyZ+JC5dEWw+gdWBW3L6pKPfVpuQ7lad3TKtLWhjZla2o7DXK6BQORraVIq8g SxK/hAJ+IA/jk7MwmPOvepJMJKgTJOnJmXGtgMJw6QYiS1NYaXy8r36uUs4LMloytC24 K2h3thzl+Iz8mNIZXmDPYGWIX4ATgwUtcewM5uzlok+f2HGIyRFMLjfL/Q7ctFao+5SE nBXw== X-Gm-Message-State: AOJu0Yyp7dWOHXPaEU9wwMlvRyyWziJAUUiE3BcgW6X4z/QP6iDpuoUu DClVG2qgnoEAIvA+Wzj+aMLsRpDBsfXtPYExBfqMZdzcarH9IB17lLYvxuuXVovjp/h3HY4rJsv 95nGx X-Gm-Gg: AY/fxX7bgEGyF86YIwTPTIIvgWwiQbQpj39UcXNgAD5qI3TMCQmiapS5S7sj1UhVLdd zzu3dYAu9ZlXgfdF8RJLUY0+lr8YtTT7rLuxGdfShgutBL6f+/rFe6Xjlv85vZT0NTKRC3NBHWS 5puRC0a6b/0az5glWk4vCZM0dRVhOAN4UOVZwZFvmKjxraUre0vkT3guTpJBnJCMtPEbMT9Kl4n Zgx24dac/IEEP82KRCpNxA53JivOyxJSXwIJygCRdyBPfjr3BroyKJDk7Sp41MSZzQ7tAHlY28m Eg9dKuSqNQ6OKi9KlrKiUIIINTOGhgmKF/yz7/LU5/zcdOh98Dqeq3H63YHlmjImlQKwmHYu1c4 xjYy471vDKd3zBqBgc+nOJmZwOTQruQXXKW/wGLxbUpHokZHI6HqkD8bH3Hibf44rCBXgzfTAQG vrR2sUtDDrTsxfX9/0QK5vWkYlDPFPks1RkUzXgh5sUZoNWcUU/UponrP2u3Y= X-Google-Smtp-Source: AGHT+IE4mkIVKrnH5hUkKOXuegBk3Tkiavuosw/pBlMjG2eC05uRiklF8SXuNPV9xAXYiGG4A5+Ayw== X-Received: by 2002:a05:6a21:e081:b0:341:d5f3:f1ac with SMTP id adf61e73a8af0-369b6ab0568mr232864637.41.1765499644805; Thu, 11 Dec 2025 16:34:04 -0800 (PST) Received: from inspiron14p-linux (p99250-ipoefx.ipoe.ocn.ne.jp. [153.246.134.249]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c0c26eb0f6bsm3317282a12.14.2025.12.11.16.34.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Dec 2025 16:34:04 -0800 (PST) From: Bryan O'Donoghue To: libcamera-devel@lists.libcamera.org Cc: pavel@ucw.cz, Bryan O'Donoghue , Milan Zamazal Subject: [PATCH v8 13/26] libcamera: software_isp: Add a Size_ member variable to pass to eGL later Date: Fri, 12 Dec 2025 00:29:24 +0000 Message-ID: <20251212002937.3118-14-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251212002937.3118-1-bryan.odonoghue@linaro.org> References: <20251212002937.3118-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" We will be initialising eGL from Debayer::start(). We need a copy of the size data passed in configure() to tell the fragment shaders the right output size. Reviewed-by: Milan Zamazal Signed-off-by: Bryan O'Donoghue --- src/libcamera/software_isp/debayer.cpp | 5 +++++ src/libcamera/software_isp/debayer.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/libcamera/software_isp/debayer.cpp b/src/libcamera/software_isp/debayer.cpp index 4e6fa3d74..feb41acd6 100644 --- a/src/libcamera/software_isp/debayer.cpp +++ b/src/libcamera/software_isp/debayer.cpp @@ -300,6 +300,11 @@ Debayer::~Debayer() * \brief The output pixel format */ +/** + * \var Debayer::outputSize_ + * \brief Output size object + */ + /** * \var Debayer::red_ * \brief Lookup table for red channel gain and correction values. diff --git a/src/libcamera/software_isp/debayer.h b/src/libcamera/software_isp/debayer.h index 4a2ec3e53..189b32930 100644 --- a/src/libcamera/software_isp/debayer.h +++ b/src/libcamera/software_isp/debayer.h @@ -75,6 +75,7 @@ public: DebayerInputConfig inputConfig_; DebayerOutputConfig outputConfig_; + Size outputSize_; PixelFormat inputPixelFormat_; PixelFormat outputPixelFormat_; DebayerParams::LookupTable red_;