javax.imageio.plugins.jpeg
public class JPEGImageReadParam extends ImageReadParam
canSetSourceRenderSize, destination, destinationBands, minProgressivePass, numProgressivePasses, sourceRenderSize
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset
Constructor and Description |
---|
JPEGImageReadParam()
Construct a JPEGImageReadParam.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areTablesSet()
Check if the decoding tables are set.
|
JPEGHuffmanTable[] |
getACHuffmanTables()
Retrieve the AC Huffman tables.
|
JPEGHuffmanTable[] |
getDCHuffmanTables()
Retrieve the DC Huffman tables.
|
JPEGQTable[] |
getQTables()
Retrieve the quantization tables.
|
void |
setDecodeTables(JPEGQTable[] qTables,
JPEGHuffmanTable[] DCHuffmanTables,
JPEGHuffmanTable[] ACHuffmanTables)
Set the quantization and Huffman tables that will be used to
decode the stream.
|
void |
unsetDecodeTables()
Clear the quantization and Huffman decoding tables.
|
canSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setSourceProgressivePasses, setSourceRenderSize
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setDestinationType, setSourceBands, setSourceRegion, setSourceSubsampling
public JPEGImageReadParam()
public boolean areTablesSet()
public void setDecodeTables(JPEGQTable[] qTables, JPEGHuffmanTable[] DCHuffmanTables, JPEGHuffmanTable[] ACHuffmanTables)
qTables
- JPEG quantization tablesDCHuffmanTables
- JPEG DC Huffman tablesACHuffmanTables
- JPEG AC Huffman tablesIllegalArgumentException
- if any argument is null, if any
of the arrays are longer than four elements, or if the Huffman
table arrays do not have the same number of elementspublic void unsetDecodeTables()
public JPEGQTable[] getQTables()
public JPEGHuffmanTable[] getDCHuffmanTables()
public JPEGHuffmanTable[] getACHuffmanTables()