diffusion-rs-sys 0.1.2

Rust bindings for stable-diffusion.cpp (FFI bindings)
Documentation
1
2
3
4
5
6
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"

int stbi_write_png_custom(char const *filename, int w, int h, int comp, const void  *data, int stride_in_bytes) {
    return stbi_write_png(filename, w, h, comp, data, stride_in_bytes, NULL);
}