From patchwork Mon Feb 16 20:30:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milan Zamazal X-Patchwork-Id: 26169 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 448D1C0DA4 for ; Mon, 16 Feb 2026 20:30:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7B8AF62200; Mon, 16 Feb 2026 21:30:44 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="LuFSujoo"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 670EF62084 for ; Mon, 16 Feb 2026 21:30:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771273842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AdLbeIRFuL/8ulm/igFGYpAMqWWaqs1z//8dVBMhGRE=; b=LuFSujooNY7WTM1M+dBK9vSVTbK+AvYVVQZWBWQvUbyIW7xuqYdR3Q2UBXVKp0sUKDX0z6 kpnPmkkiPzUZE0YbGnLUiAjuiOqQSwcMgijWmfxa66ERIzQ6YDAvqZADMnOAwGbGXufyLp Bh0omQqzuyytBkesCOpMqt96YTEQcg8= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-652-gRMIK9v_M8SvMGhuAu09wA-1; Mon, 16 Feb 2026 15:30:40 -0500 X-MC-Unique: gRMIK9v_M8SvMGhuAu09wA-1 X-Mimecast-MFC-AGG-ID: gRMIK9v_M8SvMGhuAu09wA_1771273839 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 597A21956046 for ; Mon, 16 Feb 2026 20:30:39 +0000 (UTC) Received: from mzamazal-thinkpadp1gen7.tpbc.com (unknown [10.44.32.25]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 23F9F1800464; Mon, 16 Feb 2026 20:30:37 +0000 (UTC) From: Milan Zamazal To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal Subject: [RFC PATCH v2 00/14] Software ISP: Share params and stats buffers Date: Mon, 16 Feb 2026 21:30:19 +0100 Message-ID: <20260216203034.27558-1-mzamazal@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ssQXWEwKvdOAlPgI4vqKMUP5706uPwBjWq1uJ6SvVJQ_1771273839 X-Mimecast-Originator: redhat.com 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 patch series implements parameters and statistics buffer sharing in software ISP. This is a rebase of an old patch series, adjusted for the current master and GPU ISP. It implements the following software ISP TODOs: - 2. Reconsider stats sharing - 5. Store ISP parameters in per-frame buffers The first part of the patches deals with parameters buffers, the next part with statistics buffers. It’s a way to make params correspond to the respective frames, which is currently not the case with software ISP. But with the plans to compute stats on a GPU and make everything synchronous, the only useful patches from this series may eventually be those dropping the software ISP TODOs. Which means I don’t plan to work on the patches further unless we decide they are needed. Changes in v2: - Rebase on master and make it working with GPU ISP. Milan Zamazal (14): libcamera: software_isp: Remove initializer_list include libcamera: software_isp: Introduce arguments for parameters buffers libcamera: software_isp: Separate allocation of the parameters buffer libcamera: software_isp: Track unused parameters buffers libcamera: software_isp: Allocation of multiple params buffers libcamera: software_isp: Allocate multiple parameters buffers libcamera: software_isp: Use multiple parameters buffers in IPA libcamera: software_isp: Share parameters buffers with debayering libcamera: software_isp: Remove per-frame params buffers TODO item libcamera: software_isp: Introduce arguments for statistics buffers libcamera: software_isp: Allocate statistics buffers libcamera: software_isp: Track statistics buffers libcamera: software_isp: Share statistics buffers with IPA libcamera: software_isp: Remove stats-sharing TODO item .../internal/software_isp/software_isp.h | 21 ++- .../internal/software_isp/swstats_cpu.h | 21 +-- include/libcamera/ipa/soft.mojom | 11 +- src/ipa/simple/soft_simple.cpp | 94 +++++++------ src/libcamera/pipeline/simple/simple.cpp | 12 +- src/libcamera/software_isp/TODO | 45 ------- src/libcamera/software_isp/debayer.cpp | 42 ++++-- src/libcamera/software_isp/debayer.h | 12 +- src/libcamera/software_isp/debayer_cpu.cpp | 79 ++++++----- src/libcamera/software_isp/debayer_cpu.h | 16 ++- src/libcamera/software_isp/debayer_egl.cpp | 18 ++- src/libcamera/software_isp/debayer_egl.h | 11 +- src/libcamera/software_isp/software_isp.cpp | 126 +++++++++++++++--- src/libcamera/software_isp/swstats_cpu.cpp | 66 ++++----- 14 files changed, 336 insertions(+), 238 deletions(-)