X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/4d1c91362ed7719a1371ad977afd95f79821974f..bd5f6b55320b6889827908762197642b484ea28d:/src/imgoutput.h diff --git a/src/imgoutput.h b/src/imgoutput.h index 46d9c9a..62994fd 100644 --- a/src/imgoutput.h +++ b/src/imgoutput.h @@ -1,9 +1,16 @@ #ifndef IMGOUTPUT_H_ #define IMGOUTPUT_H_ -int img_output_png(FILE *f, const char *filename, - unsigned width, unsigned height, - unsigned char **framedata, unsigned char **mask, - struct lbx_colour *palette); +#include "image.h" + +typedef int img_output_func(FILE *f, const char *filename, + unsigned width, unsigned height, + unsigned char *pixels, unsigned char *pixel_mask, + struct lbx_colour *palette); + +img_output_func img_output_pbm, img_output_ppm, img_output_pam; +img_output_func img_output_png; + +_Bool img_is_masked(unsigned char *mask, unsigned width, unsigned height); #endif