public class JPEGQTable extends Object
Note that the classes in the com.sun.image.codec.jpeg package are not part of the core Java APIs. They are a part of Sun's JDK and JRE distributions. Although other licensees may choose to distribute these classes, developers cannot depend on their availability in non-Sun implementations. We expect that equivalent functionality will eventually be available in a core API or standard extension.
| 限定符和类型 | 字段和说明 |
|---|---|
static JPEGQTable |
StdChrominance
This is the sample luminance quantization table given in the
JPEG spec section K.1, expressed in zigzag order.
|
static JPEGQTable |
StdLuminance
This is the sample luminance quantization table given in the
JPEG spec section K.1, expressed in zigzag order.
|
| 构造器和说明 |
|---|
JPEGQTable(int[] table)
Constructs an quantization table from the array that was
passed.
|
| 限定符和类型 | 方法和说明 |
|---|---|
JPEGQTable |
getScaledInstance(float scaleFactor,
boolean forceBaseline)
Returns a new Quantization table where the values are
multiplied by scaleFactor and then clamped to the range
1..32767 (or to 1..255 if forceBaseline is 'true').
|
int[] |
getTable()
Returns the current quantization table as an array of ints in
zig zag order.
|
public static final JPEGQTable StdLuminance
public static final JPEGQTable StdChrominance
public JPEGQTable(int[] table)
table - the quantization table (this is copied).public int[] getTable()
public JPEGQTable getScaledInstance(float scaleFactor, boolean forceBaseline)
Values less than one tend to improve the quality level of the table, and values greater than one degrade the quality level of the table.
scaleFactor - the multiplication factor for the tableforceBaseline - if true the values will be clamped
to the range [1 .. 255]Copyright © 2022. All rights reserved.