{"id":21798,"url":"https://patchwork.libcamera.org/api/1.1/covers/21798/?format=json","web_url":"https://patchwork.libcamera.org/cover/21798/","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":"<20241103152205.29219-1-hdegoede@redhat.com>","date":"2024-11-03T15:21:57","name":"[0/8] libcamera: Add swstats_cpu::processFrame() and atomisp pipeline handler","submitter":{"id":102,"url":"https://patchwork.libcamera.org/api/1.1/people/102/?format=json","name":"Hans de Goede","email":"hdegoede@redhat.com"},"mbox":"https://patchwork.libcamera.org/cover/21798/mbox/","series":[{"id":4764,"url":"https://patchwork.libcamera.org/api/1.1/series/4764/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4764","date":"2024-11-03T15:21:57","name":"libcamera: Add swstats_cpu::processFrame() and atomisp pipeline handler","version":1,"mbox":"https://patchwork.libcamera.org/series/4764/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/21798/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 418A1BDB1D\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun,  3 Nov 2024 15:22:16 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 6BB97653BD;\n\tSun,  3 Nov 2024 16:22:15 +0100 (CET)","from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.129.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 16C3F653A1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  3 Nov 2024 16:22:12 +0100 (CET)","from mx-prod-mc-02.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-563-Vcxx33hVMwatV9ehNsV71w-1;\n\tSun, 03 Nov 2024 10:22:10 -0500","from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com\n\t(mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com\n\t[10.30.177.15])\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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix)\n\twith ESMTPS\n\tid 6D81A19560A7 for <libcamera-devel@lists.libcamera.org>;\n\tSun,  3 Nov 2024 15:22:09 +0000 (UTC)","from shalem.redhat.com (unknown [10.39.192.77])\n\tby mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix)\n\twith ESMTP id 658571956086; Sun,  3 Nov 2024 15:22:06 +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=\"DnhyClR/\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1730647331;\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=OcwsjoEJe2y7Cits6/qDsK+0+/hxbPfxY/2lfluUuvI=;\n\tb=DnhyClR/Er87u1mkNVJ0EQUykeU3nvGscLbAJLA+7bSA3VGHtNW63iXTsy4+BgVw7ZMW+q\n\t0AY++UytyjS77Nb2sPLWRJjURKN6DENAu8nOhQx4fNdVX3mjxjQJ5prP8A8re5iUm+zyP8\n\tUstq3VvCYqhjDLiWQ47KzJwF8WlgLZw=","X-MC-Unique":"Vcxx33hVMwatV9ehNsV71w-1","From":"Hans de Goede <hdegoede@redhat.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Milan Zamazal <mzamazal@redhat.com>, Maxime Ripard <mripard@redhat.com>, \n\tHans de Goede <hdegoede@redhat.com>","Subject":"[PATCH 0/8] libcamera: Add swstats_cpu::processFrame() and atomisp\n\tpipeline handler","Date":"Sun,  3 Nov 2024 16:21:57 +0100","Message-ID":"<20241103152205.29219-1-hdegoede@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.0 on 10.30.177.15","X-Mimecast-Spam-Score":"0","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 a patch series adding a new pipeline handler for the atomisp.\n\nThis series includes the patches which I posted earlier as:\n\"[RFC 0/4] libcamera: swstats_cpu: Add processFrame() method\"\nas patches 1, 2, 4 and 5. I have added Reviewed-by-s received on the RFC\nposting and I've fixed the lack of doxygen documentation.\n\nI have pushed this to the libcamera-softisp as atomisp-v1 and this\nhas passed CI without any issues, see:\nhttps://gitlab.freedesktop.org/camera/libcamera-softisp/-/commit/111b26f3b1c353888ebab3268a632f8827d83f2d/pipelines?ref=atomisp-v1\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 passing an IPA name to match\n  libcamera: Add new atomisp pipeline handler\n\n include/libcamera/internal/ipa_manager.h      |  11 +-\n include/libcamera/internal/ipa_module.h       |   2 +-\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                 |   7 +-\n src/libcamera/ipa_module.cpp                  |   6 +-\n src/libcamera/pipeline/atomisp/atomisp.cpp    | 584 ++++++++++++++++++\n src/libcamera/pipeline/atomisp/meson.build    |   5 +\n src/libcamera/software_isp/benchmark.cpp      |  93 +++\n src/libcamera/software_isp/debayer_cpu.cpp    |  32 +-\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, 926 insertions(+), 69 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"}