TJBench: Unset TJ*OPT_CROP when disabling tiling
Otherwise, if the input image is a JPEG image, then an unnecessary lossless transformation will be performed.
This commit is contained in:
@@ -947,8 +947,9 @@ final class TJBench {
|
||||
|
||||
if ((sf.getNum() != 1 || sf.getDenom() != 1) && doTile) {
|
||||
System.out.println("Disabling tiled compression/decompression tests, because those tests do not");
|
||||
System.out.println("work when scaled decompression is enabled.");
|
||||
System.out.println("work when scaled decompression is enabled.\n");
|
||||
doTile = false;
|
||||
xformOpt &= (~TJTransform.OPT_CROP);
|
||||
}
|
||||
|
||||
if (!decompOnly) {
|
||||
|
||||
@@ -973,14 +973,14 @@ int main(int argc, char *argv[])
|
||||
|
||||
if ((sf.num != 1 || sf.denom != 1) && doTile) {
|
||||
printf("Disabling tiled compression/decompression tests, because those tests do not\n");
|
||||
printf("work when scaled decompression is enabled.\n");
|
||||
doTile = 0;
|
||||
printf("work when scaled decompression is enabled.\n\n");
|
||||
doTile = 0; xformOpt &= (~TJXOPT_CROP);
|
||||
}
|
||||
|
||||
if ((flags & TJFLAG_NOREALLOC) == 0 && doTile) {
|
||||
printf("Disabling tiled compression/decompression tests, because those tests do not\n");
|
||||
printf("work when dynamic JPEG buffer allocation is enabled.\n\n");
|
||||
doTile = 0;
|
||||
doTile = 0; xformOpt &= (~TJXOPT_CROP);
|
||||
}
|
||||
|
||||
if (!decompOnly) {
|
||||
|
||||
Reference in New Issue
Block a user