]> git.imager.perl.org - imager.git/blob - imextpltypes.h
(rt #124001) avoid flooring a second time in matrix transform interpolation
[imager.git] / imextpltypes.h
1 #ifndef IMAGER_IMEXTPLTYPES_H_
2 #define IMAGER_IMEXTPLTYPES_H_
3
4 #ifndef PERL_NO_GET_CONTEXT
5 #error Sorry, you need to build with PERL_NO_GET_CONTEXT
6 #endif
7
8 #define IMAGER_PL_API_VERSION 1
9
10 /* This file provides functions useful for external code in
11    interfacing with perl - these functions aren't part of the core
12    Imager API. */
13
14 #define IMAGER_PL_API_LEVEL 1
15
16 typedef struct {
17   int version;
18   int level;
19
20   /* IMAGER_PL_API_LEVEL 1 functions */
21   void (*f_ip_handle_quant_opts)(pTHX_ i_quantize *quant, HV *hv);
22   void (*f_ip_cleanup_quant_opts)(pTHX_ i_quantize *quant);
23   void (*f_ip_copy_colors_back)(pTHX_ HV *hv, i_quantize *quant);
24
25   /* IMAGER_PL_API_LEVEL 2 functions will go here */
26 } im_pl_ext_funcs;
27
28 #define PERL_PL_FUNCTION_TABLE_NAME "Imager::__ext_pl_func_table"
29
30 #endif