|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bumptech.glide.gifdecoder.GifHeaderParser
public class GifHeaderParser
A class responsible for creating GifHeader
s from data representing animated
gifs.
Field Summary | |
---|---|
static String |
TAG
|
Constructor Summary | |
---|---|
GifHeaderParser()
|
Method Summary | |
---|---|
GifHeader |
parseHeader()
|
protected void |
readBitmap()
Reads next frame image. |
protected int |
readBlock()
Reads next variable length block from input. |
protected int[] |
readColorTable(int ncolors)
Reads color table as 256 RGB integer values. |
protected void |
readContents()
Main file parser. |
protected void |
readGraphicControlExt()
Reads Graphics Control Extension values. |
protected void |
readLSD()
Reads Logical Screen Descriptor. |
protected void |
readNetscapeExt()
Reads Netscape extension to obtain iteration count. |
protected int |
readShort()
Reads next 16-bit value, LSB first. |
GifHeaderParser |
setData(byte[] data)
|
protected void |
skip()
Skips variable length blocks up to and including next zero length block. |
protected void |
skipBitmapData()
Skips LZW image data for a single frame to advance buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAG
Constructor Detail |
---|
public GifHeaderParser()
Method Detail |
---|
public GifHeaderParser setData(byte[] data)
public GifHeader parseHeader()
protected void readContents()
protected void readGraphicControlExt()
protected void readBitmap()
protected void readNetscapeExt()
protected void readLSD()
protected int[] readColorTable(int ncolors)
ncolors
- int number of colors to read.
protected void skipBitmapData()
protected void skip()
protected int readBlock()
protected int readShort()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |