-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gmicpy.h
76 lines (64 loc) · 1.67 KB
/
gmicpy.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "gmic.h"
// Set T be a float if not platform-overridden
#ifndef T
#define T gmic_pixel_type
#endif
#define xstr(s) str(s)
#define str(s) #s
#ifdef cimg_use_zlib
#define zlib_enabled 1
#else
#define zlib_enabled 0
#endif
#ifdef cimg_use_png
#define libpng_enabled 1
#else
#define lipng_enabled 0
#endif
#ifdef cimg_use_tiff
#define libtiff_enabled 1
#else
#define libtiff_enabled 0
#endif
#ifdef cimg_use_jpeg
#define libjpeg_enabled 1
#else
#define libjpeg_enabled 0
#endif
#ifdef cimg_display
#define display_enabled 1
#else
#define display_enabled 0
#endif
#ifdef cimg_use_fftw3
#define fftw3_enabled 1
#else
#define fftw3_enabled 0
#endif
#ifdef cimg_use_curl
#define libcurl_enabled 1
#else
#define libcurl_enabled 0
#endif
#ifdef gmic_py_numpy
#define numpy_enabled 1
#else
#define numpy_enabled 0
#endif
#if cimg_OS == 0
#define OS_type "unknown"
#elif cimg_OS == 1
#define OS_type "unix"
#elif cimg_OS == 2
#define OS_type "windows"
#endif
#define gmicpy_build_info \
PyUnicode_FromFormat( \
"zlib_enabled:%d libpng_enabled:%d libtiff_enabled:%d " \
"libjpeg_enabled:%d display_enabled:%d " \
"fftw3_enabled:%d libcurl_enabled:%d openmp_enabled:%d cimg_OS:%d " \
"numpy_enabled:%d " \
"OS_type:%s", \
zlib_enabled, libpng_enabled, libtiff_enabled, libjpeg_enabled, \
display_enabled, fftw3_enabled, libcurl_enabled, cimg_use_openmp, \
cimg_OS, numpy_enabled, OS_type)