24#if defined(HAVE_LIBGD) || defined(HAVE_GD_BUNDLED)
27#define PHP_GD_CHECK_OPEN_BASEDIR(filename, errormsg) \
28 if (!filename || php_check_open_basedir(filename)) { \
29 php_error_docref(NULL, E_WARNING, errormsg); \
33#define PHP_GDIMG_TYPE_GIF 1
34#define PHP_GDIMG_TYPE_PNG 2
35#define PHP_GDIMG_TYPE_JPG 3
36#define PHP_GDIMG_TYPE_WBM 4
37#define PHP_GDIMG_TYPE_XBM 5
38#define PHP_GDIMG_TYPE_XPM 6
39#define PHP_GDIMG_TYPE_GD 8
40#define PHP_GDIMG_TYPE_GD2 9
41#define PHP_GDIMG_TYPE_GD2PART 10
42#define PHP_GDIMG_TYPE_WEBP 11
43#define PHP_GDIMG_TYPE_BMP 12
44#define PHP_GDIMG_TYPE_TGA 13
45#define PHP_GDIMG_TYPE_AVIF 14
53#define PHP_IMG_WEBP 32
55#define PHP_IMG_TGA 128
56#define PHP_IMG_AVIF 256
65#define IMAGE_FILTER_NEGATE 0
66#define IMAGE_FILTER_GRAYSCALE 1
67#define IMAGE_FILTER_BRIGHTNESS 2
68#define IMAGE_FILTER_CONTRAST 3
69#define IMAGE_FILTER_COLORIZE 4
70#define IMAGE_FILTER_EDGEDETECT 5
71#define IMAGE_FILTER_EMBOSS 6
72#define IMAGE_FILTER_GAUSSIAN_BLUR 7
73#define IMAGE_FILTER_SELECTIVE_BLUR 8
74#define IMAGE_FILTER_MEAN_REMOVAL 9
75#define IMAGE_FILTER_SMOOTH 10
76#define IMAGE_FILTER_PIXELATE 11
77#define IMAGE_FILTER_SCATTER 12
78#define IMAGE_FILTER_MAX 12
79#define IMAGE_FILTER_MAX_ARGS 6
89# define PHP_GD_API __declspec(dllexport)
91# define PHP_GD_API __declspec(dllimport)
93#elif defined(__GNUC__) && __GNUC__ >= 4
94# define PHP_GD_API __attribute__ ((visibility("default")))
105PHPAPI extern const char php_sig_avif[4];
108#define phpext_gd_ptr &gd_module_entry
111#define PHP_GD_VERSION PHP_VERSION
123#define phpext_gd_ptr NULL
zend_module_entry gd_module_entry
PHP_GD_API gdImagePtr php_gd_libgdimageptr_from_zval_p(zval *zp)
PHPAPI const char php_sig_bmp[2]
PHPAPI const char php_sig_png[8]
PHPAPI const char php_sig_gif[3]
PHPAPI const char php_sig_riff[4]
PHPAPI const char php_sig_jpg[3]
PHPAPI const char php_sig_webp[4]
#define PHP_MSHUTDOWN_FUNCTION
#define PHP_MINIT_FUNCTION
#define PHP_MINFO_FUNCTION
#define PHP_RSHUTDOWN_FUNCTION
struct _zend_module_entry zend_module_entry