|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm
org.pdfbox.pdmodel.graphics.predictor.Uptimum
In an Uptimum encoded image, each line takes up width*bpp+1 bytes. The first byte holds a number that signifies which algorithm encoded the line.
Constructor Summary | |
Uptimum()
|
Method Summary | |
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)
|
Methods inherited from class org.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm |
aboveLeftPixel, abovePixel, getBpp, getFilter, getHeight, getWidth, leftPixel, main |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Uptimum()
Method Detail |
public void checkBufsiz(byte[] filtered, byte[] raw)
PredictorAlgorithm
checkBufsiz
in class PredictorAlgorithm
filtered
- The source buffer.raw
- The destination buffer.PredictorAlgorithm.checkBufsiz(byte[], byte[])
public void encodeLine(byte[] src, byte[] dest, int srcDy, int srcOffset, int destDy, int destOffset)
PredictorAlgorithm
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 dataPredictorAlgorithm.encodeLine(byte[], byte[],
int, int, int, int)
public void decodeLine(byte[] src, byte[] dest, int srcDy, int srcOffset, int destDy, int destOffset)
PredictorAlgorithm
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 dataPredictorAlgorithm.decodeLine(byte[], byte[],
int, int, int, int)
public void encode(byte[] src, byte[] dest)
PredictorAlgorithm
encode
in class PredictorAlgorithm
src
- bufferdest
- bufferPredictorAlgorithm.encode(byte[], byte[])
public void setBpp(int bpp)
setBpp
in class PredictorAlgorithm
bpp
- The bpp to set.PredictorAlgorithm.setBpp(int)
public void setHeight(int height)
setHeight
in class PredictorAlgorithm
height
- The height to set.PredictorAlgorithm.setHeight(int)
public void setWidth(int width)
setWidth
in class PredictorAlgorithm
width
- The width to set.PredictorAlgorithm.setWidth(int)
public void decode(byte[] src, byte[] dest)
PredictorAlgorithm
decode
in class PredictorAlgorithm
src
- bufferdest
- bufferPredictorAlgorithm.decode(byte[], byte[])
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |