From patchwork Thu Jun 30 10:16:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Michel Hautbois X-Patchwork-Id: 16455 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 89609BE173 for ; Thu, 30 Jun 2022 10:17:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DD2026565D; Thu, 30 Jun 2022 12:17:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1656584231; bh=XOv3JWqDc/SO3b/OalIQktDmEKkOwObBfif0/XcT41M=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=gnuXxcPDKLJNIGeBhK7p8ajVZO1Ybjz9/56ZLBaj8Ih1tM4e91RBJoAl+Lgt65JIq ImLB1fAYYIoJcG6rT5duEssPp+TTBPd0ASyAWdEO00ge1mqBsIr5eBXHVPtX7b8q1M +t5lQJWdRmSw57vjaIFA4aGE3LVJMyoQkRkRH6L2YlYQ0sfpbpCMJESSNj9gHwJ4Q3 kFbC6McPe/nNgBCcV61Vf1d3z2wGGk7T7boujUJQVROiVPTgAjP7FyboSEayMP0BFe rNWuwpm4oXKQD7zMYxFDrQICQ01cPRaMT6DJJmAvICgBWWgf9fnrihaQdJFfZXL58a ui6R2ab45bDQA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9C03A65650 for ; Thu, 30 Jun 2022 12:17:07 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="mmWHVJvo"; dkim-atps=neutral Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:4fb3:9c17:e136:8792]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 90F4D6BB; Thu, 30 Jun 2022 12:17:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1656584226; bh=XOv3JWqDc/SO3b/OalIQktDmEKkOwObBfif0/XcT41M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mmWHVJvoIQoCfW1tDnCiif5m6V0TTqSGTIUjl9aElGIEWMYLIH1Qe7P875CL0jAPv s/rgdCU+OA2/im2rV4xxyAcNwhzzODnUVEe4pJR7Wtc/WJO/13KlajPV2w6dEA6vTG qYJh3zniRxJyS9OHUXXJHfGTC5lHSjAGagxxe9g4= To: libcamera-devel@lists.libcamera.org Date: Thu, 30 Jun 2022 12:16:59 +0200 Message-Id: <20220630101702.45781-3-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220630101702.45781-1-jeanmichel.hautbois@ideasonboard.com> References: <20220630101702.45781-1-jeanmichel.hautbois@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/5] utils: ipu3: Display only if it is modified by userspace 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: Jean-Michel Hautbois via libcamera-devel From: Jean-Michel Hautbois Reply-To: Jean-Michel Hautbois Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The ImgU is configured by passing a parameters buffer which is parsed on the kernel side to test if a processing block needs to be configured from the userspace structure or from the default ones. This is controled by the ipu3_uapi_flags field. Use this field to display only the structures modified by the userspace. Signed-off-by: Jean-Michel Hautbois --- utils/ipu3/ipu3-dump-params.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/utils/ipu3/ipu3-dump-params.c b/utils/ipu3/ipu3-dump-params.c index 9bd61593..37cf2e6f 100644 --- a/utils/ipu3/ipu3-dump-params.c +++ b/utils/ipu3/ipu3-dump-params.c @@ -64,9 +64,14 @@ start: printf("Read parameters buffer of size %d\n", ret); - printf("\n**** AWB parameters ****\n"); - displayGrid(¶ms.acc_param.awb.config.grid, "awb"); - displayGrid(¶ms.acc_param.awb_fr.grid_cfg, "awb_fr"); + if (params.use.acc_awb) { + printf("\n**** AWB parameters ****\n"); + displayGrid(¶ms.acc_param.awb.config.grid, "awb"); + } + if (params.use.acc_awb_fr) { + printf("\n**** AWB filter response parameters ****\n"); + displayGrid(¶ms.acc_param.awb_fr.grid_cfg, "awb_fr"); + } close(in_fd);