org.pdfbox.pdmodel.graphics.predictor
Class Average
We can use raw on the right hand side of
the decoding formula because it is already decoded.
average(i,j) = raw(i,j) + (raw(i-1,j)+raw(i,j-1)/2
decoding
raw(i,j) = avarage(i,j) - (raw(i-1,j)+raw(i,j-1)/2
void | decodeLine(byte[] src, byte[] dest, int srcDy, int srcOffset, int destDy, int destOffset) -
|
void | encodeLine(byte[] src, byte[] dest, int srcDy, int srcOffset, int destDy, int destOffset) - Not an optimal version, but close to the def.
|
aboveLeftPixel , abovePixel , checkBufsiz , decode , decodeLine , encode , encodeLine , getBpp , getFilter , getHeight , getWidth , leftPixel , main , setBpp , setHeight , setWidth |
decodeLine
public void decodeLine(byte[] src,
byte[] dest,
int srcDy,
int srcOffset,
int destDy,
int destOffset)
- decodeLine in interface PredictorAlgorithm
encodeLine
public void encodeLine(byte[] src,
byte[] dest,
int srcDy,
int srcOffset,
int destDy,
int destOffset)
Not an optimal version, but close to the def.
- encodeLine in interface PredictorAlgorithm