public class G32DEncoder extends G31DEncoder implements ImageEncoder
currPos, scanLineWidth
Constructor and Description |
---|
G32DEncoder(java.io.OutputStream os,
int scanLineWidth,
int buf_length,
int k,
Updatable<java.lang.Integer> writer) |
Modifier and Type | Method and Description |
---|---|
void |
encode(byte[] pixels,
int start,
int len)
This method assumes "len" is a multiplication of scan line length.
|
protected int |
encode2DLine(byte[] pixels,
int start) |
encode1DLine, finish, getCompressedDataLen, initialize, outputRunLengthCode, outputRunLengthCode2, send_code_to_buffer, setExtraFlush
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getCompressedDataLen, initialize
public G32DEncoder(java.io.OutputStream os, int scanLineWidth, int buf_length, int k, Updatable<java.lang.Integer> writer)
public void encode(byte[] pixels, int start, int len) throws java.lang.Exception
encode
in interface ImageEncoder
encode
in class G31DEncoder
len
- the number of pixels to be encodedpixels
- array of pixels (This has nothing to do with the actual bits per pixel since it could be pixel packed)start
- offset in the pixel array where the encoding starts (the actual position could be anywhere inside the
offset byte which maybe kept track of by the implementation class through a parameter such as
currPos if the encoder is pixel oriented).java.lang.Exception
protected int encode2DLine(byte[] pixels, int start) throws java.lang.Exception
java.lang.Exception