From patchwork Mon Jul 25 19:23:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 16769 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 0F763BE173 for ; Mon, 25 Jul 2022 19:23:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 49A1C63312; Mon, 25 Jul 2022 21:23:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1658777010; bh=ZkXc1lGPgjfE9XHTD+PVAbXhvF46NqsTToF0fsggm4I=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=B1MNMm3BozFVnnw10sRYPptphehFDRO9NwpcEO885SG1Qa1VgvWV6iJnMu3rNauoz yddd1u5WAqJAju9H7BVGCIGc6XmUSLBhsGoLVFV1qEGxsXMYkJeDQbbMRH2mK6Mobl SC1DKnMH5N6EXjV6z7deCgjZK5yahLSQvVJEaDav2nJXIqXqKI2mazuuv1m/gSYqHh DiBnfLfhzTicfmcwE5wWeOHP8YPbb6gIgkt3vVk1Rka14pRPXbU9vhyEvD+PA9TmDF tbbuLrbXnMj98KJwULSJzcv9MnentGBs8EZJ/RsEre67jKp9T5fkmKN/24kFNuv9Oy iqhbCXv/twO8w== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 17B256330A for ; Mon, 25 Jul 2022 21:23:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="BKq91XW5"; dkim-atps=neutral Received: from perceval.ideasonboard.com (unknown [IPv6:2401:4900:1f3e:f7a:bc8f:12ed:b45f:c35d]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CC69C6D1; Mon, 25 Jul 2022 21:23:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1658777008; bh=ZkXc1lGPgjfE9XHTD+PVAbXhvF46NqsTToF0fsggm4I=; h=From:To:Cc:Subject:Date:From; b=BKq91XW548hiTcI9XVWqttcQE4k1yhMWu+O0rsIdZSs0evix4UlmW2RXa81gCjQDq UNjGI1yN3irk0hg8iXk+EzKnIg39o3dQhbKVgRw4VEL1dj+/Oyd8wJ6jplCaEikeTu XfSpiZyXcn8XuOpasHaz4B//KzI+mx03V3DBjj7g= To: libcamera-devel@lists.libcamera.org Date: Tue, 26 Jul 2022 00:53:14 +0530 Message-Id: <20220725192317.99026-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 0/3] utils: IPU3 read statistics helper 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: , X-Patchwork-Original-From: Umang Jain via libcamera-devel From: Umang Jain Reply-To: Umang Jain Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" RFC on IPU3 read statistics helper. Based on [PATCH v1 0/2] Standalone IMGU streaming The ipu3-read-stats can be extended further by dumping more meaningful stats from struct ipu3_uapi_stats_3a itself. Currently it prints out the averages of RGB channels of a frame. However, if someone has better understanding of the structure to convey meaningful information, I would appreciate the ideas on how to do it. Umang Jain (3): utils: ipu3-gen-imgu-input: Generate frames with different b/g utils: ipu3: Executable helper to read statistics utils: ipu3: ipu3-process Save generated stats to a file utils/ipu3/ipu3-gen-imgu-input.sh | 6 +- utils/ipu3/ipu3-process.sh | 3 +- utils/ipu3/ipu3-read-stats.c | 110 ++++++++++++++++++++++++++++++ utils/ipu3/meson.build | 2 + 4 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 utils/ipu3/ipu3-read-stats.c