GifDecoder
Constructs a GifDecoder, reading GIF data from a file.
Parameters
The path of the file containing the GIF data.
The interval at which frames are cached. Setting this to a higher value can improve random access speed with get, but increases memory usage.
Set to 1 to cache every frame, making random access speed similar to that of Array. Warning: this can cause the decoder to use a large amount of memory.
Set to 0 to disable caching, which will decrease the initial load time and minimize memory usage. Disable caching if you only need to read frames sequentially using asSequence or get in increasing order of their index or timestamp.
Throws
If the GIF data is invalid and cannot be decoded.
If an I/O error occurs.
Constructs a GifDecoder, reading GIF data from a file.
Parameters
The file containing the GIF data.
The interval at which frames are cached. Setting this to a higher value can improve random access speed with get, but increases memory usage.
Set to 1 to cache every frame, making random access speed similar to that of Array. Warning: this can cause the decoder to use a large amount of memory.
Set to 0 to disable caching, which will decrease the initial load time and minimize memory usage. Disable caching if you only need to read frames sequentially using asSequence or get in increasing order of their index or timestamp.
Throws
If the GIF data is invalid and cannot be decoded.
If an I/O error occurs.
Parameters
The RandomAccessData to read the GIF data from.
The interval at which frames are cached. Setting this to a higher value can improve random access speed with get, but increases memory usage.
Set to 1 to cache every frame, making random access speed similar to that of Array. Warning: this can cause the decoder to use a large amount of memory.
Set to 0 to disable caching, which will decrease the initial load time and minimize memory usage. Disable caching if you only need to read frames sequentially using asSequence or get in increasing order of their index or timestamp.
Constructs a GifDecoder, reading GIF data from a byte array.
Parameters
The byte array containing the GIF data.
The interval at which frames are cached. Setting this to a higher value can improve random access speed with get, but increases memory usage.
Set to 1 to cache every frame, making random access speed similar to that of Array. Warning: this can cause the decoder to use a large amount of memory.
Set to 0 to disable caching, which will decrease the initial load time and minimize memory usage. Disable caching if you only need to read frames sequentially using asSequence or get in increasing order of their index or timestamp.
Throws
If the GIF data is invalid and cannot be decoded.
If an I/O error occurs.
Parameters
The RandomAccessData to read the GIF data from.
The interval at which frames are cached. Setting this to a higher value can improve random access speed with get, but increases memory usage.
Set to 1 to cache every frame, making random access speed similar to that of Array. Warning: this can cause the decoder to use a large amount of memory.
Set to 0 to disable caching, which will decrease the initial load time and minimize memory usage. Disable caching if you only need to read frames sequentially using asSequence or get in increasing order of their index or timestamp.
Constructs a GifDecoder, reading GIF data from a byte array.
Parameters
The byte array containing the GIF data.
The interval at which frames are cached. Setting this to a higher value can improve random access speed with get, but increases memory usage.
Set to 1 to cache every frame, making random access speed similar to that of Array. Warning: this can cause the decoder to use a large amount of memory.
Set to 0 to disable caching, which will decrease the initial load time and minimize memory usage. Disable caching if you only need to read frames sequentially using asSequence or get in increasing order of their index or timestamp.
Throws
If the GIF data is invalid and cannot be decoded.
If an I/O error occurs.
Parameters
The RandomAccessData to read the GIF data from.
The interval at which frames are cached. Setting this to a higher value can improve random access speed with get, but increases memory usage.
Set to 1 to cache every frame, making random access speed similar to that of Array. Warning: this can cause the decoder to use a large amount of memory.
Set to 0 to disable caching, which will decrease the initial load time and minimize memory usage. Disable caching if you only need to read frames sequentially using asSequence or get in increasing order of their index or timestamp.
Constructs a GifDecoder, reading GIF data from a byte array.
Parameters
The byte array containing the GIF data.
The interval at which frames are cached. Setting this to a higher value can improve random access speed with get, but increases memory usage.
Set to 1 to cache every frame, making random access speed similar to that of Array. Warning: this can cause the decoder to use a large amount of memory.
Set to 0 to disable caching, which will decrease the initial load time and minimize memory usage. Disable caching if you only need to read frames sequentially using asSequence or get in increasing order of their index or timestamp.
Throws
If the GIF data is invalid and cannot be decoded.
If an I/O error occurs.