org.pdfbox.pdmodel.graphics.predictor

Class Uptimum


public class Uptimum
extends PredictorAlgorithm

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.
Version:
$Revision: 1.3 $
Author:
xylifyx@yahoo.co.uk

Method Summary

void
checkBufsiz(byte[] filtered, byte[] raw)
void
decode(byte[] src, byte[] dest)
void
decodeLine(byte[] src, byte[] dest, int srcDy, int srcOffset, int destDy, int destOffset)
void
encode(byte[] src, byte[] dest)
void
encodeLine(byte[] src, byte[] dest, int srcDy, int srcOffset, int destDy, int destOffset)
void
setBpp(int bpp)
void
setHeight(int height)
void
setWidth(int width)

Methods inherited from class org.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm

aboveLeftPixel, abovePixel, checkBufsiz, decode, decodeLine, encode, encodeLine, getBpp, getFilter, getHeight, getWidth, leftPixel, main, setBpp, setHeight, setWidth

Method Details

checkBufsiz

public void checkBufsiz(byte[] filtered,
                        byte[] raw)
Overrides:
checkBufsiz in interface PredictorAlgorithm

decode

public void decode(byte[] src,
                   byte[] dest)
Overrides:
decode in interface PredictorAlgorithm

decodeLine

public void decodeLine(byte[] src,
                       byte[] dest,
                       int srcDy,
                       int srcOffset,
                       int destDy,
                       int destOffset)
Overrides:
decodeLine in interface PredictorAlgorithm

encode

public void encode(byte[] src,
                   byte[] dest)
Overrides:
encode in interface PredictorAlgorithm

encodeLine

public void encodeLine(byte[] src,
                       byte[] dest,
                       int srcDy,
                       int srcOffset,
                       int destDy,
                       int destOffset)
Overrides:
encodeLine in interface PredictorAlgorithm

setBpp

public void setBpp(int bpp)
Overrides:
setBpp in interface PredictorAlgorithm

setHeight

public void setHeight(int height)
Overrides:
setHeight in interface PredictorAlgorithm

setWidth

public void setWidth(int width)
Overrides:
setWidth in interface PredictorAlgorithm