public abstract class Predictor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
PNG |
static int |
TIFF
well known algorithms
|
Modifier | Constructor and Description |
---|---|
protected |
Predictor(int algorithm)
Create an instance of a predictor.
|
Modifier and Type | Method and Description |
---|---|
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 java.nio.ByteBuffer |
unpredict(java.nio.ByteBuffer imageData)
Actually perform this algorithm on decoded image data.
|
public static final int TIFF
public static final int PNG
protected Predictor(int algorithm)
getPredictor()
instead of this.public abstract java.nio.ByteBuffer unpredict(java.nio.ByteBuffer imageData) throws java.io.IOException
java.io.IOException
public static Predictor getPredictor(PDFObject params) throws java.io.IOException
params
- the filter parametersjava.io.IOException
public int getAlgorithm()
public int getColors()
protected void setColors(int colors)
public int getBitsPerComponent()
public void setBitsPerComponent(int bpc)
public int getColumns()
public void setColumns(int columns)