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:
DRC
2023-01-21 18:31:20 -06:00
parent 2aac545899
commit af1b4c8df4
2 changed files with 5 additions and 4 deletions

View File

@@ -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) {