fix some issues with the preview image: Preview generation is disabled by default and only done when requested

Cleared stale generation state at job start/end.
Fixed the animated preview GIF buffer leak.
This commit is contained in:
Concedo 2026-08-07 00:19:39 +08:00
parent e3cb5e9e44
commit 61bfce83de
4 changed files with 75 additions and 18 deletions

View file

@ -113,6 +113,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs);
sd_generation_outputs sdtype_upscale(const sd_upscale_inputs inputs);
sd_info_outputs sdtype_get_info();
sd_info_outputs sdtype_get_ongoing_generation_info();
void sdtype_request_ongoing_generation_preview();
void sdtype_abort_generation();
bool whispertype_load_model(const whisper_load_model_inputs inputs);