javax.imageio.plugins.jpeg
public class JPEGImageReadParam extends ImageReadParam
Constructor Summary | |
---|---|
JPEGImageReadParam()
Construct a JPEGImageReadParam. |
Method Summary | |
---|---|
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. |
Returns: true if the decoding tables are set, false otherwise
Returns: an array of JPEG AC Huffman tables
Returns: an array of JPEG DC Huffman tables
UNKNOWN: an array of JPEG quantization tables
Parameters: qTables JPEG quantization tables DCHuffmanTables JPEG DC Huffman tables ACHuffmanTables JPEG AC Huffman tables
Throws: IllegalArgumentException 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 elements