php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include "php.h"
#include <stdio.h>
#include "fopen_wrappers.h"
#include "ext/standard/fsock.h"
#include "libavifinfo/avifinfo.h"
#include "php_image.h"
Go to the source code of this file.
Data Structures | |
struct | gfxinfo |
struct | php_avif_stream |
Macros | |
#define | M_SOF0 0xC0 /* Start Of Frame N */ |
#define | M_SOF1 0xC1 /* N indicates which compression process */ |
#define | M_SOF2 0xC2 /* Only SOF0-SOF2 are now in common use */ |
#define | M_SOF3 0xC3 |
#define | M_SOF5 0xC5 /* NB: codes C4 and CC are NOT SOF markers */ |
#define | M_SOF6 0xC6 |
#define | M_SOF7 0xC7 |
#define | M_SOF9 0xC9 |
#define | M_SOF10 0xCA |
#define | M_SOF11 0xCB |
#define | M_SOF13 0xCD |
#define | M_SOF14 0xCE |
#define | M_SOF15 0xCF |
#define | M_SOI 0xD8 |
#define | M_EOI 0xD9 /* End Of Image (end of datastream) */ |
#define | M_SOS 0xDA /* Start Of Scan (begins compressed data) */ |
#define | M_APP0 0xe0 |
#define | M_APP1 0xe1 |
#define | M_APP2 0xe2 |
#define | M_APP3 0xe3 |
#define | M_APP4 0xe4 |
#define | M_APP5 0xe5 |
#define | M_APP6 0xe6 |
#define | M_APP7 0xe7 |
#define | M_APP8 0xe8 |
#define | M_APP9 0xe9 |
#define | M_APP10 0xea |
#define | M_APP11 0xeb |
#define | M_APP12 0xec |
#define | M_APP13 0xed |
#define | M_APP14 0xee |
#define | M_APP15 0xef |
#define | M_COM 0xFE /* COMment */ |
#define | M_PSEUDO 0xFFD8 /* pseudo marker for start of image(byte 0) */ |
#define | JPEG2000_MARKER_PREFIX 0xFF /* All marker codes start with this */ |
#define | JPEG2000_MARKER_SOC 0x4F /* Start of Codestream */ |
#define | JPEG2000_MARKER_SOT 0x90 /* Start of Tile part */ |
#define | JPEG2000_MARKER_SOD 0x93 /* Start of Data */ |
#define | JPEG2000_MARKER_EOC 0xD9 /* End of Codestream */ |
#define | JPEG2000_MARKER_SIZ 0x51 /* Image and tile size */ |
#define | JPEG2000_MARKER_COD 0x52 /* Coding style default */ |
#define | JPEG2000_MARKER_COC 0x53 /* Coding style component */ |
#define | JPEG2000_MARKER_RGN 0x5E /* Region of interest */ |
#define | JPEG2000_MARKER_QCD 0x5C /* Quantization default */ |
#define | JPEG2000_MARKER_QCC 0x5D /* Quantization component */ |
#define | JPEG2000_MARKER_POC 0x5F /* Progression order change */ |
#define | JPEG2000_MARKER_TLM 0x55 /* Tile-part lengths */ |
#define | JPEG2000_MARKER_PLM 0x57 /* Packet length, main header */ |
#define | JPEG2000_MARKER_PLT 0x58 /* Packet length, tile-part header */ |
#define | JPEG2000_MARKER_PPM 0x60 /* Packed packet headers, main header */ |
#define | JPEG2000_MARKER_PPT 0x61 /* Packed packet headers, tile part header */ |
#define | JPEG2000_MARKER_SOP 0x91 /* Start of packet */ |
#define | JPEG2000_MARKER_EPH 0x92 /* End of packet header */ |
#define | JPEG2000_MARKER_CRG 0x63 /* Component registration */ |
#define | JPEG2000_MARKER_COM 0x64 /* Comment */ |
#define | TAG_IMAGEWIDTH 0x0100 |
#define | TAG_IMAGEHEIGHT 0x0101 |
#define | TAG_COMP_IMAGEWIDTH 0xA002 |
#define | TAG_COMP_IMAGEHEIGHT 0xA003 |
#define | TAG_FMT_BYTE 1 |
#define | TAG_FMT_STRING 2 |
#define | TAG_FMT_USHORT 3 |
#define | TAG_FMT_ULONG 4 |
#define | TAG_FMT_URATIONAL 5 |
#define | TAG_FMT_SBYTE 6 |
#define | TAG_FMT_UNDEFINED 7 |
#define | TAG_FMT_SSHORT 8 |
#define | TAG_FMT_SLONG 9 |
#define | TAG_FMT_SRATIONAL 10 |
#define | TAG_FMT_SINGLE 11 |
#define | TAG_FMT_DOUBLE 12 |
#define | FROM_DATA 0 |
#define | FROM_PATH 1 |
Functions | |
bool | php_is_image_avif (php_stream *stream) |
PHPAPI char * | php_image_type_to_mime_type (int image_type) |
PHP_FUNCTION (image_type_to_mime_type) | |
PHP_FUNCTION (image_type_to_extension) | |
PHPAPI int | php_getimagetype (php_stream *stream, const char *input, char *filetype) |
PHP_FUNCTION (getimagesize) | |
PHP_FUNCTION (getimagesizefromstring) | |
Variables | |
PHPAPI const char | php_sig_gif [3] = {'G', 'I', 'F'} |
PHPAPI const char | php_sig_psd [4] = {'8', 'B', 'P', 'S'} |
PHPAPI const char | php_sig_bmp [2] = {'B', 'M'} |
PHPAPI const char | php_sig_swf [3] = {'F', 'W', 'S'} |
PHPAPI const char | php_sig_swc [3] = {'C', 'W', 'S'} |
PHPAPI const char | php_sig_jpg [3] = {(char) 0xff, (char) 0xd8, (char) 0xff} |
PHPAPI const char | php_sig_png [8] |
PHPAPI const char | php_sig_tif_ii [4] = {'I','I', (char)0x2A, (char)0x00} |
PHPAPI const char | php_sig_tif_mm [4] = {'M','M', (char)0x00, (char)0x2A} |
PHPAPI const char | php_sig_jpc [3] = {(char)0xff, (char)0x4f, (char)0xff} |
PHPAPI const char | php_sig_jp2 [12] |
PHPAPI const char | php_sig_iff [4] = {'F','O','R','M'} |
PHPAPI const char | php_sig_ico [4] = {(char)0x00, (char)0x00, (char)0x01, (char)0x00} |
PHPAPI const char | php_sig_riff [4] = {'R', 'I', 'F', 'F'} |
PHPAPI const char | php_sig_webp [4] = {'W', 'E', 'B', 'P'} |
PHPAPI const int | php_tiff_bytes_per_format [] = {0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8} |
#define JPEG2000_MARKER_COC 0x53 /* Coding style component */ |
#define JPEG2000_MARKER_CRG 0x63 /* Component registration */ |
#define JPEG2000_MARKER_POC 0x5F /* Progression order change */ |
#define JPEG2000_MARKER_QCC 0x5D /* Quantization component */ |
PHP_FUNCTION | ( | getimagesize | ) |
PHP_FUNCTION | ( | getimagesizefromstring | ) |
PHP_FUNCTION | ( | image_type_to_extension | ) |
PHP_FUNCTION | ( | image_type_to_mime_type | ) |
PHPAPI int php_getimagetype | ( | php_stream * | stream, |
const char * | input, | ||
char * | filetype ) |
PHPAPI char * php_image_type_to_mime_type | ( | int | image_type | ) |
bool php_is_image_avif | ( | php_stream * | stream | ) |
PHPAPI const char php_sig_ico[4] = {(char)0x00, (char)0x00, (char)0x01, (char)0x00} |
PHPAPI const char php_sig_jp2[12] |
PHPAPI const char php_sig_jpc[3] = {(char)0xff, (char)0x4f, (char)0xff} |
PHPAPI const char php_sig_jpg[3] = {(char) 0xff, (char) 0xd8, (char) 0xff} |
PHPAPI const char php_sig_png[8] |