| java.lang.Object com.sun.pdfview.decode.Predictor com.sun.pdfview.decode.PNGPredictor
PNGPredictor | public class PNGPredictor extends Predictor (Code) | | Undo prediction based on the PNG algorithm.
|
Method Summary | |
protected void | doAverageLine(byte[] curLine, byte[] prevLine) | protected void | doPaethLine(byte[] curLine, byte[] prevLine) | protected void | doSubLine(byte[] curLine) Return the value of the Sub algorithm on the line (compare bytes to
the previous byte of the same color on this line). | protected void | doUpLine(byte[] curLine, byte[] prevLine) | protected int | paeth(int left, int up, int upLeft) | public ByteBuffer | unpredict(ByteBuffer imageData) |
PNGPredictor | public PNGPredictor()(Code) | | Creates a new instance of PNGPredictor
|
doAverageLine | protected void doAverageLine(byte[] curLine, byte[] prevLine)(Code) | | Return the value of the average algorithm on the line (compare
bytes to the average of the previous byte of the same color and
the same byte on the previous line)
|
doPaethLine | protected void doPaethLine(byte[] curLine, byte[] prevLine)(Code) | | Return the value of the average algorithm on the line (compare
bytes to the average of the previous byte of the same color and
the same byte on the previous line)
|
doSubLine | protected void doSubLine(byte[] curLine)(Code) | | Return the value of the Sub algorithm on the line (compare bytes to
the previous byte of the same color on this line).
|
doUpLine | protected void doUpLine(byte[] curLine, byte[] prevLine)(Code) | | Return the value of the up algorithm on the line (compare bytes to
the same byte in the previous line)
|
paeth | protected int paeth(int left, int up, int upLeft)(Code) | | The paeth algorithm
|
unpredict | public ByteBuffer unpredict(ByteBuffer imageData) throws IOException(Code) | | Undo data based on the png algorithm
|
|
|