summaryrefslogtreecommitdiff
path: root/scripts/bin2png.sh
AgeCommit message (Collapse)Author
2017-02-22scripts: bin2png.sh: Fix POSIX shell complianceKieran Bingham
The string manipulations of the form ${VAR/search/replace} are not posix compliant. Use string deletion, and append instead. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13scripts: bin2png: Support conversion of all files in a directoryLaurent Pinchart
When the first argument is a directory name instead of a file name, convert all test script output binaries in that directory. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13scripts: Provide bin2png.sh helperKieran Bingham
Identify the size and format from the test output filename, and pass to raw2rgbpnm for conversion to a PNM file. From there we can convert easily to a PNG output file. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>