#pragma once #include #include struct Params { double cx, cy, imgw; int16_t maxit; int par1, par2; }; struct Mandel; Params mandel_default_params(); Mandel* mandel_init(int w, int h); void mandel_free(Mandel *ctx); double mandel_imgh(const Mandel *ctx, const Params *par); // dst[3*w*h] void mandel_render(uint8_t *dst, Mandel *ctx, const Params *par, size_t subsample);