Package org.openpdf.renderer.decode
Class TIFFPredictor
java.lang.Object
org.openpdf.renderer.decode.Predictor
org.openpdf.renderer.decode.TIFFPredictor
Undo prediction based on the TIFF Predictor 2 algorithm
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static bytegetbits(byte[] data, int bitIndex, int shiftWhenByteAligned, int mask) private static voidsetbits(byte[] data, int bitIndex, int shiftWhenByteAligned, int mask, byte bits) unpredict(ByteBuffer imageData) Undo data based on the png algorithmMethods inherited from class org.openpdf.renderer.decode.Predictor
getAlgorithm, getBitsPerComponent, getColors, getColumns, getPredictor, setBitsPerComponent, setColors, setColumns
-
Constructor Details
-
TIFFPredictor
public TIFFPredictor()
-
-
Method Details
-
unpredict
Undo data based on the png algorithm- Specified by:
unpredictin classPredictor- Throws:
IOException
-
getbits
private static byte getbits(byte[] data, int bitIndex, int shiftWhenByteAligned, int mask) -
setbits
private static void setbits(byte[] data, int bitIndex, int shiftWhenByteAligned, int mask, byte bits)
-