| java.lang.Object com.sun.media.imageio.plugins.tiff.TIFFCompressor com.sun.media.imageioimpl.plugins.tiff.TIFFFaxCompressor
All known Subclasses: com.sun.media.imageioimpl.plugins.tiff.TIFFT4Compressor, com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor, com.sun.media.imageioimpl.plugins.tiff.TIFFRLECompressor,
Field Summary | |
final public static int | BLACK The CCITT numerical definition of black. | final public static int | WHITE The CCITT numerical definition of white. | public int | bits Output bit buffer. | public static byte[] | byteTable | public static int[][] | horz Black and white horizontal mode table. | public static int[] | horzMode Horizontal mode table. | public boolean | inverseFill Whether bits are inserted in reverse order (TIFF FillOrder 2). | public static int[][] | makeupCodes Black and white make-up code table. | public static int[] | makeupCodesBlack Make-up codes for black runs. | public static int[] | makeupCodesWhite Make-up codes for white runs. | public int | ndex Number of bits in the output bit buffer. | public static int[][] | pass Black and white pass mode table. | public static int[] | passMode Pass mode table. | public static int[][] | termCodes Black and white terminating code table. | public static int[] | termCodesBlack Terminating codes for black runs. | public static int[] | termCodesWhite Terminating codes for white runs. | public static int[][] | vert Black and white vertical mode table. | public static int[] | vertMode Vertical mode table. |
Constructor Summary | |
protected | TIFFFaxCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless) Constructor. |
Method Summary | |
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.
The bit buffer should be initialized as required before invoking this
method and should be flushed after the method returns. | public void | initBitBuf() Initialize bit buffer machinery. | public int | nextState(byte[] data, int base, int bitOffset, int maxOffset) Return min of maxOffset or offset of first pixel
different from pixel at bitOffset . | public void | setMetadata(IIOMetadata metadata) Sets the value of the metadata field. |
BLACK | final public static int BLACK(Code) | | The CCITT numerical definition of black.
|
WHITE | final public static int WHITE(Code) | | The CCITT numerical definition of white.
|
bits | public int bits(Code) | | Output bit buffer.
|
byteTable | public static byte[] byteTable(Code) | | |
horz | public static int[][] horz(Code) | | Black and white horizontal mode table.
|
horzMode | public static int[] horzMode(Code) | | Horizontal mode table.
|
inverseFill | public boolean inverseFill(Code) | | Whether bits are inserted in reverse order (TIFF FillOrder 2).
|
makeupCodes | public static int[][] makeupCodes(Code) | | Black and white make-up code table.
|
makeupCodesBlack | public static int[] makeupCodesBlack(Code) | | Make-up codes for black runs.
|
makeupCodesWhite | public static int[] makeupCodesWhite(Code) | | Make-up codes for white runs.
|
ndex | public int ndex(Code) | | Number of bits in the output bit buffer.
|
pass | public static int[][] pass(Code) | | Black and white pass mode table.
|
passMode | public static int[] passMode(Code) | | Pass mode table.
|
termCodes | public static int[][] termCodes(Code) | | Black and white terminating code table.
|
termCodesBlack | public static int[] termCodesBlack(Code) | | Terminating codes for black runs.
|
termCodesWhite | public static int[] termCodesWhite(Code) | | Terminating codes for white runs.
|
vert | public static int[][] vert(Code) | | Black and white vertical mode table.
|
vertMode | public static int[] vertMode(Code) | | Vertical mode table.
|
TIFFFaxCompressor | protected TIFFFaxCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless)(Code) | | Constructor. The superclass constructor is merely invoked with the
same parameters.
|
add1DBits | public int add1DBits(byte[] buf, int where, int count, int color)(Code) | | Get code for run and add to compressed bitstream.
|
add2DBits | public int add2DBits(byte[] buf, int where, int[][] mode, int entry)(Code) | | Place entry from mode table into compressed bitstream.
|
addEOFB | public int addEOFB(byte[] buf, int where)(Code) | | Add an End-of-Facsimile-Block (EOFB == 0x001001) to the compressed
bitstream.
|
addEOL | public int addEOL(boolean is1DMode, boolean addFill, boolean add1, byte[] buf, int where)(Code) | | Add an End-of-Line (EOL == 0x001) to the compressed bitstream
with optional byte alignment.
|
encode1D | public int encode1D(byte[] data, int rowOffset, int colOffset, int rowLength, byte[] compData, int compOffset)(Code) | | 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 | public void initBitBuf()(Code) | | Initialize bit buffer machinery.
|
nextState | public int nextState(byte[] data, int base, int bitOffset, int maxOffset)(Code) | | Return min of maxOffset or offset of first pixel
different from pixel at bitOffset .
|
setMetadata | public void setMetadata(IIOMetadata metadata)(Code) | | Sets the value of the metadata field.
The implementation in this class also sets local options
from the FILL_ORDER field if it exists.
Parameters: metadata - the IIOMetadata object for theimage being written. See Also: TIFFFaxCompressor.getMetadata() |
|
|