|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.4.2
javax.imageio.plugins.jpeg
|
Field Summary |
Fields inherited from class javax.imageio.ImageReadParam |
canSetSourceRenderSize, destination, destinationBands, minProgressivePass, numProgressivePasses, sourceRenderSize |
Fields inherited from class javax.imageio.IIOParam |
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset |
Constructor Summary | |
JPEGImageReadParam()
Constructs a JPEGImageReadParam . |
Method Summary | |
boolean |
areTablesSet()
Returns true if tables are currently set. |
JPEGHuffmanTable[] |
getACHuffmanTables()
Returns a copy of the array of AC Huffman tables set on the most recent call to setDecodeTables , or
null if tables are not currently set. |
JPEGHuffmanTable[] |
getDCHuffmanTables()
Returns a copy of the array of DC Huffman tables set on the most recent call to setDecodeTables , or
null if tables are not currently set. |
JPEGQTable[] |
getQTables()
Returns a copy of the array of quantization tables set on the most recent call to setDecodeTables , or
null if tables are not currently set. |
void |
setDecodeTables(JPEGQTable[] qTables,
JPEGHuffmanTable[] DCHuffmanTables,
JPEGHuffmanTable[] ACHuffmanTables)
Sets the quantization and Huffman tables to use in decoding abbreviated streams. |
void |
unsetDecodeTables()
Removes any quantization and Huffman tables that are currently set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JPEGImageReadParam()
JPEGImageReadParam
.
Method Detail |
public boolean areTablesSet()
true
if tables are currently set.
true
if tables are present.public void setDecodeTables(JPEGQTable[] qTables, JPEGHuffmanTable[] DCHuffmanTables, JPEGHuffmanTable[] ACHuffmanTables)
null
. The two arrays of Huffman tables must
have the same number of elements. The table specifiers in the
frame and scan headers in the stream are assumed to be
equivalent to indices into these arrays. The argument arrays
are copied by this method.
qTables
- an array of quantization table objects.DCHuffmanTables
- an array of Huffman table objects.ACHuffmanTables
- an array of Huffman table objects.
IllegalArgumentException
- if any of the arguments
is null
, has more than 4 elements, or if the
numbers of DC and AC tables differ.unsetDecodeTables()
public void unsetDecodeTables()
public JPEGQTable[] getQTables()
setDecodeTables
, or
null
if tables are not currently set.
JPEGQTable
objects, or
null
.setDecodeTables(javax.imageio.plugins.jpeg.JPEGQTable[], javax.imageio.plugins.jpeg.JPEGHuffmanTable[], javax.imageio.plugins.jpeg.JPEGHuffmanTable[])
public JPEGHuffmanTable[] getDCHuffmanTables()
setDecodeTables
, or
null
if tables are not currently set.
JPEGHuffmanTable
objects, or
null
.setDecodeTables(javax.imageio.plugins.jpeg.JPEGQTable[], javax.imageio.plugins.jpeg.JPEGHuffmanTable[], javax.imageio.plugins.jpeg.JPEGHuffmanTable[])
public JPEGHuffmanTable[] getACHuffmanTables()
setDecodeTables
, or
null
if tables are not currently set.
JPEGHuffmanTable
objects, or
null
.setDecodeTables(javax.imageio.plugins.jpeg.JPEGQTable[], javax.imageio.plugins.jpeg.JPEGHuffmanTable[], javax.imageio.plugins.jpeg.JPEGHuffmanTable[])