public class None extends PredictorAlgorithm
None(i,j) = Raw(i,j)
Raw(i,j) = None(i,j)
Constructor and Description |
---|
None() |
Modifier and Type | Method and Description |
---|---|
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.
|
aboveLeftPixel, abovePixel, checkBufsiz, getBpp, getFilter, getHeight, getWidth, leftPixel, main, setBpp, setHeight, setWidth
public void encode(byte[] src, byte[] dest)
encode
in class PredictorAlgorithm
src
- bufferdest
- bufferpublic void decode(byte[] src, byte[] dest)
decode
in class PredictorAlgorithm
src
- bufferdest
- bufferpublic void encodeLine(byte[] src, byte[] dest, int srcDy, int srcOffset, int destDy, int destOffset)
encodeLine
in class PredictorAlgorithm
src
- 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 PredictorAlgorithm
src
- encoded image datadest
- raw datasrcDy
- byte offset between linessrcOffset
- beginning of line datadestDy
- byte offset between linesdestOffset
- beginning of line dataCopyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.