From patchwork Sun Nov 3 15:21:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 21798 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 418A1BDB1D for ; Sun, 3 Nov 2024 15:22:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6BB97653BD; Sun, 3 Nov 2024 16:22:15 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="DnhyClR/"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 16C3F653A1 for ; Sun, 3 Nov 2024 16:22:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1730647331; 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=OcwsjoEJe2y7Cits6/qDsK+0+/hxbPfxY/2lfluUuvI=; b=DnhyClR/Er87u1mkNVJ0EQUykeU3nvGscLbAJLA+7bSA3VGHtNW63iXTsy4+BgVw7ZMW+q 0AY++UytyjS77Nb2sPLWRJjURKN6DENAu8nOhQx4fNdVX3mjxjQJ5prP8A8re5iUm+zyP8 Ustq3VvCYqhjDLiWQ47KzJwF8WlgLZw= Received: from mx-prod-mc-02.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-563-Vcxx33hVMwatV9ehNsV71w-1; Sun, 03 Nov 2024 10:22:10 -0500 X-MC-Unique: Vcxx33hVMwatV9ehNsV71w-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6D81A19560A7 for ; Sun, 3 Nov 2024 15:22:09 +0000 (UTC) Received: from shalem.redhat.com (unknown [10.39.192.77]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 658571956086; Sun, 3 Nov 2024 15:22:06 +0000 (UTC) From: Hans de Goede To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal , Maxime Ripard , Hans de Goede Subject: [PATCH 0/8] libcamera: Add swstats_cpu::processFrame() and atomisp pipeline 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 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" Hi All, Here is a patch series adding a new pipeline handler for the atomisp. This series includes the patches which I posted earlier as: "[RFC 0/4] libcamera: swstats_cpu: Add processFrame() method" as patches 1, 2, 4 and 5. I have added Reviewed-by-s received on the RFC posting and I've fixed the lack of doxygen documentation. I have pushed this to the libcamera-softisp as atomisp-v1 and this has passed CI without any issues, see: https://gitlab.freedesktop.org/camera/libcamera-softisp/-/commit/111b26f3b1c353888ebab3268a632f8827d83f2d/pipelines?ref=atomisp-v1 Regards, Hans Hans de Goede (8): libcamera: swstats_cpu: Update statsProcessFn() / processLine0() documentation libcamera: swstats_cpu: Drop patternSize_ documentation libcamera: swstats_cpu: Move header to libcamera/internal/software_isp libcamera: software_isp: Move benchmark code to its own class libcamera: swstats_cpu: Add processFrame() method libcamera: swstats_cpu: Add support for YUV420 libcamera: ipa_manager: createIPA: Allow passing an IPA name to match libcamera: Add new atomisp pipeline handler include/libcamera/internal/ipa_manager.h | 11 +- include/libcamera/internal/ipa_module.h | 2 +- .../internal/software_isp/benchmark.h | 36 ++ .../internal/software_isp/meson.build | 2 + .../internal}/software_isp/swstats_cpu.h | 18 + meson.build | 1 + meson_options.txt | 1 + src/ipa/simple/data/uncalibrated_atomisp.yaml | 7 + src/libcamera/ipa_manager.cpp | 7 +- src/libcamera/ipa_module.cpp | 6 +- src/libcamera/pipeline/atomisp/atomisp.cpp | 584 ++++++++++++++++++ src/libcamera/pipeline/atomisp/meson.build | 5 + src/libcamera/software_isp/benchmark.cpp | 93 +++ src/libcamera/software_isp/debayer_cpu.cpp | 32 +- src/libcamera/software_isp/debayer_cpu.h | 9 +- src/libcamera/software_isp/meson.build | 3 +- src/libcamera/software_isp/swstats_cpu.cpp | 178 +++++- 17 files changed, 926 insertions(+), 69 deletions(-) create mode 100644 include/libcamera/internal/software_isp/benchmark.h rename {src/libcamera => include/libcamera/internal}/software_isp/swstats_cpu.h (79%) create mode 100644 src/ipa/simple/data/uncalibrated_atomisp.yaml create mode 100644 src/libcamera/pipeline/atomisp/atomisp.cpp create mode 100644 src/libcamera/pipeline/atomisp/meson.build create mode 100644 src/libcamera/software_isp/benchmark.cpp