git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1162
632fc199-4ca6-4c93-a231-
07263d6284db
_ntilesw=(_w+_tilew-1)/_tilew;
_ntilesh=(_h+_tileh-1)/_tileh;
+ if(xformop==TJXOP_TRANSPOSE || xformop==TJXOP_TRANSVERSE
+ || xformop==TJXOP_ROT90 || xformop==TJXOP_ROT270)
+ {
+ if(_subsamp==TJSAMP_422) _subsamp=TJSAMP_440;
+ else if(_subsamp==TJSAMP_440) _subsamp=TJSAMP_422;
+ }
+
for(row=0, tile=0; row<_ntilesh; row++)
{
for(col=0; col<_ntilesw; col++, tile++)