TJBench: Change subsamp for transposed 4:*:1 img

If we have transformed a 4:1:1 or 4:4:1 JPEG input image in such a way
that the horizontal and vertical dimensions are transposed, then we need
to change the subsampling type that is passed to the decomp() function.
Otherwise, tj3YUVBufSize() may return an incorrect value.

(oversight from fc881ebb21)
This commit is contained in:
DRC
2023-03-13 16:36:04 -05:00
parent 386ec0abc7
commit 9d2f189c29
2 changed files with 6 additions and 0 deletions

View File

@@ -656,6 +656,10 @@ final class TJBench {
tsubsamp = TJ.SAMP_440;
else if (tsubsamp == TJ.SAMP_440)
tsubsamp = TJ.SAMP_422;
else if (tsubsamp == TJ.SAMP_411)
tsubsamp = TJ.SAMP_441;
else if (tsubsamp == TJ.SAMP_441)
tsubsamp = TJ.SAMP_411;
}
TJTransform[] t = new TJTransform[tntilesw * tntilesh];