public class PatchedGIFImageReader extends ImageReader
Modifier and Type | Field and Description |
---|---|
(package private) int |
bitPos |
(package private) byte[] |
block |
(package private) int |
blockLength |
(package private) int |
clearCode |
(package private) int |
currIndex |
(package private) boolean |
decodeThisRow |
(package private) Point |
destinationOffset |
(package private) Rectangle |
destinationRegion |
(package private) int |
destY |
(package private) int |
eofCode |
(package private) boolean |
gotHeader |
(package private) int |
height |
(package private) com.sun.imageio.plugins.gif.GIFImageMetadata |
imageMetadata |
(package private) int |
imageMetadataLength |
(package private) List |
imageStartPosition |
(package private) int |
initCodeSize |
(package private) static int[] |
interlaceIncrement |
(package private) static int[] |
interlaceOffset |
(package private) int |
interlacePass |
(package private) boolean |
lastBlockFound |
(package private) int |
next32Bits |
(package private) int |
nextByte |
(package private) int |
numImages |
(package private) byte[] |
rowBuf |
(package private) int |
rowsDone |
(package private) int |
sourceMaxProgressivePass |
(package private) int |
sourceMinProgressivePass |
(package private) Rectangle |
sourceRegion |
(package private) int |
sourceXSubsampling |
(package private) int |
sourceYSubsampling |
(package private) ImageInputStream |
stream |
(package private) com.sun.imageio.plugins.gif.GIFStreamMetadata |
streamMetadata |
(package private) int |
streamX |
(package private) int |
streamY |
(package private) BufferedImage |
theImage |
(package private) WritableRaster |
theTile |
(package private) int |
updateMinY |
(package private) int |
updateYStep |
(package private) int |
width |
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
Constructor and Description |
---|
PatchedGIFImageReader(ImageReaderSpi originatingProvider) |
Modifier and Type | Method and Description |
---|---|
private void |
checkIndex(int imageIndex) |
private void |
computeDecodeThisRow() |
private byte[] |
concatenateBlocks() |
private int |
copyData(byte[] src,
int offset,
byte[] dst) |
private int |
getCode(int codeSize,
int codeMask) |
ImageReadParam |
getDefaultReadParam() |
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch) |
IIOMetadata |
getStreamMetadata() |
int |
getWidth(int imageIndex) |
void |
initializeStringTable(int[] prefix,
byte[] suffix,
byte[] initial,
int[] length) |
private void |
initNext32Bits() |
private int |
locateImage(int imageIndex) |
private void |
outputPixels(byte[] string,
int len) |
private void |
outputRow() |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
private void |
readHeader() |
private void |
readMetadata() |
void |
reset()
Remove all settings including global settings such as
Locale s and listeners, as well as stream settings. |
private void |
resetStreamSettings()
Remove local settings based on parsing of a stream.
|
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata) |
private boolean |
skipImage() |
private void |
startPass(int pass) |
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale
ImageInputStream stream
boolean gotHeader
com.sun.imageio.plugins.gif.GIFStreamMetadata streamMetadata
int currIndex
com.sun.imageio.plugins.gif.GIFImageMetadata imageMetadata
List imageStartPosition
int imageMetadataLength
int numImages
byte[] block
int blockLength
int bitPos
int nextByte
int initCodeSize
int clearCode
int eofCode
int next32Bits
boolean lastBlockFound
BufferedImage theImage
WritableRaster theTile
int width
int height
int streamX
int streamY
int rowsDone
int interlacePass
static final int[] interlaceIncrement
static final int[] interlaceOffset
Rectangle sourceRegion
int sourceXSubsampling
int sourceYSubsampling
int sourceMinProgressivePass
int sourceMaxProgressivePass
Point destinationOffset
Rectangle destinationRegion
int updateMinY
int updateYStep
boolean decodeThisRow
int destY
byte[] rowBuf
public PatchedGIFImageReader(ImageReaderSpi originatingProvider)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class ImageReader
public int getNumImages(boolean allowSearch) throws IIOException
getNumImages
in class ImageReader
IIOException
private void checkIndex(int imageIndex)
public int getWidth(int imageIndex) throws IIOException
getWidth
in class ImageReader
IIOException
public int getHeight(int imageIndex) throws IIOException
getHeight
in class ImageReader
IIOException
public Iterator getImageTypes(int imageIndex) throws IIOException
getImageTypes
in class ImageReader
IIOException
public ImageReadParam getDefaultReadParam()
getDefaultReadParam
in class ImageReader
public IIOMetadata getStreamMetadata() throws IIOException
getStreamMetadata
in class ImageReader
IIOException
public IIOMetadata getImageMetadata(int imageIndex) throws IIOException
getImageMetadata
in class ImageReader
IIOException
private void initNext32Bits()
private int getCode(int codeSize, int codeMask) throws IOException
IOException
public void initializeStringTable(int[] prefix, byte[] suffix, byte[] initial, int[] length)
private void outputRow()
private void computeDecodeThisRow()
private void outputPixels(byte[] string, int len)
private void readHeader() throws IIOException
IIOException
private boolean skipImage() throws IIOException
IIOException
private int locateImage(int imageIndex) throws IIOException
IIOException
private byte[] concatenateBlocks() throws IOException
IOException
private void readMetadata() throws IIOException
IIOException
private int copyData(byte[] src, int offset, byte[] dst)
private void startPass(int pass)
public BufferedImage read(int imageIndex, ImageReadParam param) throws IIOException
read
in class ImageReader
IIOException
public void reset()
Locale
s and listeners, as well as stream settings.reset
in class ImageReader
private void resetStreamSettings()
Copyright © 2019–2022. All rights reserved.