in.seek(offsets[i]);
byte[] data=new byte[(int)counts[i]];
in.read(data); // read codes
InputStream is=new ByteArrayInputStream(data);
if(cmp==CCITTGROUP3MODHUFFMAN){ // 2, baseline
if(ifd.getFillOrder()==LowColHighBit){is=new BitSwapInputStream(is);}
offset=readMH(imgdata,offset,is,width);
}else{
if(ifd.getFillOrder()!=LowColHighBit){is=new BitSwapInputStream(is);}
switch(cmp){
case NOCOMPRESSION: break; // 1,
case LZW: is=new LZWInputStream(is,8,false); break; // 5, non base line
case PACKBITS: is=new PackBitsInputStream(is); break; // 32773,
default: