public class JPEGDecoder extends AbstractImageDecoder
extendImageHeaderReadersAAN_SCALES, BLOCK_NATURAL_ORDER, CENTERJSAMPLE, DCTSIZE, DCTSIZE2, DOUBLE_QUANT_HASH, DOUBLE_QUANT_SUMS, ICC_PROFILE_LABEL, MAXJSAMPLE, RANGE_MASK, sampleRangeLimitOffset, sampleRangeLimitTable, SINGLE_QUANT_HASH, SINGLE_QUANT_SUMS| 构造器和说明 |
|---|
JPEGDecoder(ImageInputStream in) |
JPEGDecoder(ImageInputStream in,
boolean fastIDCTMode,
boolean supportICC) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
calculateMCUs(int[] componentIndexes,
Component[] components) |
protected void |
createFrameHeader(boolean baseline,
boolean progressive) |
protected ImageWrapper |
createImage() |
ImageWrapper |
decode() |
protected int |
decodeACFirst(HuffmanTable huffTable,
int Ss,
int Se,
int Al,
int[] mcu,
int blkIndex) |
protected int |
decodeACRefine(HuffmanTable huffTable,
int Ss,
int Se,
int Al,
int[] mcu,
int blkIndex) |
protected void |
decodeDAC() |
protected int |
decodeDCFirst(int index,
HuffmanTable huffTable,
int Al,
int[] mcu,
int blkIndex) |
protected int |
decodeDCRefine(int Al,
int[] mcu,
int blkIndex) |
protected void |
decodeDNL() |
protected void |
decodeDRI() |
protected void |
decodeExtendMarker(int marker) |
protected int |
decodeFrame(int marker) |
protected void |
decodeHuffmanTable() |
protected int |
decodeProgressiveScan(int marker)
Decode progressive scan
|
protected void |
decodeQuantizationTable() |
protected int |
decodeScan(int marker)
Decode baseline and sequencal scan
|
protected void |
determinColorspace() |
protected ColorSpace |
getColorSpace() |
ExtendImageHeader |
getExtendImageHeader() |
int |
getQuality() |
protected void |
inverseDCT() |
protected boolean |
isSOFnMarker(int marker)
can opt using array
|
protected int |
nextMarker() |
protected void |
readFrameHeader(int marker) |
protected int[] |
readScanHeader() |
protected void |
readTables(int marker) |
protected void |
resetDecoder() |
protected void |
validateProgressiveParam() |
protected void |
writeFull()
Used by progressive mode
|
protected void |
writeMCU() |
addExtendHeaderReader, getExtendHeaderReaders, removeExtendHeaderReaderpublic JPEGDecoder(ImageInputStream in, boolean fastIDCTMode, boolean supportICC)
public JPEGDecoder(ImageInputStream in)
public ImageWrapper decode() throws IOException
decode 在接口中 ImageDecoderdecode 在类中 AbstractImageDecoderIOExceptionprotected ImageWrapper createImage()
protected ColorSpace getColorSpace()
protected int decodeFrame(int marker)
throws IOException
IOExceptionprotected void calculateMCUs(int[] componentIndexes,
Component[] components)
protected int decodeScan(int marker)
throws IOException
IOExceptionprotected int decodeProgressiveScan(int marker)
throws IOException
IOExceptionprotected void validateProgressiveParam()
protected boolean isSOFnMarker(int marker)
marker - protected void readTables(int marker)
throws IOException,
JPEGMarkerException
protected void decodeDNL()
throws IOException
IOExceptionprotected void decodeDRI()
throws IOException
IOExceptionprotected void decodeHuffmanTable()
throws IOException
IOExceptionprotected void decodeQuantizationTable()
throws IOException
IOExceptionprotected void decodeDAC()
throws IOException
IOExceptionprotected void decodeExtendMarker(int marker)
throws IOException
IOExceptionprotected void determinColorspace()
protected void readFrameHeader(int marker)
throws IOException
IOExceptionprotected void createFrameHeader(boolean baseline,
boolean progressive)
throws IOException
IOExceptionprotected void inverseDCT()
protected void writeFull()
protected void writeMCU()
protected void resetDecoder()
protected int nextMarker()
throws IOException
IOExceptionprotected int[] readScanHeader()
throws IOException
IOExceptionpublic int getQuality()
protected int decodeACRefine(HuffmanTable huffTable, int Ss, int Se, int Al, int[] mcu, int blkIndex) throws IOException, JPEGMarkerException
huffTable - Ss - Se - Al - mcu - IOExceptionJPEGMarkerExceptionprotected int decodeDCRefine(int Al,
int[] mcu,
int blkIndex)
throws IOException,
JPEGMarkerException
protected int decodeACFirst(HuffmanTable huffTable, int Ss, int Se, int Al, int[] mcu, int blkIndex) throws IOException, JPEGMarkerException
protected int decodeDCFirst(int index,
HuffmanTable huffTable,
int Al,
int[] mcu,
int blkIndex)
throws IOException,
JPEGMarkerException
public ExtendImageHeader getExtendImageHeader()
Copyright © 2020. All rights reserved.