public class G31DDecoder extends java.lang.Object implements ImageDecoder
Modifier and Type | Field and Description |
---|---|
protected int |
bitOffset |
protected int |
byteOffset |
protected int |
destByteOffset |
protected byte[] |
input |
protected int |
len |
protected int |
rowsPerStrip |
protected int |
scanLineWidth |
protected int |
totalRunLen |
protected int |
uncompressedBytes |
Constructor and Description |
---|
G31DDecoder(byte[] input,
int scanLineWidth,
int rowsPerStrip) |
G31DDecoder(int scanLineWidth,
int rowsPerStrip) |
Modifier and Type | Method and Description |
---|---|
int |
decode(byte[] pix,
int offset,
int len) |
protected int |
outputRunLen(byte[] output,
int offset,
int runLen,
int stride,
int color,
int len) |
void |
setInput(byte[] input) |
void |
setInput(byte[] input,
int offset,
int len) |
protected byte[] input
protected int len
protected int scanLineWidth
protected int totalRunLen
protected int rowsPerStrip
protected int byteOffset
protected int bitOffset
protected int destByteOffset
protected int uncompressedBytes
public G31DDecoder(int scanLineWidth, int rowsPerStrip)
public G31DDecoder(byte[] input, int scanLineWidth, int rowsPerStrip)
public int decode(byte[] pix, int offset, int len) throws java.lang.Exception
decode
in interface ImageDecoder
pix
- buffer to put decoded dataoffset
- offset to start put decoded datalen
- the maximum number of uncompressed bytesjava.lang.Exception
protected int outputRunLen(byte[] output, int offset, int runLen, int stride, int color, int len)
public void setInput(byte[] input)
setInput
in interface ImageDecoder
public void setInput(byte[] input, int offset, int len)
setInput
in interface ImageDecoder