1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef PHP_IMAGE_H
- #define PHP_IMAGE_H
- PHP_FUNCTION(getimagesize);
- PHP_FUNCTION(getimagesizefromstring);
- PHP_FUNCTION(image_type_to_mime_type);
- PHP_FUNCTION(image_type_to_extension);
- typedef enum
- { IMAGE_FILETYPE_UNKNOWN=0,
- IMAGE_FILETYPE_GIF=1,
- IMAGE_FILETYPE_JPEG,
- IMAGE_FILETYPE_PNG,
- IMAGE_FILETYPE_SWF,
- IMAGE_FILETYPE_PSD,
- IMAGE_FILETYPE_BMP,
- IMAGE_FILETYPE_TIFF_II,
- IMAGE_FILETYPE_TIFF_MM,
- IMAGE_FILETYPE_JPC,
- IMAGE_FILETYPE_JP2,
- IMAGE_FILETYPE_JPX,
- IMAGE_FILETYPE_JB2,
- IMAGE_FILETYPE_SWC,
- IMAGE_FILETYPE_IFF,
- IMAGE_FILETYPE_WBMP,
-
- IMAGE_FILETYPE_XBM,
- IMAGE_FILETYPE_ICO,
- IMAGE_FILETYPE_WEBP,
- IMAGE_FILETYPE_COUNT
- } image_filetype;
- PHP_MINIT_FUNCTION(imagetypes);
- PHPAPI int php_getimagetype(php_stream *stream, char *filetype);
- PHPAPI char * php_image_type_to_mime_type(int image_type);
- #endif
|