From patchwork Thu Jun 18 12:22:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 26936 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 0EDAEBF415 for ; Thu, 18 Jun 2026 12:23:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 52A7362B29; Thu, 18 Jun 2026 14:23:06 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="yIsO7i5s"; dkim-atps=neutral Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2B8F662987 for ; Thu, 18 Jun 2026 14:23:00 +0200 (CEST) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-45eeba68948so678305f8f.1 for ; Thu, 18 Jun 2026 05:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781785379; x=1782390179; 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=1J5bcMG3cS5HzAUNVk+psEM90P+jr41K1tK0MCZOzXo=; b=yIsO7i5sXz5VY6ao1dJ+hePHxUC6mh1g59mlwT0sH484QWw2wJGcITJbTJdZC2t3Kg 4EKxvNFEPRupDFsGWyaNCe2EY7T/H68FZeTgqZyTGCzqvE4xMHTYQKJ/MDbho7nxxve3 ZZ2wsp2F9txunWvidfLilW7/XkvvsL/rqmQ8Vm2zUuwng7YMJDDlYe5q8oyhSQBMkjB6 BJ5IA7wDK+lxa1KxR3UUI6iIxvnQi/diQHB6tJ0rXvUNsAAqYLidrqrAwN9BrYPC4aTt js0VA5Qe2BNQDCLLDSSnezFKtKkgcV+RjRNxQZhZ5XzHj6ni3dtNuMTCID0oegUQRasL Yl3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781785379; x=1782390179; 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=1J5bcMG3cS5HzAUNVk+psEM90P+jr41K1tK0MCZOzXo=; b=rVMOAbF25YZOHAdY0OyKtMRcTQa9J4GoCVag6b920rOma15OFxNLiFvWaBvoXOwPMm W5MctHMA4U5L3ZbPjfvT/KUNTsAp5kTj13ReeQd+OHTAOfvjZ9RU9mSCbpQrpLjvGqFm h3LZsgCogYEvfDBxgUeEHLEqn3q8QjZKiP1dYZUGEUIunkhnfNKxpKYIs+k9/521Wrn0 3+P8fzmdHQXsc/Y6X4cEvN31c/D6TISsJYVqkhTRiRGmW0DvaGTag9uzXdI66KugH2Qh Jvcae+ESzBgaWlgNPsrzqSIxujzFAbP8QTItLhrV0wUxIymlSd8ufhXivbc9d8I8hCvu hvoA== X-Gm-Message-State: AOJu0YzgmFoJeQbsATUkNhA4D+miPhTDfNCYqOBenkTOjO0ZAfeP3zHt ljSlSZDCMB08I/fDnxICFtUEW8gxH3QaDOAAp0jt83bWi8g7jBuOQSTuBhPvd4JR/CzMqCJmJs4 EKhjg0t0= X-Gm-Gg: AfdE7clf8N1hLthzSi3F1+c+bcblyMuckZTQJfrmSGyR+WK/dfLIi5klZfBFSO9WMB0 oqlHpcMgczDWy2/b35k2F0mRsoH2nkdVjSVHVAzA7WDqEUQhFnU8j4H1rl/35juJlCMOS9re/ZA ASZ9q7F67SYMF9a8VnKejQrDVJqefsXRcAazkyW57j1VtMnAqOXlwn9H4PvlPybQz0Lmg5UzCfy l3cxzVnwaUd4iUrDSIrEOW3ojuXX/DBXu5WprFNiM4EcrX7fhUM5QHRoNxTHxQVjKnFRACP8UMN zREh7KAeas4zPsJoUatWTlOC3Iw/uJF/7VWkuDfBsmPsmsNSpQl6Aadj7AC4jsoRnEqLiZphvdZ XSV2q808LAwGDyhaWBhMJ7M2d8CwV+kEnZpjksYfteXXpusAA07zj45m1dPhJVNf44u6SyS+61K HAnk3MTBWLn1emr7O/jD56xtbB1tQM X-Received: by 2002:a05:600c:247:b0:490:bd66:e522 with SMTP id 5b1f17b1804b1-492333d8c06mr108522325e9.29.1781785379367; Thu, 18 Jun 2026 05:22:59 -0700 (PDT) Received: from inspiron14p-linux ([109.76.144.236]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4922fa3a4easm275198015e9.3.2026.06.18.05.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2026 05:22:58 -0700 (PDT) From: Bryan O'Donoghue To: libcamera-devel@lists.libcamera.org Cc: bryan.odonoghue@linaro.org, pavel@ucw.cz Subject: [PATCH 03/30] libcamera: software_isp: gpu: rename debayerGPU to processGPU Date: Thu, 18 Jun 2026 13:22:16 +0100 Message-ID: <20260618122245.946138-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260618122245.946138-1-bryan.odonoghue@linaro.org> References: <20260618122245.946138-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" This function will do more than debayer, rename it to reflect. Signed-off-by: Bryan O'Donoghue --- src/libcamera/software_isp/software_isp_pipeline_gpu.cpp | 4 ++-- src/libcamera/software_isp/software_isp_pipeline_gpu.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libcamera/software_isp/software_isp_pipeline_gpu.cpp b/src/libcamera/software_isp/software_isp_pipeline_gpu.cpp index c68a04fff..6f988d672 100644 --- a/src/libcamera/software_isp/software_isp_pipeline_gpu.cpp +++ b/src/libcamera/software_isp/software_isp_pipeline_gpu.cpp @@ -511,7 +511,7 @@ void SoftwareIspPipelineGpu::setShaderVariableValues(const DebayerParams ¶ms return; } -int SoftwareIspPipelineGpu::debayerGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional *inMapped, std::optional *inDmaSyncer) +int SoftwareIspPipelineGpu::processGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional *inMapped, std::optional *inDmaSyncer) { bool dmabuf_import_succeeded = false; @@ -569,7 +569,7 @@ void SoftwareIspPipelineGpu::process(uint32_t frame, FrameBuffer *input, FrameBu std::optional inMapped; std::optional inDmaSyncer; - if (debayerGPU(input, output, params, &inMapped, &inDmaSyncer)) { + if (processGPU(input, output, params, &inMapped, &inDmaSyncer)) { LOG(Debayer, Error) << "debayerGPU failed"; goto error; } diff --git a/src/libcamera/software_isp/software_isp_pipeline_gpu.h b/src/libcamera/software_isp/software_isp_pipeline_gpu.h index 6f161e063..f0515d889 100644 --- a/src/libcamera/software_isp/software_isp_pipeline_gpu.h +++ b/src/libcamera/software_isp/software_isp_pipeline_gpu.h @@ -65,7 +65,8 @@ private: int initBayerShaders(PixelFormat inputFormat, PixelFormat outputFormat); int getShaderVariableLocations(); void setShaderVariableValues(const DebayerParams ¶ms); - int debayerGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional *mappedInputBuffer, std::optional *inputBufferDmaSyncer); + int processGPU(FrameBuffer *input, FrameBuffer *output, const DebayerParams ¶ms, std::optional *mappedInputBuffer, std::optional *inputBufferDmaSyncer); + void configureTexture(GLuint &texture); /* Shader program identifiers */ GLuint vertexShaderId_ = 0;