]> git.draconx.ca Git - liblbx.git/blobdiff - src/imgoutput.h
lbximg: Add support for Netpbm output.
[liblbx.git] / src / imgoutput.h
index 46d9c9a1f115300c6d347e8690603a6ba139aa06..bb0b2a529bb60aeb6b20c9a8aca0f392ad2eb89a 100644 (file)
@@ -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 **framedata, unsigned char **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