public class TIFFCodecLibT4Compressor extends TIFFT4Compressor
bits, BLACK, byteTable, horz, horzMode, inverseFill, makeupCodes, makeupCodesBlack, makeupCodesWhite, ndex, pass, passMode, termCodes, termCodesBlack, termCodesWhite, vert, vertMode, WHITE
compressionTagValue, compressionType, isCompressionLossless, metadata, stream, writer
Constructor and Description |
---|
TIFFCodecLibT4Compressor() |
Modifier and Type | Method and Description |
---|---|
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.
|
encode, setMetadata
add1DBits, add2DBits, addEOFB, addEOL, encode1D, initBitBuf, nextState
getCompressionTagValue, getCompressionType, getMetadata, getStream, getWriter, isCompressionLossless, setStream, setWriter
public final int encodeT4(boolean is1DMode, boolean isEOLAligned, byte[] data, int lineStride, int colOffset, int width, int height, byte[] compData)
encodeT4
in class TIFFT4Compressor
is1DMode
- Whether to perform one-dimensional encoding.isEOLAligned
- Whether EOL bit sequences should be padded.data
- The row of data to compress.lineStride
- Byte step between the same sample in different rows.colOffset
- Bit offset within first data[rowOffset]
.width
- Number of bits in the row.height
- Number of rows in the buffer.compData
- The compressed data.Copyright © 2006–2014 GeoSolutions. All rights reserved.