public class Optimum extends PredictorAlgorithm
| Constructor and Description |
|---|
Optimum() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkBufsiz(byte[] filtered,
byte[] raw)
check that buffer sizes matches width,height,bpp.
|
void |
decode(byte[] src,
byte[] dest)
decode a byte array full of image data using the filter that this object
implements.
|
void |
decodeLine(byte[] src,
byte[] dest,
int srcDy,
int srcOffset,
int destDy,
int destOffset)
decode line of pixel data in src from src_offset and width*bpp bytes
forward, put the decoded bytes into dest.
|
void |
encode(byte[] src,
byte[] dest)
encode a byte array full of image data using the filter that this object
implements.
|
void |
encodeLine(byte[] src,
byte[] dest,
int srcDy,
int srcOffset,
int destDy,
int destOffset)
encode line of pixel data in src from srcOffset and width*bpp bytes
forward, put the decoded bytes into dest.
|
void |
setBpp(int bpp) |
void |
setHeight(int height) |
void |
setWidth(int width) |
aboveLeftPixel, abovePixel, getBpp, getFilter, getHeight, getWidth, leftPixel, mainpublic void checkBufsiz(byte[] filtered,
byte[] raw)
checkBufsiz in class PredictorAlgorithmfiltered - The source buffer.raw - The destination buffer.public void encodeLine(byte[] src,
byte[] dest,
int srcDy,
int srcOffset,
int destDy,
int destOffset)
encodeLine in class PredictorAlgorithmsrc - raw image datadest - encoded datasrcDy - byte offset between linessrcOffset - beginning of line datadestDy - byte offset between linesdestOffset - beginning of line datapublic void decodeLine(byte[] src,
byte[] dest,
int srcDy,
int srcOffset,
int destDy,
int destOffset)
decodeLine in class PredictorAlgorithmsrc - encoded image datadest - raw datasrcDy - byte offset between linessrcOffset - beginning of line datadestDy - byte offset between linesdestOffset - beginning of line datapublic void encode(byte[] src,
byte[] dest)
encode in class PredictorAlgorithmsrc - bufferdest - bufferpublic void setBpp(int bpp)
setBpp in class PredictorAlgorithmbpp - The bpp to set.public void setHeight(int height)
setHeight in class PredictorAlgorithmheight - The height to set.public void setWidth(int width)
setWidth in class PredictorAlgorithmwidth - The width to set.public void decode(byte[] src,
byte[] dest)
decode in class PredictorAlgorithmsrc - bufferdest - bufferCopyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.