public class JPEGQTable extends Object
| Modifier and Type | Field and Description |
|---|---|
static JPEGQTable |
K1Div2Luminance
The standard JPEG luminance quantization table, scaled by
one-half.
|
static JPEGQTable |
K1Luminance
The standard JPEG luminance quantization table.
|
static JPEGQTable |
K2Chrominance
The standard JPEG chrominance quantization table.
|
static JPEGQTable |
K2Div2Chrominance
The standard JPEG chrominance quantization table, scaled by
one-half.
|
| Constructor and Description |
|---|
JPEGQTable(int[] table)
Construct a new JPEG quantization table.
|
| Modifier and Type | Method and Description |
|---|---|
JPEGQTable |
getScaledInstance(float scaleFactor,
boolean forceBaseline)
Retrieve a copy of this JPEG quantization table with every value
scaled by the given scale factor, and clamped from 1 to 255
baseline or from 1 to 32767 otherwise.
|
int[] |
getTable()
Retrieve a copy of the quantization values for this table.
|
String |
toString()
Create a string representing this JPEG quantization table.
|
public static final JPEGQTable K1Luminance
public static final JPEGQTable K1Div2Luminance
public static final JPEGQTable K2Chrominance
public static final JPEGQTable K2Div2Chrominance
public JPEGQTable(int[] table)
table - the 64-element value table, stored in natural orderIllegalArgumentException - if the table is null or if
table's length is not equal to 64.public int[] getTable()
public JPEGQTable getScaledInstance(float scaleFactor, boolean forceBaseline)
scaleFactor - the factor by which to scale this tableforceBaseline - clamp scaled values to a maximum of 255 if
true, 32767 if falsepublic String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)