|
|||||||||
| Home >> All >> javax >> imageio >> plugins >> [ jpeg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.imageio.plugins.jpeg
Class JPEGQTable

java.lang.Objectjavax.imageio.plugins.jpeg.JPEGQTable
- public class JPEGQTable
- extends java.lang.Object
The JPEGQTable class represents a quantization table that can be used to encode or decode a JPEG stream. The standard JPEG luminance and chrominance quantization tables are provided as static fields. Table entries are stored in natural order, not zig-zag order.
| Field Summary | |
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. |
private int[] |
table
The table entries, stored in natural order. |
| Constructor Summary | |
|
JPEGQTable(int[] table)
Construct a new JPEG quantization table. |
private |
JPEGQTable(int[] table,
boolean copy)
Private constructor that avoids unnecessary copying and argument checking. |
| Method Summary | |
private static int[] |
checkTable(int[] table)
|
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. |
java.lang.String |
toString()
Create a string representing this JPEG quantization table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
table
private int[] table
- The table entries, stored in natural order.
K1Luminance
public static final JPEGQTable K1Luminance
- The standard JPEG luminance quantization table. Values are
stored in natural order.
K1Div2Luminance
public static final JPEGQTable K1Div2Luminance
- The standard JPEG luminance quantization table, scaled by
one-half. Values are stored in natural order.
K2Chrominance
public static final JPEGQTable K2Chrominance
- The standard JPEG chrominance quantization table. Values are
stored in natural order.
K2Div2Chrominance
public static final JPEGQTable K2Div2Chrominance
- The standard JPEG chrominance quantization table, scaled by
one-half. Values are stored in natural order.
| Constructor Detail |
JPEGQTable
public JPEGQTable(int[] table)
- Construct a new JPEG quantization table. A copy is created of
the table argument.
JPEGQTable
private JPEGQTable(int[] table,
boolean copy)
- Private constructor that avoids unnecessary copying and argument
checking.
| Method Detail |
checkTable
private static int[] checkTable(int[] table)
getTable
public int[] getTable()
- Retrieve a copy of the quantization values for this table.
getScaledInstance
public 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.
toString
public java.lang.String toString()
- Create a string representing this JPEG quantization table.
|
|||||||||
| Home >> All >> javax >> imageio >> plugins >> [ jpeg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javax.imageio.plugins.jpeg.JPEGQTable