{"id":26169,"url":"https://patchwork.libcamera.org/api/1.1/covers/26169/?format=json","web_url":"https://patchwork.libcamera.org/cover/26169/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260216203034.27558-1-mzamazal@redhat.com>","date":"2026-02-16T20:30:19","name":"[RFC,v2,00/14] Software ISP: Share params and stats buffers","submitter":{"id":177,"url":"https://patchwork.libcamera.org/api/1.1/people/177/?format=json","name":"Milan Zamazal","email":"mzamazal@redhat.com"},"mbox":"https://patchwork.libcamera.org/cover/26169/mbox/","series":[{"id":5795,"url":"https://patchwork.libcamera.org/api/1.1/series/5795/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5795","date":"2026-02-16T20:30:19","name":"Software ISP: Share params and stats buffers","version":2,"mbox":"https://patchwork.libcamera.org/series/5795/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/26169/comments/","headers":{"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\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 448D1C0DA4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 16 Feb 2026 20:30:45 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7B8AF62200;\n\tMon, 16 Feb 2026 21:30:44 +0100 (CET)","from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.133.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 670EF62084\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 16 Feb 2026 21:30:43 +0100 (CET)","from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n\t(ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63])\n\tby relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n\tcipher=TLS_AES_256_GCM_SHA384) id us-mta-652-gRMIK9v_M8SvMGhuAu09wA-1;\n\tMon, 16 Feb 2026 15:30:40 -0500","from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n\t(mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n\t[10.30.177.93])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (2048 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\tby mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix)\n\twith ESMTPS\n\tid 597A21956046 for <libcamera-devel@lists.libcamera.org>;\n\tMon, 16 Feb 2026 20:30:39 +0000 (UTC)","from mzamazal-thinkpadp1gen7.tpbc.com (unknown [10.44.32.25])\n\tby mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix)\n\twith ESMTP id 23F9F1800464; Mon, 16 Feb 2026 20:30:37 +0000 (UTC)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=redhat.com header.i=@redhat.com\n\theader.b=\"LuFSujoo\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1771273842;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\tcontent-transfer-encoding:content-transfer-encoding;\n\tbh=AdLbeIRFuL/8ulm/igFGYpAMqWWaqs1z//8dVBMhGRE=;\n\tb=LuFSujooNY7WTM1M+dBK9vSVTbK+AvYVVQZWBWQvUbyIW7xuqYdR3Q2UBXVKp0sUKDX0z6\n\tkpnPmkkiPzUZE0YbGnLUiAjuiOqQSwcMgijWmfxa66ERIzQ6YDAvqZADMnOAwGbGXufyLp\n\tBh0omQqzuyytBkesCOpMqt96YTEQcg8=","X-MC-Unique":"gRMIK9v_M8SvMGhuAu09wA-1","X-Mimecast-MFC-AGG-ID":"gRMIK9v_M8SvMGhuAu09wA_1771273839","From":"Milan Zamazal <mzamazal@redhat.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Milan Zamazal <mzamazal@redhat.com>","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","Content-Type":"text/plain; charset=UTF-8","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>,\n\t<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>,\n\t<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>"},"content":"This patch series implements parameters and statistics buffer sharing in\nsoftware ISP.  This is a rebase of an old patch series, adjusted for the\ncurrent master and GPU ISP.  It implements the following software ISP\nTODOs:\n\n- 2. Reconsider stats sharing\n- 5. Store ISP parameters in per-frame buffers\n\nThe first part of the patches deals with parameters buffers, the next\npart with statistics buffers.\n\nIt’s a way to make params correspond to the respective frames, which is\ncurrently not the case with software ISP.  But with the plans to compute\nstats on a GPU and make everything synchronous, the only useful patches\nfrom this series may eventually be those dropping the software ISP\nTODOs.  Which means I don’t plan to work on the patches further unless\nwe decide they are needed.\n\nChanges in v2:\n- Rebase on master and make it working with GPU ISP.\n\nMilan Zamazal (14):\n  libcamera: software_isp: Remove initializer_list include\n  libcamera: software_isp: Introduce arguments for parameters buffers\n  libcamera: software_isp: Separate allocation of the parameters buffer\n  libcamera: software_isp: Track unused parameters buffers\n  libcamera: software_isp: Allocation of multiple params buffers\n  libcamera: software_isp: Allocate multiple parameters buffers\n  libcamera: software_isp: Use multiple parameters buffers in IPA\n  libcamera: software_isp: Share parameters buffers with debayering\n  libcamera: software_isp: Remove per-frame params buffers TODO item\n  libcamera: software_isp: Introduce arguments for statistics buffers\n  libcamera: software_isp: Allocate statistics buffers\n  libcamera: software_isp: Track statistics buffers\n  libcamera: software_isp: Share statistics buffers with IPA\n  libcamera: software_isp: Remove stats-sharing TODO item\n\n .../internal/software_isp/software_isp.h      |  21 ++-\n .../internal/software_isp/swstats_cpu.h       |  21 +--\n include/libcamera/ipa/soft.mojom              |  11 +-\n src/ipa/simple/soft_simple.cpp                |  94 +++++++------\n src/libcamera/pipeline/simple/simple.cpp      |  12 +-\n src/libcamera/software_isp/TODO               |  45 -------\n src/libcamera/software_isp/debayer.cpp        |  42 ++++--\n src/libcamera/software_isp/debayer.h          |  12 +-\n src/libcamera/software_isp/debayer_cpu.cpp    |  79 ++++++-----\n src/libcamera/software_isp/debayer_cpu.h      |  16 ++-\n src/libcamera/software_isp/debayer_egl.cpp    |  18 ++-\n src/libcamera/software_isp/debayer_egl.h      |  11 +-\n src/libcamera/software_isp/software_isp.cpp   | 126 +++++++++++++++---\n src/libcamera/software_isp/swstats_cpu.cpp    |  66 ++++-----\n 14 files changed, 336 insertions(+), 238 deletions(-)"}