From patchwork Thu Dec 5 19:25:14 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: 22186 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 4B58BBDB1C for ; Thu, 5 Dec 2024 19:25:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9245866110; Thu, 5 Dec 2024 20:25:32 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="QJIDq5I/"; 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 124736608C for ; Thu, 5 Dec 2024 20:25:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733426729; 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=vReCodr/0e9Mu4x1HFLLcmdVB+lAZ9sqkkc6JitsDhQ=; b=QJIDq5I/uJ88znmpHFqvBSxBedDS472cJkvNUATQxVYphJ8EkfNn2ns1JD3gujcNMUdi4S fP1jdc/P8TLe2zmFRbQUuLtXC6oIjASfw9su5S06DrzIBVouiR8J8FMuqv2k/0MZxrFQYp Bc40to9S1oXlzHyvsdfG4zm5yTMG0Pk= 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-179-WOj-X0ClNxSf7gDY8IfSZA-1; Thu, 05 Dec 2024 14:25:28 -0500 X-MC-Unique: WOj-X0ClNxSf7gDY8IfSZA-1 X-Mimecast-MFC-AGG-ID: WOj-X0ClNxSf7gDY8IfSZA 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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 67D171955E99 for ; Thu, 5 Dec 2024 19:25:27 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.192.39]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 463F81956095; Thu, 5 Dec 2024 19:25:25 +0000 (UTC) From: Hans de Goede To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal , Hans de Goede Subject: [PATCH resend 0/5] libcamera: Add swstats_cpu::processFrame() Date: Thu, 5 Dec 2024 20:25:14 +0100 Message-ID: <20241205192519.49104-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-MFC-PROC-ID: lzxhFov3gBgSjfF5qtq6U_M1YRppJuGXQuK1bO76Z-s_1733426727 X-Mimecast-Originator: redhat.com 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi all, As discussed here is a resend of patches 1-5 of: https://lists.libcamera.org/pipermail/libcamera-devel/2024-November/046280.html since patchwork did not pick up the original series properly. This repost consists of the patches which I posted earlier as: "[RFC 0/4] libcamera: swstats_cpu: Add processFrame() method". Compared to the RFC this fixes the lack of doxygen documentation. Compared to the previous posting which did not properly make patchwork, this resend has been rebased on top of the latest master with some minor conflicts resolved. Regards, Hans Hans de Goede (5): 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 .../internal/software_isp/benchmark.h | 36 +++++++ .../internal/software_isp/meson.build | 2 + .../internal}/software_isp/swstats_cpu.h | 12 +++ src/libcamera/software_isp/benchmark.cpp | 93 +++++++++++++++++++ src/libcamera/software_isp/debayer_cpu.cpp | 36 +------ src/libcamera/software_isp/debayer_cpu.h | 9 +- src/libcamera/software_isp/meson.build | 1 + src/libcamera/software_isp/swstats_cpu.cpp | 89 +++++++++++++----- 8 files changed, 216 insertions(+), 62 deletions(-) create mode 100644 include/libcamera/internal/software_isp/benchmark.h rename {src/libcamera => include/libcamera/internal}/software_isp/swstats_cpu.h (86%) create mode 100644 src/libcamera/software_isp/benchmark.cpp