Class TIFFFaxDecompressor

java.lang.Object
com.itextpdf.io.codec.TIFFFaxDecompressor

public class TIFFFaxDecompressor extends Object
Class that can decompress TIFF files.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static short[]
     
    protected int
     
    int
     
    protected int
    EOL padding flag: 1 if fill bits have been added before an EOL such that the EOL ends on a byte boundary, 0 otherwise.
    protected int
    The logical order of bits within a byte.
    protected int
    Coding dimensionality: 1 for 2-dimensional, 0 for 1-dimensional.
    protected int
    Uncompressed mode flag: 1 if uncompressed, 0 if not.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    decodeRaw(byte[] buffer, byte[] compData, int w, int h)
     
    void
     
    void
     
    void
     
    void
    SetOptions(int fillOrder, int compression, int t4Options, int t6Options)
    Invokes the superclass method and then sets instance variables on the basis of the metadata set on this decompressor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fillOrder

      protected int fillOrder
      The logical order of bits within a byte.
       1 = MSB-to-LSB
       2 = LSB-to-MSB (flipped)
       
    • compression

      protected int compression
    • fails

      public int fails
    • uncompressedMode

      protected int uncompressedMode
      Uncompressed mode flag: 1 if uncompressed, 0 if not.
    • fillBits

      protected int fillBits
      EOL padding flag: 1 if fill bits have been added before an EOL such that the EOL ends on a byte boundary, 0 otherwise.
    • oneD

      protected int oneD
      Coding dimensionality: 1 for 2-dimensional, 0 for 1-dimensional.
    • additionalMakeup

      public static short[] additionalMakeup
  • Constructor Details

    • TIFFFaxDecompressor

      public TIFFFaxDecompressor()
  • Method Details

    • SetOptions

      public void SetOptions (int fillOrder, int compression, int t4Options, int t6Options)
      Invokes the superclass method and then sets instance variables on the basis of the metadata set on this decompressor.
      Parameters:
      fillOrder - The fill order
      compression - The compression algorithm
      t4Options - The T4 options
      t6Options - The T6 options
    • decodeRaw

      public void decodeRaw (byte[] buffer, byte[] compData, int w, int h)
    • decodeRLE

      public void decodeRLE()
    • decodeNextScanline

      public void decodeNextScanline()
    • decodeT4

      public void decodeT4()
    • decodeT6

      public void decodeT6()