MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / uncompress

Method uncompress

ij/src/main/java/ij/io/ImageReader.java:953–962  ·  view source on GitHub ↗
(byte[] input)

Source from the content-addressed store, hash-verified

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) {

Callers 5

readCompressedRGB48Method · 0.95

Calls 4

packBitsUncompressMethod · 0.95
lzwUncompressMethod · 0.95
zipUncompressMethod · 0.95
getBytesPerPixelMethod · 0.45

Tested by

no test coverage detected