mirror of
https://github.com/libjpeg-turbo/libjpeg-turbo.git
synced 2026-01-18 21:41:20 +01:00
TJBench: Consistify args with djpeg
-fastdct --> -dct fast -fastupsample --> -nosmooth
This commit is contained in:
@@ -821,8 +821,8 @@ final class TJBench {
|
||||
System.out.println(" or height) and X and Y are the left and upper boundary of the region, all");
|
||||
System.out.println(" specified relative to the scaled image dimensions. X must be divible by");
|
||||
System.out.println(" the scaled MCU width.");
|
||||
System.out.println("-fastdct = Use the fastest DCT/IDCT algorithm available");
|
||||
System.out.println("-fastupsample = Use the fastest chrominance upsampling algorithm available");
|
||||
System.out.println("-dct fast = Use less accurate DCT/IDCT algorithm [legacy feature]");
|
||||
System.out.println("-dct int = Use more accurate DCT/IDCT algorithm [default]");
|
||||
System.out.println("-flip {horizontal|vertical}, -rotate {90|180|270}, -transpose, -transverse =");
|
||||
System.out.println(" Perform the specified lossless transform operation on the input image");
|
||||
System.out.println(" prior to decompression (these operations are mutually exclusive)");
|
||||
@@ -830,6 +830,7 @@ final class TJBench {
|
||||
System.out.println(" decompression (can be combined with the other transform operations above)");
|
||||
System.out.println("-maxscans N = Refuse to decompress or transform progressive JPEG images that");
|
||||
System.out.println(" have more than N scans");
|
||||
System.out.println("-nosmooth = Use the fastest chrominance upsampling algorithm available");
|
||||
System.out.println("-optimize = Compute optimal Huffman tables for JPEG images generated by");
|
||||
System.out.println(" compession and transform operations");
|
||||
System.out.println("-progressive = Generate progressive JPEG images when compressing or");
|
||||
@@ -963,8 +964,15 @@ final class TJBench {
|
||||
cr.width = temp1; cr.height = temp2; cr.x = temp3; cr.y = temp4;
|
||||
} else if (matchArg(argv[i], "-custom", 3))
|
||||
customFilter = new DummyDCTFilter();
|
||||
else if (matchArg(argv[i], "-fastdct", 6)) {
|
||||
System.out.println("Using fastest DCT/IDCT algorithm\n");
|
||||
else if (matchArg(argv[i], "-dct", 2)) {
|
||||
i++;
|
||||
if (matchArg(argv[i], "fast", 1)) {
|
||||
System.out.println("Using less accurate DCT/IDCT algorithm\n");
|
||||
fastDCT = true;
|
||||
} else if (!matchArg(argv[i], "int", 1))
|
||||
usage();
|
||||
} else if (matchArg(argv[i], "-fastdct", 6)) {
|
||||
System.out.println("Using less accurate DCT/IDCT algorithm\n");
|
||||
fastDCT = true;
|
||||
} else if (matchArg(argv[i], "-fastupsample", 6)) {
|
||||
System.out.println("Using fastest upsampling algorithm\n");
|
||||
@@ -1020,7 +1028,10 @@ final class TJBench {
|
||||
maxMemory = temp;
|
||||
} else if (matchArg(argv[i], "-nooutput", 4))
|
||||
xformOpt |= TJTransform.OPT_NOOUTPUT;
|
||||
else if (matchArg(argv[i], "-nowrite", 4))
|
||||
else if (matchArg(argv[i], "-nosmooth", 4)) {
|
||||
System.out.println("Using fastest upsampling algorithm\n");
|
||||
fastUpsample = true;
|
||||
} else if (matchArg(argv[i], "-nowrite", 4))
|
||||
write = false;
|
||||
else if (matchArg(argv[i], "-optimize", 2)) {
|
||||
optimize = true;
|
||||
|
||||
Reference in New Issue
Block a user