com.sun.pdfview.decode
public abstract class Predictor extends Object
Field Summary | |
---|---|
static int | PNG |
static int | TIFF well known algorithms |
Constructor Summary | |
---|---|
protected | Predictor(int algorithm)
Create an instance of a predictor. |
Method Summary | |
---|---|
int | getAlgorithm()
Get the algorithm in use
|
int | getBitsPerComponent()
Get the number of bits per color component |
int | getColors()
Get the number of colors per sample |
int | getColumns()
Get the number of columns |
static Predictor | getPredictor(PDFObject params)
Get an instance of a predictor
|
void | setBitsPerComponent(int bpc)
Set the number of bits per color component |
protected void | setColors(int colors)
Set the number of colors per sample |
void | setColumns(int columns)
Set the number of columns |
abstract ByteBuffer | unpredict(ByteBuffer imageData)
Actually perform this algorithm on decoded image data.
|
getPredictor()
instead of this.Returns: one of the known algorithm types
Parameters: params the filter parameters