Class CCITTFaxDecoderStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.twelvemonkeys.imageio.plugins.tiff.CCITTFaxDecoderStream
All Implemented Interfaces:
Closeable, AutoCloseable

final class CCITTFaxDecoderStream extends FilterInputStream
CCITT Modified Huffman RLE, Group 3 (T4) and Group 4 (T6) fax compression.
Version:
$Id: CCITTFaxDecoderStream.java,v 1.0 23.05.12 15:55 haraldk Exp$
  • Field Details

    • columns

      private final int columns
    • rowsLeft

      private int rowsLeft
    • decodedRow

      private final byte[] decodedRow
    • optionG32D

      private final boolean optionG32D
    • optionG3Fill

      private final boolean optionG3Fill
    • optionUncompressed

      private final boolean optionUncompressed
    • optionByteAligned

      private final boolean optionByteAligned
    • type

      private final int type
    • decodedLength

      private int decodedLength
    • decodedPos

      private int decodedPos
    • changesReferenceRow

      private int[] changesReferenceRow
    • changesCurrentRow

      private int[] changesCurrentRow
    • changesReferenceRowCount

      private int changesReferenceRowCount
    • changesCurrentRowCount

      private int changesCurrentRowCount
    • lastChangingElement

      private int lastChangingElement
    • buffer

      int buffer
    • bufferPos

      int bufferPos
    • BLACK_CODES

      static final short[][] BLACK_CODES
    • BLACK_RUN_LENGTHS

      static final short[][] BLACK_RUN_LENGTHS
    • WHITE_CODES

      public static final short[][] WHITE_CODES
    • WHITE_RUN_LENGTHS

      public static final short[][] WHITE_RUN_LENGTHS
    • EOL

      static final CCITTFaxDecoderStream.Node EOL
    • FILL

      static final CCITTFaxDecoderStream.Node FILL
    • blackRunTree

      static final CCITTFaxDecoderStream.Tree blackRunTree
    • whiteRunTree

      static final CCITTFaxDecoderStream.Tree whiteRunTree
    • eolOnlyTree

      static final CCITTFaxDecoderStream.Tree eolOnlyTree
    • codeTree

      static final CCITTFaxDecoderStream.Tree codeTree
    • VALUE_EOL

      static final int VALUE_EOL
      See Also:
    • VALUE_FILL

      static final int VALUE_FILL
      See Also:
    • VALUE_PASSMODE

      static final int VALUE_PASSMODE
      See Also:
    • VALUE_HMODE

      static final int VALUE_HMODE
      See Also:
  • Constructor Details

    • CCITTFaxDecoderStream

      public CCITTFaxDecoderStream(InputStream stream, int columns, int type, long options)
      Creates a CCITTFaxDecoderStream.
      Parameters:
      stream - the compressed CCITT stream.
      columns - the number of columns in the stream.
      type - the type of stream, must be one of COMPRESSION_CCITT_MODIFIED_HUFFMAN_RLE, COMPRESSION_CCITT_T4 or COMPRESSION_CCITT_T6.
      options - CCITT T.4 or T.6 options.
    • CCITTFaxDecoderStream

      public CCITTFaxDecoderStream(InputStream stream, int columns, int type, long options, boolean byteAligned)
      Creates a CCITTFaxDecoderStream. This constructor may be used for CCITT streams embedded in PDF files, which use EncodedByteAlign.
      Parameters:
      stream - the compressed CCITT stream.
      columns - the number of columns in the stream.
      type - the type of stream, must be one of COMPRESSION_CCITT_MODIFIED_HUFFMAN_RLE, COMPRESSION_CCITT_T4 or COMPRESSION_CCITT_T6.
      options - CCITT T.4 or T.6 options.
      byteAligned - enable byte alignment used in PDF files (EncodedByteAlign).
    • CCITTFaxDecoderStream

      CCITTFaxDecoderStream(InputStream stream, int columns, int rows, int type, long options, boolean byteAligned)
  • Method Details