Fix an error that occurred when trying to use the lossless transform feature without specifying -quiet; formatting tweak

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1181 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2014-03-17 10:14:18 +00:00
parent 2d3974f117
commit 57a9436cec

View File

@@ -445,7 +445,7 @@ class TJBench {
(doTile ? "Tile " : "Image")); (doTile ? "Tile " : "Image"));
System.out.println("Format\tOrder\tSubsamp\tWidth Height\tPerf \tRatio\tPerf\n"); System.out.println("Format\tOrder\tSubsamp\tWidth Height\tPerf \tRatio\tPerf\n");
} else if (quiet == 0) { } else if (quiet == 0) {
System.out.format(">>>>> JPEG %s --> %s (%s) <<<<<", System.out.format(">>>>> JPEG %s --> %s (%s) <<<<<\n",
subNameLong[subsamp], pixFormatStr[pf], subNameLong[subsamp], pixFormatStr[pf],
(flags & TJ.FLAG_BOTTOMUP) != 0 ? "Bottom-up" : "Top-down"); (flags & TJ.FLAG_BOTTOMUP) != 0 ? "Bottom-up" : "Top-down");
} }
@@ -537,7 +537,7 @@ class TJBench {
} else if (quiet == 0) { } else if (quiet == 0) {
System.out.format("X--> Frame rate: %f fps\n", System.out.format("X--> Frame rate: %f fps\n",
1.0 / elapsed); 1.0 / elapsed);
System.out.format(" Output image size: %lu bytes\n", System.out.format(" Output image size: %d bytes\n",
totalJpegSize); totalJpegSize);
System.out.format(" Compression ratio: %f:1\n", System.out.format(" Compression ratio: %f:1\n",
(double)(w * h * ps) / (double)totalJpegSize); (double)(w * h * ps) / (double)totalJpegSize);