Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.graphics.predictor » [javadoc | source]
org.apache.pdfbox.pdmodel.graphics.predictor
public class: Optimum [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm
      org.apache.pdfbox.pdmodel.graphics.predictor.Optimum
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.
Field Summary
 PredictorAlgorithm[] filter    Filter indexed by byte code. 
Method from org.apache.pdfbox.pdmodel.graphics.predictor.Optimum Summary:
checkBufsiz,   decode,   decodeLine,   encode,   encodeLine,   setBpp,   setHeight,   setWidth
Methods from org.apache.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm:
aboveLeftPixel,   abovePixel,   checkBufsiz,   decode,   decodeLine,   encode,   encodeLine,   getBpp,   getFilter,   getHeight,   getWidth,   leftPixel,   main,   setBpp,   setHeight,   setWidth
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.graphics.predictor.Optimum Detail:
 public  void checkBufsiz(byte[] filtered,
    byte[] raw) 
    {@inheritDoc}
 public  void decode(byte[] src,
    byte[] dest) 
    {@inheritDoc}
 public  void decodeLine(byte[] src,
    byte[] dest,
    int srcDy,
    int srcOffset,
    int destDy,
    int destOffset) 
    {@inheritDoc}
 public  void encode(byte[] src,
    byte[] dest) 
    {@inheritDoc}
 public  void encodeLine(byte[] src,
    byte[] dest,
    int srcDy,
    int srcOffset,
    int destDy,
    int destOffset) 
    {@inheritDoc}
 public  void setBpp(int bpp) 
    {@inheritDoc}
 public  void setHeight(int height) 
    {@inheritDoc}
 public  void setWidth(int width) 
    {@inheritDoc}