(byte[] input)
| 951 | } |
| 952 | |
| 953 | private byte[] uncompress(byte[] input) { |
| 954 | if (fi.compression==FileInfo.PACK_BITS) |
| 955 | return packBitsUncompress(input, fi.rowsPerStrip*fi.width*fi.getBytesPerPixel()); |
| 956 | else if (fi.compression==FileInfo.LZW || fi.compression==FileInfo.LZW_WITH_DIFFERENCING) |
| 957 | return lzwUncompress(input); |
| 958 | else if (fi.compression==FileInfo.ZIP || fi.compression==FileInfo.ZIP_WITH_DIFFERENCING) |
| 959 | return zipUncompress(input); |
| 960 | else |
| 961 | return input; |
| 962 | } |
| 963 | |
| 964 | /** TIFF Adobe ZIP support contributed by Jason Newton. */ |
| 965 | public byte[] zipUncompress(byte[] input) { |
no test coverage detected