/** * Decodes a stream that has the FlateDecode filter. * * @param input the input data * @return the decoded data */ public static byte[] flateDecode(byte[] input) { byte[] b = flateDecode(input, true); if (b == null) return flateDecode(input, false); return b; }
png.smask = new byte[(png.width + 7) / 8 * png.height]; ByteArrayInputStream bai = new ByteArrayInputStream(png.idat.toByteArray()); png.dataStream = FilterUtil.getInflaterInputStream(bai);
case TIFFConstants.COMPRESSION_DEFLATE: case TIFFConstants.COMPRESSION_ADOBE_DEFLATE: FilterUtil.inflateData(im, outBuf); applyPredictor(outBuf, predictor, w, height, samplePerPixel); break;
png.smask = new byte[(png.width + 7) / 8 * png.height]; ByteArrayInputStream bai = new ByteArrayInputStream(png.idat.toByteArray()); png.dataStream = FilterUtil.getInflaterInputStream(bai);
case TIFFConstants.COMPRESSION_DEFLATE: case TIFFConstants.COMPRESSION_ADOBE_DEFLATE: FilterUtil.inflateData(im, outBuf); applyPredictor(outBuf, predictor, w, height, samplePerPixel); break;
/** * Decodes a stream that has the FlateDecode filter. * * @param input the input data * @return the decoded data */ public static byte[] flateDecode(byte[] input) { byte[] b = flateDecode(input, true); if (b == null) return flateDecode(input, false); return b; }
len -= r; byte[] iccp = FilterUtil.flateDecode(icccom, true); icccom = null; try {
len -= r; byte[] iccp = FilterUtil.flateDecode(icccom, true); icccom = null; try {