{"id":23352,"url":"https://patchwork.libcamera.org/api/covers/23352/?format=json","web_url":"https://patchwork.libcamera.org/cover/23352/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20250510141220.54872-1-hdegoede@redhat.com>","date":"2025-05-10T14:12:12","name":"[v2,0/8] libcamera: Add swstats_cpu::processFrame() and atomisp pipeline handler","submitter":{"id":102,"url":"https://patchwork.libcamera.org/api/people/102/?format=json","name":"Hans de Goede","email":"hdegoede@redhat.com"},"mbox":"https://patchwork.libcamera.org/cover/23352/mbox/","series":[{"id":5169,"url":"https://patchwork.libcamera.org/api/series/5169/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5169","date":"2025-05-10T14:12:12","name":"libcamera: Add swstats_cpu::processFrame() and atomisp pipeline handler","version":2,"mbox":"https://patchwork.libcamera.org/series/5169/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/23352/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 D9342C3226\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 10 May 2025 14:12:34 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2A21C68AD7;\n\tSat, 10 May 2025 16:12:34 +0200 (CEST)","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 46EBB6175C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 10 May 2025 16:12:32 +0200 (CEST)","from mx-prod-mc-04.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-582-SUcVxy0WO26o95zJhwb-bw-1;\n\tSat, 10 May 2025 10:12:29 -0400","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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix)\n\twith ESMTPS\n\tid 3FF2D1955DBA for <libcamera-devel@lists.libcamera.org>;\n\tSat, 10 May 2025 14:12:28 +0000 (UTC)","from localhost.localdomain (unknown [10.45.224.58])\n\tby mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix)\n\twith ESMTP id A970B1800359; Sat, 10 May 2025 14:12:26 +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=\"AfVcV0IU\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1746886351;\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=36Au2nfCR/z1nayuLN7rVxa36GiISBpjHetrBLZlbcA=;\n\tb=AfVcV0IUCeFnJsY6w2mAQ3cgshxc6QS2GVR8pQzEi9YeYfVRWZ6Mkgls2xUHKc6L9sT+Lz\n\t8z3F4nnwf99WMvrA6PqlC1ZMmMFhWKolrn80/ADUJ/Oc0xCFFTPwUccJIPxL4WMCIKkeFE\n\thV4B2uS6WvdAZ5l0Y+GarO9CI/k+PGg=","X-MC-Unique":"SUcVxy0WO26o95zJhwb-bw-1","X-Mimecast-MFC-AGG-ID":"SUcVxy0WO26o95zJhwb-bw_1746886348","From":"Hans de Goede <hdegoede@redhat.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Milan Zamazal <mzamazal@redhat.com>, Hans de Goede <hdegoede@redhat.com>","Subject":"[PATCH v2 0/8] libcamera: Add swstats_cpu::processFrame() and\n\tatomisp pipeline handler","Date":"Sat, 10 May 2025 16:12:12 +0200","Message-ID":"<20250510141220.54872-1-hdegoede@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":"e7pwHSF4oHSWln8_tL-6tnKnDrt8QzOoWj6b59_ff0U_1746886348","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","content-type":"text/plain; charset=\"US-ASCII\"; x-default=true","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":"Hi All,\n\nHere is v2 of my patch series adding support to the swstats_cpu code\nto process a whole frame in one go (also useful for the GPU-ISP work)\nand adding a new pipeline handler for the atomisp.\n\nOriginal v1 series:\nhttps://patchwork.libcamera.org/cover/21798/\n\nLater rebased resend of just the swstats_cpu::processFrame() changes:\nhttps://patchwork.libcamera.org/cover/22186/\n\nChanges in v2:\n- Rebase on top of latest master\n- Fix the lack of doxygen documentation\n- Reworked \"[PATCH v2 7/8] libcamera: ipa_manager: createIPA: Allow\n  matching by IPA name instead of by pipeline\" this probably is the most\n  controversial change in this series\n- Modify atomisp pipeline handler to also work with sensors where there\n  is an ISP on the sensor which the driver registers as a separate\n  v4l2-subdev like the MT9M114 sensor driver\n\nPatches 1-4 have already been reviewed by both Kieran and Milan.\n\nPlease review patches 5-8.\n\nThis has already successfully passed the CI, see:\nhttps://gitlab.freedesktop.org/camera/libcamera-softisp/-/commits/atomisp-v2/\n\nRegards,\n\nHans\n\n\nHans de Goede (8):\n  libcamera: swstats_cpu: Update statsProcessFn() / processLine0()\n    documentation\n  libcamera: swstats_cpu: Drop patternSize_ documentation\n  libcamera: swstats_cpu: Move header to libcamera/internal/software_isp\n  libcamera: software_isp: Move benchmark code to its own class\n  libcamera: swstats_cpu: Add processFrame() method\n  libcamera: swstats_cpu: Add support for YUV420\n  libcamera: ipa_manager: createIPA: Allow matching by IPA name instead\n    of by pipeline\n  libcamera: Add new atomisp pipeline handler\n\n include/libcamera/internal/ipa_manager.h      |   7 +-\n include/libcamera/internal/ipa_module.h       |   4 +-\n .../internal/software_isp/benchmark.h         |  36 +\n .../internal/software_isp/meson.build         |   2 +\n .../internal}/software_isp/swstats_cpu.h      |  18 +\n meson.build                                   |   1 +\n meson_options.txt                             |   1 +\n src/ipa/simple/data/uncalibrated_atomisp.yaml |   7 +\n src/libcamera/ipa_manager.cpp                 |   6 +-\n src/libcamera/ipa_module.cpp                  |  19 +-\n src/libcamera/pipeline/atomisp/atomisp.cpp    | 636 ++++++++++++++++++\n src/libcamera/pipeline/atomisp/meson.build    |   5 +\n src/libcamera/software_isp/benchmark.cpp      |  93 +++\n src/libcamera/software_isp/debayer_cpu.cpp    |  36 +-\n src/libcamera/software_isp/debayer_cpu.h      |   9 +-\n src/libcamera/software_isp/meson.build        |   3 +-\n src/libcamera/software_isp/swstats_cpu.cpp    | 178 ++++-\n 17 files changed, 985 insertions(+), 76 deletions(-)\n create mode 100644 include/libcamera/internal/software_isp/benchmark.h\n rename {src/libcamera => include/libcamera/internal}/software_isp/swstats_cpu.h (79%)\n create mode 100644 src/ipa/simple/data/uncalibrated_atomisp.yaml\n create mode 100644 src/libcamera/pipeline/atomisp/atomisp.cpp\n create mode 100644 src/libcamera/pipeline/atomisp/meson.build\n create mode 100644 src/libcamera/software_isp/benchmark.cpp"}