| java.lang.Object com.sun.media.imageio.plugins.tiff.TIFFCompressor com.sun.media.imageioimpl.plugins.tiff.TIFFFaxCompressor com.sun.media.imageioimpl.plugins.tiff.TIFFT4Compressor
All known Subclasses: com.sun.media.imageioimpl.plugins.tiff.TIFFCodecLibT4Compressor,
Method Summary | |
public int | encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) | public int | encodeT4(boolean is1DMode, boolean isEOLAligned, byte[] data, int lineStride, int colOffset, int width, int height, byte[] compData) Encode a buffer of data using CCITT T.4 Compression also known as
Group 3 facsimile compression.
Parameters: is1DMode - Whether to perform one-dimensional encoding. Parameters: isEOLAligned - Whether EOL bit sequences should be padded. Parameters: data - The row of data to compress. Parameters: lineStride - Byte step between the same sample in different rows. Parameters: colOffset - Bit offset within first data[rowOffset] . Parameters: width - Number of bits in the row. Parameters: height - Number of rows in the buffer. Parameters: compData - The compressed data. | public void | setMetadata(IIOMetadata metadata) Sets the value of the metadata field. |
TIFFT4Compressor | public TIFFT4Compressor()(Code) | | |
encode | public int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException(Code) | | |
encodeT4 | public int encodeT4(boolean is1DMode, boolean isEOLAligned, byte[] data, int lineStride, int colOffset, int width, int height, byte[] compData)(Code) | | Encode a buffer of data using CCITT T.4 Compression also known as
Group 3 facsimile compression.
Parameters: is1DMode - Whether to perform one-dimensional encoding. Parameters: isEOLAligned - Whether EOL bit sequences should be padded. Parameters: data - The row of data to compress. Parameters: lineStride - Byte step between the same sample in different rows. Parameters: colOffset - Bit offset within first data[rowOffset] . Parameters: width - Number of bits in the row. Parameters: height - Number of rows in the buffer. Parameters: compData - The compressed data. The number of bytes saved in the compressed data array. |
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 T4_OPTIONS field if it exists, and if it doesn't, adds
it with default values.
Parameters: metadata - the IIOMetadata object for theimage being written. See Also: TIFFT4Compressor.getMetadata() |
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)
|
|
|