Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/extrapixel/gif-animation
/ functions
Functions
96 in github.com/extrapixel/gif-animation
⨍
Functions
96
◇
Types & classes
7
↓ 18 callers
Method
read
Reads GIF image from stream @param is : BufferedInputStream containing GIF file. @return read status code (0 = no errors)
gifAnimation/src/GifDecoder.java:307
↓ 8 callers
Method
err
Returns true if an error was encountered during reading/decoding
gifAnimation/src/GifDecoder.java:504
↓ 8 callers
Method
writeShort
Write 16-bit value to output stream, LSB first
gifAnimation/src/GifEncoder.java:482
↓ 7 callers
Method
readShort
Reads next 16-bit value, LSB first
gifAnimation/src/GifDecoder.java:775
↓ 5 callers
Method
output
(int code, OutputStream outs)
gifAnimation/src/GifEncoder.java:1250
↓ 4 callers
Method
jump
Jump to a specific location (in frames). if the frame does not exist, go to last frame @param where : file location (in sketch)
gifAnimation/src/Gif.java:307
↓ 4 callers
Method
readBlock
Reads next variable length block from input. @return number of bytes stored in "buffer"
gifAnimation/src/GifDecoder.java:537
↓ 3 callers
Method
MAXCODE
(int n_bits)
gifAnimation/src/GifEncoder.java:1232
↓ 3 callers
Method
getFrame
Gets the image contents of frame n. @param n : frame number @return BufferedImage representation of frame, or null if n is invalid.
gifAnimation/src/GifDecoder.java:283
↓ 3 callers
Method
init
Initializes or re-initializes reader
gifAnimation/src/GifDecoder.java:511
↓ 3 callers
Method
skip
Skips variable length blocks up to and including next zero length block.
gifAnimation/src/GifDecoder.java:797
↓ 3 callers
Method
stop
Stop the animation, and rewind.
gifAnimation/src/Gif.java:295
↓ 2 callers
Method
char_out
(byte c, OutputStream outs)
gifAnimation/src/GifEncoder.java:1118
↓ 2 callers
Method
cl_hash
(int hsize)
gifAnimation/src/GifEncoder.java:1136
↓ 2 callers
Method
createDecoder
(PApplet parent, String filename)
gifAnimation/src/Gif.java:167
↓ 2 callers
Method
extractFrames
(GifDecoder gifDecoder)
gifAnimation/src/Gif.java:176
↓ 2 callers
Method
flush_char
(OutputStream outs)
gifAnimation/src/GifEncoder.java:1224
↓ 2 callers
Method
getFrameCount
Gets the number of frames read from file. @return frame count
gifAnimation/src/GifDecoder.java:166
↓ 2 callers
Method
nextPixel
()
gifAnimation/src/GifEncoder.java:1239
↓ 2 callers
Method
readColorTable
Reads color table as 256 RGB integer values @param ncolors int number of colors to read @return int array containing 256 colors (packed ARGB
gifAnimation/src/GifDecoder.java:566
↓ 2 callers
Method
readContents
Main file parser. Reads GIF content blocks.
gifAnimation/src/GifDecoder.java:594
↓ 2 callers
Method
readHeader
Reads GIF file header information.
gifAnimation/src/GifDecoder.java:661
↓ 2 callers
Method
start
Initiates GIF file creation on the given stream. The stream is not closed automatically. @param os OutputStream on which GIF images are writ
gifAnimation/src/GifEncoder.java:264
↓ 2 callers
Method
writePalette
Writes color table
gifAnimation/src/GifEncoder.java:463
↓ 2 callers
Method
writeString
Writes string to output stream
gifAnimation/src/GifEncoder.java:490
↓ 1 callers
Method
alterneigh
(int rad, int i, int b, int g, int r)
gifAnimation/src/GifEncoder.java:900
↓ 1 callers
Method
altersingle
(int alpha, int i, int b, int g, int r)
gifAnimation/src/GifEncoder.java:942
↓ 1 callers
Method
analyzePixels
Analyzes image colors and creates color map.
gifAnimation/src/GifEncoder.java:300
↓ 1 callers
Method
cl_block
(OutputStream outs)
gifAnimation/src/GifEncoder.java:1127
↓ 1 callers
Method
colorMap
()
gifAnimation/src/GifEncoder.java:653
↓ 1 callers
Method
compress
(int init_bits, OutputStream outs)
gifAnimation/src/GifEncoder.java:1141
↓ 1 callers
Method
contest
(int b, int g, int r)
gifAnimation/src/GifEncoder.java:954
↓ 1 callers
Method
createInputStream
(PApplet parent, String filename)
gifAnimation/src/Gif.java:140
↓ 1 callers
Method
decodeImageData
Decodes LZW image data into pixel array. Adapted from John Cristy's ImageMagick.
gifAnimation/src/GifDecoder.java:387
↓ 1 callers
Method
dispose
()
gifAnimation/src/Gif.java:83
↓ 1 callers
Method
encode
(OutputStream os)
gifAnimation/src/GifEncoder.java:1212
↓ 1 callers
Method
extractDelays
(GifDecoder gifDecoder)
gifAnimation/src/Gif.java:194
↓ 1 callers
Method
findClosest
Returns index of palette color closest to c
gifAnimation/src/GifEncoder.java:334
↓ 1 callers
Method
finish
()
gifAnimation/src/GifMaker.java:164
↓ 1 callers
Method
getDelay
Gets display duration for specified frame. @param n int index of frame @return delay in milliseconds
gifAnimation/src/GifDecoder.java:152
↓ 1 callers
Method
getImagePixels
Extracts image pixels into byte array "pixels"
gifAnimation/src/GifEncoder.java:361
↓ 1 callers
Method
getLoopCount
Gets the "Netscape" iteration count, if any. A count of 0 means repeat indefinitiely. @return iteration count if one was specified, else 1.
gifAnimation/src/GifDecoder.java:185
↓ 1 callers
Method
initEncoder
(String filename)
gifAnimation/src/GifMaker.java:65
↓ 1 callers
Method
inxbuild
()
gifAnimation/src/GifEncoder.java:673
↓ 1 callers
Method
learn
()
gifAnimation/src/GifEncoder.java:727
↓ 1 callers
Method
map
(int b, int g, int r)
gifAnimation/src/GifEncoder.java:805
↓ 1 callers
Method
process
()
gifAnimation/src/GifEncoder.java:871
↓ 1 callers
Method
readGraphicControlExt
Reads Graphics Control Extension values
gifAnimation/src/GifDecoder.java:645
↓ 1 callers
Method
readImage
Reads next frame image
gifAnimation/src/GifDecoder.java:681
↓ 1 callers
Method
readLSD
Reads Logical Screen Descriptor
gifAnimation/src/GifDecoder.java:740
↓ 1 callers
Method
readNetscapeExt
Reads Netscape extension to obtain iteration count
gifAnimation/src/GifDecoder.java:760
↓ 1 callers
Method
resetFrame
Resets frame state for reading next image.
gifAnimation/src/GifDecoder.java:783
↓ 1 callers
Method
setPixels
Creates new frame image from current data (and previous frames as specified by their disposition codes).
gifAnimation/src/GifDecoder.java:193
↓ 1 callers
Method
setQuality
description taken from GifEncoder-class: Sets quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specifi
gifAnimation/src/GifMaker.java:101
↓ 1 callers
Method
setSize
Sets the GIF frame size. The default size is the size of the first frame added if this method is not invoked. @param w int frame width. @par
gifAnimation/src/GifEncoder.java:244
↓ 1 callers
Method
setTransparent
(int color)
gifAnimation/src/GifMaker.java:125
↓ 1 callers
Method
unbiasnet
()
gifAnimation/src/GifEncoder.java:883
↓ 1 callers
Method
writeGraphicCtrlExt
Writes Graphic Control Extension
gifAnimation/src/GifEncoder.java:378
↓ 1 callers
Method
writeImageDesc
Writes Image Descriptor
gifAnimation/src/GifEncoder.java:409
↓ 1 callers
Method
writeLSD
Writes Logical Screen Descriptor
gifAnimation/src/GifEncoder.java:432
↓ 1 callers
Method
writeNetscapeExt
Writes Netscape application extension to define repeat count.
gifAnimation/src/GifEncoder.java:449
↓ 1 callers
Method
writePixels
Encodes and writes pixel data
gifAnimation/src/GifEncoder.java:474
Method
Gif
(PApplet parent, String filename)
gifAnimation/src/Gif.java:56
Method
GifFrame
(BufferedImage im, int del)
gifAnimation/src/GifDecoder.java:135
Method
GifMaker
(PApplet parent, String filename)
gifAnimation/src/GifMaker.java:42
Method
LZWEncoder
(int width, int height, byte[] pixels, int color_depth)
gifAnimation/src/GifEncoder.java:1109
Method
NeuQuant
(byte[] thepic, int len, int sample)
gifAnimation/src/GifEncoder.java:634
Method
addFrame
Adds next GIF frame. The frame is not written immediately, but is actually deferred until the next frame is received so that timing data can be insert
gifAnimation/src/GifEncoder.java:138
Method
addFrame
()
gifAnimation/src/GifMaker.java:143
Method
currentFrame
()
gifAnimation/src/Gif.java:230
Method
dispose
()
gifAnimation/src/GifMaker.java:61
Method
finish
Flushes any pending data and closes output file. If writing to an OutputStream, the stream is not closed. @return true if data output closed
gifAnimation/src/GifEncoder.java:178
Method
getFrameSize
Gets image size. @return GIF image dimensions
gifAnimation/src/GifDecoder.java:296
Method
getImage
Gets the first (or only) image read. @return BufferedImage containing first frame, or null if none.
gifAnimation/src/GifDecoder.java:175
Method
getPImages
(PApplet parent, String filename)
gifAnimation/src/Gif.java:152
Method
getRepeat
()
gifAnimation/src/Gif.java:216
Method
ignoreRepeat
()
gifAnimation/src/Gif.java:208
Method
isIgnoringRepeat
()
gifAnimation/src/Gif.java:244
Method
isLooping
()
gifAnimation/src/Gif.java:237
Method
isPlaying
()
gifAnimation/src/Gif.java:223
Method
loop
Begin playing the animation, with repeat.
gifAnimation/src/Gif.java:272
Method
noLoop
Shut off the repeating loop.
gifAnimation/src/Gif.java:280
Method
pause
Pause the animation at its current frame.
gifAnimation/src/Gif.java:287
Method
play
Begin playing the animation, with no repeat.
gifAnimation/src/Gif.java:262
Method
run
()
gifAnimation/src/Gif.java:93
Method
setDelay
Sets the delay time between each frame, or changes it for subsequent frames (applies to last frame added). @param ms int delay time in milli
gifAnimation/src/GifEncoder.java:80
Method
setDelay
(int delay)
gifAnimation/src/GifMaker.java:74
Method
setDispose
Sets the GIF frame disposal code for the last added frame and any subsequent frames. Default is 0 if no transparent color has been set, otherwise 2.
gifAnimation/src/GifEncoder.java:92
Method
setDispose
(int dispose)
gifAnimation/src/GifMaker.java:86
Method
setFrameRate
Sets frame rate in frames per second. Equivalent to <code>setDelay(1000/fps)</code>. @param fps float frame rate (frames per second)
gifAnimation/src/GifEncoder.java:213
Method
setQuality
Sets quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specification). Lower values (minimum = 1) produ
gifAnimation/src/GifEncoder.java:229
Method
setRepeat
Sets the number of times the set of GIF frames should be played. Default is 1; 0 means play indefinitely. Must be invoked before the first image is ad
gifAnimation/src/GifEncoder.java:107
Method
setRepeat
(int repeat)
gifAnimation/src/GifMaker.java:109
Method
setSize
(int width, int height)
gifAnimation/src/GifMaker.java:117
Method
setTransparent
Sets the transparent color for the last added frame and any subsequent frames. Since all colors are subject to modification in the quantization proces
gifAnimation/src/GifEncoder.java:123
Method
version
()
gifAnimation/src/Gif.java:251