]> git.imager.perl.org - imager.git/blobdiff - imagei.h
- the convert, crop, rotate, copy, matrix_transform, to_paletted, to_rgb8,
[imager.git] / imagei.h
index d12680b7bc70b0123215673f0a2dbb7f95f6f14f..3f2133d9a2ddd227f2548852760aa913aac22e5f 100644 (file)
--- a/imagei.h
+++ b/imagei.h
@@ -15,7 +15,7 @@ extern int i_gpixf_fp(i_img *im, int x, int y, i_fcolor *pix);
 extern int i_plinf_fp(i_img *im, int l, int r, int y, i_fcolor *pix);
 extern int i_glinf_fp(i_img *im, int l, int r, int y, i_fcolor *pix);
 extern int i_gsampf_fp(i_img *im, int l, int r, int y, i_fsample_t *samp,
-                       int *chans, int chan_count);
+                       int const *chans, int chan_count);
 
 /* wrapper functions that forward palette calls to the underlying image,
    assuming the underlying image is the first pointer in whatever
@@ -39,4 +39,16 @@ extern int i_setcolors_forward(i_img *im, int index, i_color *colors,
 #define Sample16To8(num) ((num) / 257)
 #define Sample8To16(num) ((num) * 257)
 
+extern void i_get_combine(int combine, i_fill_combine_f *, i_fill_combinef_f *);
+
+#include "ext.h"
+
+extern UTIL_table_t i_UTIL_table;
+
+/* Ideally this will move into imconfig.h if we ever probe */
+#if defined(_GNU_SOURCE) || __STDC_VERSION__ >= 199901L
+/* snprintf() is part of C99 and provided by Glibc */
+#define HAVE_SNPRINTF
+#endif
+
 #endif