From patchwork Thu Jun 30 10:17:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jean-Michel Hautbois X-Patchwork-Id: 16457 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 4A42ABE173 for ; Thu, 30 Jun 2022 10:17:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5414E65658; Thu, 30 Jun 2022 12:17:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1656584234; bh=JUorfA7CE7JKlP6v+ZG3Tzg7kT5i6dRMwZg8I7Pn1OA=; 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=gMBk5DFK4lmEdzNGhHsaftLSAK6NT5Xjaky8xfmF6kqHjy2/kxwg3NmBwuGxBJUcY XSUQCjWtCZ6HkAzMURZfaCO9d3VoL4fOAA1m/u99T/pt5TDfdZ34q8YfBdFbmtkjpF ahSwJtseuPx3cD+LGzUj++7K9bPtNyEjfGcnu4VnyAIkhlV+JO9KCNdnxn6x+ZZ4MU CGUrSWS5+aOGCznXOikBnW8qHEwYbeqqBKydX/JYPhJYpgtkFxor5YwYm0P4pwNVGx 0QOxETPXPt1g8KrvZ+j9vmYdWXK3900Aer2pQuMXpr8NodzXQWQLNUp5v5rfXA9urk Rg6eHR4+sH1Kw== 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 8E8A56564E 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="tF6lNQW4"; 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 E6D689B1; 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=1656584227; bh=JUorfA7CE7JKlP6v+ZG3Tzg7kT5i6dRMwZg8I7Pn1OA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tF6lNQW405FtzF4I85UQisYK/uVUMKk02BoNRSfw7Q64kCrNhmiAMs1oi0OMgDlUH xKe3pQ8sDA36jbBK9CEhDNmhBXF2ap7srkA1cglZ/lS6YLc2stTruuo185GHb6wq5r jCkq6H8HHAFQGEFCy3xQgNM0FJw+kK/QZJqwlH5s= To: libcamera-devel@lists.libcamera.org Date: Thu, 30 Jun 2022 12:17:01 +0200 Message-Id: <20220630101702.45781-5-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 4/5] utils: ipu3: display green disparity params 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" Display the shading gain coeff of red, green, blue and black. Those are used to calculate threshold given a pixel’s color value and its coordinates in the image. --- utils/ipu3/ipu3-dump-params.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/utils/ipu3/ipu3-dump-params.c b/utils/ipu3/ipu3-dump-params.c index 257f2205..e34a7e53 100644 --- a/utils/ipu3/ipu3-dump-params.c +++ b/utils/ipu3/ipu3-dump-params.c @@ -60,6 +60,21 @@ static void displayBNR(struct ipu3_uapi_params *params) bnr.thr_ctrl_shd.gb, bnr.thr_ctrl_shd.b); } +static void displayGD(struct ipu3_uapi_bnr_static_config_green_disparity *gd) +{ + printf("red: %u, green: %u, blue: %u, black: %u\n", + gd->gd_red, + gd->gd_green, + gd->gd_blue, + gd->gd_black); + + printf("shading: %u, support: %u, clip: %u, central weight: %u\n", + gd->gd_shading, + gd->gd_support, + gd->gd_clip, + gd->gd_central_weight); +} + int main(int argc, char *argv[]) { int in_fd; @@ -98,6 +113,11 @@ start: displayGrid(¶ms.acc_param.awb_fr.grid_cfg, "awb_fr"); } + if (params.use.acc_green_disparity) { + printf("\n**** Green disparity parameters ****\n"); + displayGD(¶ms.acc_param.green_disparity); + } + close(in_fd); return ret ? 1 : 0;