Module gifski::c_api
[−]
[src]
How to use from C
gifski *g = gifski_new(&settings);
gifski_add_frame_rgba(g, i, width, height, buffer, 5);
gifski_end_adding_frames(g);
gifski_write(g, "file.gif");
gifski_drop(g);
Structs
GifskiHandle |
Opaque handle used in methods |
GifskiSettings |
Settings for creating a new encoder instance. See |
Functions
gifski_add_frame_png_file |
File path must be valid UTF-8. This function is asynchronous. |
gifski_add_frame_rgba |
Pixels is an array width×height×4 bytes large. The array is copied, so you can free/reuse it immediately. |
gifski_drop |
Call to free all memory |
gifski_end_adding_frames |
You must call it at some point (after all frames are set), otherwise |
gifski_new |
Call to start the process |
gifski_write |
Write frames to |