From patchwork Fri Jul 3 00:14:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 8569 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 80306BE905 for ; Fri, 3 Jul 2020 00:14:36 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DC42860C5C; Fri, 3 Jul 2020 02:14:35 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ezn2tcF5"; dkim-atps=neutral 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 227C7603B3 for ; Fri, 3 Jul 2020 02:14:34 +0200 (CEST) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 880F49CB; Fri, 3 Jul 2020 02:14:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1593735273; bh=BbTc4emSIRSmyQLj3RCtB/zo6igwlAn/wUH/nP9jkUg=; h=From:To:Cc:Subject:Date:From; b=ezn2tcF5yqYg+5dspy/zYhnTa3EFHHOqXG7Fc4mjYSDO6LMDGkTF3j8ERoxYo1d52 42cok5cNvlgjSl75qgQukuimnDdbJAtS5JRbb5kCIF3qOsxUMfTpZNYlvYeVlHFDWX kfyVmFbZOcAe6nApJ7q+9ku8w1cdTGcBi0+IRlww= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Fri, 3 Jul 2020 03:14:12 +0300 Message-Id: <20200703001422.24324-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 00/10] utils: raspberrypi: ctt: Improve JSON pretty printer 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" Hello, This patch series improves the JSON pretty printer in the Raspberry Pi ctt tool. In particular it gets rid of blank lines in empty dictionaries, addressing Jacopo's comment in reply to "[PATCH v2] libcamera: ipa: raspberrypi: Enable focus measure without recompile". The patches have been tested on the JSON files in the src/ipa/raspberrypi/data/ directory. Laurent Pinchart (10): utils: raspberrypi: ctt: json_pretty_print: Fix printer test utils: raspberrypi: ctt: json_pretty_print: Turn printer into a class utils: raspberrypi: ctt: json_pretty_print: Make output file a class member utils: raspberrypi: ctt: json_pretty_print: Make test output to stdout utils: raspberrypi: ctt: json_pretty_print: Skip all spaces utils: raspberrypi: ctt: json_pretty_print: Add character write method utils: raspberrypi: ctt: json_pretty_print: Fix indentation handling utils: raspberrypi: ctt: json_pretty_print: Collapse newlines utils: raspberrypi: ctt: json_pretty_print: Avoid spaces at end of lines utils: raspberrypi: ctt: json_pretty_print: Add newline at end of output .../raspberrypi/ctt/ctt_pretty_print_json.py | 143 +++++++++++------- 1 file changed, 87 insertions(+), 56 deletions(-) Reviewed-by: David Plowman Tested-by: David Plowman