-
Notifications
You must be signed in to change notification settings - Fork 3
/
PNG.xs
51 lines (42 loc) · 893 Bytes
/
PNG.xs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#define PERL_NO_GET_CONTEXT
#ifdef __cplusplus
extern "C" {
#endif
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "imext.h"
#include "imperl.h"
#include "impng.h"
DEFINE_IMAGER_CALLBACKS;
MODULE = Imager::File::PNG PACKAGE = Imager::File::PNG
Imager::ImgRaw
i_readpng_wiol(ig, flags=0)
Imager::IO ig
int flags
undef_int
i_writepng_wiol(im, ig)
Imager::ImgRaw im
Imager::IO ig
unsigned
i_png_lib_version()
MODULE = Imager::File::PNG PACKAGE = Imager::File::PNG PREFIX=i_png_
void
i_png_features(...)
PREINIT:
const char * const *p;
PPCODE:
p = i_png_features();
while (*p) {
EXTEND(SP, 1);
PUSHs(sv_2mortal(newSVpv(*p, 0)));
++p;
}
int
IMPNG_READ_IGNORE_BENIGN_ERRORS()
CODE:
RETVAL = IMPNG_READ_IGNORE_BENIGN_ERRORS;
OUTPUT:
RETVAL
BOOT:
PERL_INITIALIZE_IMAGER_CALLBACKS;