Function gifski::c_api::gifski_finish [−][src]
#[no_mangle]pub unsafe extern "C" fn gifski_finish(g: *const GifskiHandle) -> GifskiError
The last step:
- stops accepting any more frames (gifski_add_frame_* calls are blocked)
- blocks and waits until all already-added frames have finished writing
Returns final status of write operations. Remember to check the return value!
Must always be called, otherwise it will leak memory. After this call, the handle is freed and can't be used any more.
Returns 0 (GIFSKI_OK
) on success, and non-0 GIFSKI_*
constant on error.