Module rofl::animated_gif
[−]
[src]
Module handling the decoding & encoding of animated GIFs.
This is done by wrapping over the API exposed by several image-related crates.
Structs
GifAnimation |
Animation loaded from a GIF file. The frames are kept in their decoded (RGBA) form. |
GifFrame |
A single frame of an animated GIF template. |
Enums
DecodeError |
Error that can occur while decoding animated GIF. |
Functions
decode |
Decode animated GIF from given reader. |
decode_from_file |
Decode animated GIF from given file. |
encode |
Encode an animated GIF. |
encode_modified |
Encode animated GIF with its frames modified (replaced with given images). |
is_gif |
Check if the path points to a GIF file. |
is_gif_animated |
Check if given GIF image is animated. Returns None if it cannot be determined (e.g. file doesn't exist). |
quantize_image |
Low-level function that performs color quantization of an image. |