Package-level declarations
Types
stable-diffusion.cpp text-to-image engine with streamed progress and cooperative cancellation.
Diffusion-specific construction options of a DiffusionEngine.
Events of one DiffusionEngine.generate collection.
One txt2img request. Validated on construction (including via copy); invalid values throw IllegalArgumentException before any native call.
A generated image: packed 8-bit RGB (channels = 3), row-major, no row padding, width * height * channels bytes. The pixels were copied out of the native buffer, which is already freed; this object owns plain heap memory.
The model files of a DiffusionEngine (UTF-8 paths to .gguf, .safetensors or .ckpt files).
Static properties of a loaded diffusion model.
Version information of the native diffusion library.
Which part of a generation a DiffusionEvent.Progress belongs to.
stable-diffusion.cpp sampling method (sample_method_t).
stable-diffusion.cpp noise schedule (scheduler_t).
Functions
Loads model with stable-diffusion.cpp and returns a ready DiffusionEngine.
Loads a full Stable Diffusion checkpoint (.gguf, .safetensors or .ckpt) with stable-diffusion.cpp and returns a ready DiffusionEngine. Same as the DiffusionModelFiles overload with DiffusionModelFiles(modelPath).