InputStream is=new ByteArrayInputStream(data);
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:
System.out.println("9\b"+cn+".read4bitImage:\n\tDo not support compression scheme "+cmp+".");
return image;
}
mbps=((max-offset)<mbps)?max-offset:mbps;