| java.lang.Object com.sun.media.imageio.plugins.tiff.TIFFCompressor com.sun.media.imageioimpl.plugins.tiff.TIFFFaxCompressor com.sun.media.imageioimpl.plugins.tiff.TIFFRLECompressor
All known Subclasses: com.sun.media.imageioimpl.plugins.tiff.TIFFCodecLibRLECompressor,
Method Summary | |
public int | encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) | public int | encodeRLE(byte[] data, int rowOffset, int colOffset, int rowLength, byte[] compData) Encode a row of data using Modified Huffman Compression also known as
CCITT RLE (Run Lenth Encoding).
Parameters: data - The row of data to compress. Parameters: rowOffset - Starting index in data . Parameters: colOffset - Bit offset within first data[rowOffset] . Parameters: rowLength - Number of bits in the row. Parameters: compData - The compressed data. |
TIFFRLECompressor | public TIFFRLECompressor()(Code) | | |
encode | public int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException(Code) | | |
encodeRLE | public int encodeRLE(byte[] data, int rowOffset, int colOffset, int rowLength, byte[] compData)(Code) | | Encode a row of data using Modified Huffman Compression also known as
CCITT RLE (Run Lenth Encoding).
Parameters: data - The row of data to compress. Parameters: rowOffset - Starting index in data . Parameters: colOffset - Bit offset within first data[rowOffset] . Parameters: rowLength - Number of bits in the row. Parameters: compData - The compressed data. The number of bytes saved in the compressed data array. |
Methods inherited from com.sun.media.imageioimpl.plugins.tiff.TIFFFaxCompressor | public int add1DBits(byte[] buf, int where, int count, int color)(Code)(Java Doc) public int add2DBits(byte[] buf, int where, int[][] mode, int entry)(Code)(Java Doc) public int addEOFB(byte[] buf, int where)(Code)(Java Doc) public int addEOL(boolean is1DMode, boolean addFill, boolean add1, byte[] buf, int where)(Code)(Java Doc) public int encode1D(byte[] data, int rowOffset, int colOffset, int rowLength, byte[] compData, int compOffset)(Code)(Java Doc) public void initBitBuf()(Code)(Java Doc) public int nextState(byte[] data, int base, int bitOffset, int maxOffset)(Code)(Java Doc) public void setMetadata(IIOMetadata metadata)(Code)(Java Doc)
|
|
|