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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user