Class TIFFPredictor

java.lang.Object
org.openpdf.renderer.decode.Predictor
org.openpdf.renderer.decode.TIFFPredictor

public class TIFFPredictor extends Predictor
Undo prediction based on the TIFF Predictor 2 algorithm
  • Constructor Details

    • TIFFPredictor

      public TIFFPredictor()
  • Method Details

    • unpredict

      public ByteBuffer unpredict(ByteBuffer imageData) throws IOException
      Undo data based on the png algorithm
      Specified by:
      unpredict in class Predictor
      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)