| Modifier and Type | Field and Description |
|---|---|
| protected int | bits
Output bit buffer. |
| protected static final int | BLACK
The CCITT numerical definition of black. |
| protected static final byte[] | |
| protected static final int[][] | horz
Black and white horizontal mode table. |
| protected static final int[] | horzMode
Horizontal mode table. |
| protected boolean | inverseFill
Whether bits are inserted in reverse order (TIFF FillOrder 2). |
| protected static final int[][] | makeupCodes
Black and white make-up code table. |
| protected static final int[] | makeupCodesBlack
Make-up codes for black runs. |
| protected static final int[] | makeupCodesWhite
Make-up codes for white runs. |
| protected int | ndex
Number of bits in the output bit buffer. |
| protected static final int[][] | pass
Black and white pass mode table. |
| protected static final int[] | passMode
Pass mode table. |
| protected static final int[][] | termCodes
Black and white terminating code table. |
| protected static final int[] | termCodesBlack
Terminating codes for black runs. |
| protected static final int[] | termCodesWhite
Terminating codes for white runs. |
| protected static final int[][] | vert
Black and white vertical mode table. |
| protected static final int[] | vertMode
Vertical mode table. |
| protected static final int | WHITE
The CCITT numerical definition of white. |
| Access | Constructor and Description |
|---|---|
| protected | TIFFFaxCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless)
Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | add1DBits(byte[] buf, int where, int count, int color)
Get code for run and add to compressed bitstream. |
| public int | add2DBits(byte[] buf, int where, int[][] mode, int entry)
Place entry from mode table into compressed bitstream. |
| public int | addEOFB(byte[] buf, int where)
Add an End-of-Facsimile-Block (EOFB == 0x001001) to the compressed bitstream. |
| public int | addEOL(boolean is1DMode, boolean addFill, boolean add1, byte[] buf, int where)
Add an End-of-Line (EOL == 0x001) to the compressed bitstream with optional byte alignment. |
| public int | encode1D(byte[] data, int rowOffset, int colOffset, int rowLength, byte[] compData, int compOffset)
One-dimensionally encode a row of data using CCITT Huffman compression. |
| public void | |
| public int | nextState(byte[] data, int base, int bitOffset, int maxOffset)
Return min of |
| public void | setMetadata(IIOMetadata
the metadata)IIOMetadata object for the
image being written.Overrides com. Sets the value of the |
| bits | back to summary |
|---|---|
| protected int bits Output bit buffer. | |
| BLACK | back to summary |
|---|---|
| protected static final int BLACK The CCITT numerical definition of black. | |
| byteTable | back to summary |
|---|---|
| protected static final byte[] byteTable | |
| horz | back to summary |
|---|---|
| protected static final int[][] horz Black and white horizontal mode table. | |
| horzMode | back to summary |
|---|---|
| protected static final int[] horzMode Horizontal mode table. | |
| inverseFill | back to summary |
|---|---|
| protected boolean inverseFill Whether bits are inserted in reverse order (TIFF FillOrder 2). | |
| makeupCodes | back to summary |
|---|---|
| protected static final int[][] makeupCodes Black and white make-up code table. | |
| makeupCodesBlack | back to summary |
|---|---|
| protected static final int[] makeupCodesBlack Make-up codes for black runs. | |
| makeupCodesWhite | back to summary |
|---|---|
| protected static final int[] makeupCodesWhite Make-up codes for white runs. | |
| ndex | back to summary |
|---|---|
| protected int ndex Number of bits in the output bit buffer. | |
| pass | back to summary |
|---|---|
| protected static final int[][] pass Black and white pass mode table. | |
| passMode | back to summary |
|---|---|
| protected static final int[] passMode Pass mode table. | |
| termCodes | back to summary |
|---|---|
| protected static final int[][] termCodes Black and white terminating code table. | |
| termCodesBlack | back to summary |
|---|---|
| protected static final int[] termCodesBlack Terminating codes for black runs. | |
| termCodesWhite | back to summary |
|---|---|
| protected static final int[] termCodesWhite Terminating codes for white runs. | |
| vert | back to summary |
|---|---|
| protected static final int[][] vert Black and white vertical mode table. | |
| vertMode | back to summary |
|---|---|
| protected static final int[] vertMode Vertical mode table. | |
| WHITE | back to summary |
|---|---|
| protected static final int WHITE The CCITT numerical definition of white. | |
| TIFFFaxCompressor | back to summary |
|---|---|
| protected TIFFFaxCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless) Constructor. The superclass constructor is merely invoked with the same parameters. | |
| add1DBits | back to summary |
|---|---|
| public int add1DBits(byte[] buf, int where, int count, int color) Get code for run and add to compressed bitstream. | |
| add2DBits | back to summary |
|---|---|
| public int add2DBits(byte[] buf, int where, int[][] mode, int entry) Place entry from mode table into compressed bitstream. | |
| addEOFB | back to summary |
|---|---|
| public int addEOFB(byte[] buf, int where) Add an End-of-Facsimile-Block (EOFB == 0x001001) to the compressed bitstream. | |
| addEOL | back to summary |
|---|---|
| public int addEOL(boolean is1DMode, boolean addFill, boolean add1, byte[] buf, int where) Add an End-of-Line (EOL == 0x001) to the compressed bitstream with optional byte alignment. | |
| encode1D | back to summary |
|---|---|
| public int encode1D(byte[] data, int rowOffset, int colOffset, int rowLength, byte[] compData, int compOffset) One-dimensionally encode a row of data using CCITT Huffman compression. The bit buffer should be initialized as required before invoking this method and should be flushed after the method returns. The fill order is always highest-order to lowest-order bit so the calling routine should handle bit inversion. | |
| initBitBuf | back to summary |
|---|---|
| public void initBitBuf() Initialize bit buffer machinery. | |
| nextState | back to summary |
|---|---|
| public int nextState(byte[] data, int base, int bitOffset, int maxOffset) Return min of | |
| setMetadata | back to summary |
|---|---|
| public void setMetadata(IIOMetadata metadata) Overrides com. Sets the value of the The implementation in this class also sets local options from the FILL_ORDER field if it exists.
| |