[libcamera-devel] [PATCH 00/10] utils: raspberrypi: ctt: Improve JSON pretty printer

Kieran Bingham kieran.bingham at ideasonboard.com
Mon Jul 6 11:11:55 CEST 2020


On 03/07/2020 15:18, David Plowman wrote:
> Hi Laurent
> 
> Thanks for doing all this, that was a totally unexpected but nice
> surprise! Anyway, I've downloaded and tried the whole set, and had
> just a couple of very minor questions.
> 
> 1. Can we be bothered to reformat the existing json files? Personally,
> I don't mind either way.

Presumably, that's only a run of this script now ;-)

And we could then tie it into checkstyle.py too...

But maybe it doesn't matter too much.

--
Kieran


> 2. I found ctt_pretty_print.py did not have executable permissions. Is
> that just because I applied the patches to my tree or is it something
> we could fix up?
> 
> But otherwise, can I add
> 
> Reviewed-by: David Plowman <david.plowman at raspberrypi.com>
> Tested-by: David Plowman <david.plowman at raspberrypi.com>
> 
> for the whole lot?
> 
> Thanks again and best regards
> David
> 
> On Fri, 3 Jul 2020 at 01:14, Laurent Pinchart
> <laurent.pinchart at ideasonboard.com> wrote:
>>
>> 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(-)
>>
>> --
>> Regards,
>>
>> Laurent Pinchart
>>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
> 

-- 
Regards
--
Kieran


More information about the libcamera-devel mailing list