From patchwork Wed Dec 10 00:53:40 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: 25429 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 E90D7C3257 for ; Wed, 10 Dec 2025 00:54:48 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A6A8E6147D; Wed, 10 Dec 2025 01:54:48 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="hYMEXUlP"; dkim-atps=neutral Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A4F5961472 for ; Wed, 10 Dec 2025 01:54:47 +0100 (CET) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-340e525487eso4965013a91.3 for ; Tue, 09 Dec 2025 16:54:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1765328086; x=1765932886; 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=yBXY86g8lO48WNEk1CRWNS0al2n3xfeUVM+ASK/7Rxw=; b=hYMEXUlPE+1ap5nQCILjylVoH69lSDFfifUjISfTkzeEWGuh6mfw857HVX+KqqtWOI 0O8q7LKsNzxBpa1qiS4pUeJ9MpzsAmTuD/U823AAM19za4OpCQtqqM39zb9GB3wCGi4z km04mflMP4k14oyi3IPHlLH30yxeIIm9RuIM4mkZsKi7hTQXYsbW00oqhdEc1X9AYRjl XStHOILA/I7dtyMtzz9jnnrz2Q3zHO1Y2Uznu+tPoTELmkK85Riawe5BY8YCmtYl1pfE ULNoJFLoX2ZhA5slS7YI95gHxs6EyULWAT464cT8RtVdIOvAa49liVjtiOadFu+FO/IF cuJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765328086; x=1765932886; 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=yBXY86g8lO48WNEk1CRWNS0al2n3xfeUVM+ASK/7Rxw=; b=WlC6LLy9UdlOHSGqVWyZyi/0KJXz6L2RiGnZ3huliwijlF6yF/jr9GLFgfklZHTZW0 /RW6d5wJLaREG2IqxWN0w2TZyl88qd9GviRWC5maOXz3nPIe3be2yxiUIzpm2atho0st Gsf1pZaDI8A0TaxvUH4/hj/IIiSXT9BGi9vl8vz3htBCU+n2jmmcOfAsQjLdJUqN5Bhj 5fULZ2fnXmDeHyDDwGyeOJzfEKw8dAgitJQ8UznJke1VS6q8ZFDgi/W0bkBouj/+W1/Y q9CK+ryUPOIB74c+4+XklZyoimWaSy9U3QaKjeRkUlvMQfUnUQfW9rB9fgUQGu/ox0AP 9Clw== X-Gm-Message-State: AOJu0YwD0rC6tHktfYfW0nCHUChyL+on/IGcu40gHw1IQACQEf6OX/gL cg6Icctq++mPfrYTECMQHrs3RwbZ4gCe8WpCAtqfl7aTQs4PoijMmcck4Pu3R0GYE0nvFmnIBeZ ajBQ2 X-Gm-Gg: AY/fxX4vgjxF2eDOtTHeIO6hkzdfvj2UEtDq/ChIHa1WUm9Xc4MqsNME/COVQhw4us2 t0rFL4c13hR6D2SmDY4+WW9FV7YgDjcufLt6hGPLo8+y3gKiNPZoYkcftEmC6DqAhS2Z+kUwpfX 3ZxPVHDayFXayrAwxXsjZem9UAFv+sOZH+TWqdKYyRW/fVaJeyIKe2P3utItsdykfakLwq/Xtqe fL9WnzXSsr2Hb2O7a7CBB9z3wCY4SLzvJCrUGbHMox+iWdGiPUDq6BcRmxkNBo59AVQdtRa4Wcv T/fINQk/Vl6aL9pbioZnNLFY97hevkSX5Mv1gayG7KnydT1oZmdDpfeyBnGaIAmc6rjqFro5Ns6 BTFZ/CWMpCRcyNG+0qc+tGnWMtTHTXFwdtD9qZDZ2ULa+GgmJLnllFjHrsjtajLQu+St3PwdsSJ pMVM/YrgzcWX+SMX89j+VaW8HlwMNN+oG+edpsEyV8BC+GbRMT/RqKP2yCxlQQ6kur X-Google-Smtp-Source: AGHT+IEjCREWwBfHNqGxGIEAQcZ+8xVPdkGLwUACtyPxoAiKbaJ01Jg+4m9mZGw7VeF4ORhygOpXsg== X-Received: by 2002:a17:90b:5790:b0:341:d265:1e82 with SMTP id 98e67ed59e1d1-34a7288c12amr537865a91.29.1765328085942; Tue, 09 Dec 2025 16:54:45 -0800 (PST) Received: from inspiron14p-linux (p96936b06.osaknt01.ap.so-net.ne.jp. [150.147.107.6]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-bf6875cc8eesm16057762a12.16.2025.12.09.16.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Dec 2025 16:54:45 -0800 (PST) From: Bryan O'Donoghue To: libcamera-devel@lists.libcamera.org Cc: pavel@ucw.cz, Bryan O'Donoghue Subject: [PATCH v7 12/26] libcamera: software_isp: Add member variables to track selected input/output pixelFormat Date: Wed, 10 Dec 2025 00:53:40 +0000 Message-ID: <20251210005354.44726-13-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251210005354.44726-1-bryan.odonoghue@linaro.org> References: <20251210005354.44726-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" In order to have Debayer::start() tell the eGL shader compilation routine what the input and output pixel format is, we need to have a copy of the selected format available. Add variables to the inputConfig and outputConfig structures to allow tracking of this data for later use. Signed-off-by: Bryan O'Donoghue --- src/libcamera/software_isp/debayer.cpp | 10 ++++++++++ src/libcamera/software_isp/debayer.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/libcamera/software_isp/debayer.cpp b/src/libcamera/software_isp/debayer.cpp index 63a61daf9..ebd3e3a8b 100644 --- a/src/libcamera/software_isp/debayer.cpp +++ b/src/libcamera/software_isp/debayer.cpp @@ -290,6 +290,16 @@ Debayer::~Debayer() * output image buffer. Set during stream configuration. */ +/** + * \var Debayer::inputPixelFormat_ + * \brief The incoming pixel format. + */ + +/** + * \var Debayer::outputPixelFormat_ + * \brief The output pixel format. + */ + /** * \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 5c0cb3914..4a2ec3e53 100644 --- a/src/libcamera/software_isp/debayer.h +++ b/src/libcamera/software_isp/debayer.h @@ -75,6 +75,8 @@ public: DebayerInputConfig inputConfig_; DebayerOutputConfig outputConfig_; + PixelFormat inputPixelFormat_; + PixelFormat outputPixelFormat_; DebayerParams::LookupTable red_; DebayerParams::LookupTable green_; DebayerParams::LookupTable blue_;