Package-level declarations
Types
An abstract class for implementing GIF encoders that encode frames asynchronously.
Interface for color quantization algorithms.
Interface for checking the similarity between two RGB colors.
Interface representing a color table used for color quantization.
Indicates the way in which a frame is to be treated after being displayed.
Information about a single frame.
Information about a single frame.
Information about a single frame.
A class for decoding GIF files. Other than cached frames, configured with cacheFrameInterval, all frames are decoded only when requested, minimizing memory usage.
A class for decoding GIF files. Other than cached frames, configured with cacheFrameInterval, all frames are decoded only when requested, minimizing memory usage.
A class for decoding GIF files. Other than cached frames, configured with cacheFrameInterval, all frames are decoded only when requested, minimizing memory usage.
A class for encoding GIF files. The dimensions of the created GIF are determined by the first frame written. Subsequent frames will have the same dimensions as the first frame, cropping or padding the frame to fit if necessary. The encoder must be closed after use to ensure all data is written correctly.
A class for encoding GIF files. The dimensions of the created GIF are determined by the first frame written. Subsequent frames will have the same dimensions as the first frame, cropping or padding the frame to fit if necessary. The encoder must be closed after use to ensure all data is written correctly.
A class for encoding GIF files. The dimensions of the created GIF are determined by the first frame written. Subsequent frames will have the same dimensions as the first frame, cropping or padding the frame to fit if necessary. The encoder must be closed after use to ensure all data is written correctly.
A class for encoding GIF files. The dimensions of the created GIF are determined by the first frame written. Subsequent frames will have the same dimensions as the first frame, cropping or padding the frame to fit if necessary. The encoder must be closed after use to ensure all data is written correctly.
A builder for creating GifEncoder and ParallelGifEncoders.
A builder for creating GifEncoders.
A builder for creating GifEncoders.
A builder for creating GifEncoders.
Stores a single frame's data.
Stores a single frame's data.
Stores a single frame's data.
Stores a single frame's data.
Exception thrown when a GIF file is invalid and cannot be decoded.
A callback that is invoked after a frame is written, providing the number of frames written and the total duration written so far. This can be used to track progress or update a UI.
A class for encoding GIF files. This encoder supports writing multiple frames in parallel. The dimensions of the created GIF are determined by the first frame written. Subsequent frames will have the same dimensions as the first frame, cropping or padding the frame to fit if necessary. The encoder must be closed after use to ensure all data is written correctly.
A class for encoding GIF files. This encoder supports writing multiple frames in parallel. The dimensions of the created GIF are determined by the first frame written. Subsequent frames will have the same dimensions as the first frame, cropping or padding the frame to fit if necessary. The encoder must be closed after use to ensure all data is written correctly.
A class for encoding GIF files. This encoder supports writing multiple frames in parallel. The dimensions of the created GIF are determined by the first frame written. Subsequent frames will have the same dimensions as the first frame, cropping or padding the frame to fit if necessary. The encoder must be closed after use to ensure all data is written correctly.
A class for encoding GIF files. This encoder supports writing multiple frames in parallel. The dimensions of the created GIF are determined by the first frame written. Subsequent frames will have the same dimensions as the first frame, cropping or padding the frame to fit if necessary. The encoder must be closed after use to ensure all data is written correctly.
A source of data which supports random access reading.
A source of data which supports random access reading.
A source of data which supports random access reading.
A source of data which supports random access reading.
A source of data which supports random access reading.
A source of data which supports random access reading.
A resource that can be closed or released asynchronously.
Properties
The pixel data of this Bitmap. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.
The pixel data of this BufferedImage. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.
The CoroutineScope in which the concurrent encoding operations will run. Used when creating a ParallelGifEncoder.
The CoroutineScope in which the concurrent encoding operations will run. Used when creating a ParallelGifEncoder.
The CoroutineScope in which the concurrent encoding operations will run. Used when creating a ParallelGifEncoder.
The maximum number of colors allowed in a GIF frame.
The minimum duration of a GIF frame in centiseconds that is supported by most GIF viewers.
The CoroutineContext to use for writing to the sink. Used when creating a ParallelGifEncoder.
The CoroutineContext to use for writing to the sink. Used when creating a ParallelGifEncoder.
The CoroutineContext to use for writing to the sink. Used when creating a ParallelGifEncoder.
The maximum number of frames that can be processed concurrently at the same time. Used when creating a ParallelGifEncoder.
The maximum number of frames that can be processed concurrently at the same time. Used when creating a ParallelGifEncoder.
The maximum number of frames that can be processed concurrently at the same time. Used when creating a ParallelGifEncoder.
Functions
Creates a RandomAccessData instance that reads from a file.
Creates a RandomAccessData instance that reads from a byte array.
Creates a RandomAccessData instance that reads from a file.
Creates a RandomAccessData instance that reads from an ArrayBuffer.
Creates a RandomAccessData instance that reads from an Int8Array.
Creates a new GifEncoderBuilder for configuring and building a GifEncoder.
Builds a ParallelGifEncoder with the specified parameters.
Builds a ParallelGifEncoder with the specified parameters.
Builds a ParallelGifEncoder with the specified parameters.
Creates a copy of this FrameInfo with the specified properties.
Creates a copy of this ImageFrame with the specified properties.
Constructs a GifDecoder, reading GIF data from a file.
Constructs a GifDecoder, reading GIF data from a ArrayBuffer.
Constructs a GifDecoder, reading GIF data from an Int8Array.
Creates a RandomAccessData instance that reads from a file.
Creates a RandomAccessData instance that reads from a file.
Creates a RandomAccessData instance that reads from a file.
Creates a RandomAccessData instance that reads from a file.
Quantizes the given image to a maximum number of colors.
Creates a lazy sequence of ImageFrames from the GIF data in this Source. The sequence decodes the GIF frames on demand, minimizing memory usage. The returned sequence can only be iterated over once.
Encodes the given quantized image data to a GIF frame and writes it to the sink.