/PHP-8.2/ext/gd/libgd/ |
H A D | gd_io.h | 10 typedef struct gdIOCtx { struct 11 int (*getC)(struct gdIOCtx*); argument 14 void (*putC)(struct gdIOCtx*, int); argument 18 long (*tell)(struct gdIOCtx*); argument 20 void (*gd_free)(struct gdIOCtx*); argument 23 } gdIOCtx; argument 25 typedef struct gdIOCtx *gdIOCtxPtr; 27 void Putword(int w, gdIOCtx *ctx); 28 void Putchar(int c, gdIOCtx *ctx); 35 int gdGetC(gdIOCtx *ctx); [all …]
|
H A D | gd_io_file.c | 33 gdIOCtx ctx; 37 gdIOCtx *newFileCtx (FILE * f); 41 static void filePutchar (gdIOCtx *, int); 42 static int fileGetchar (gdIOCtx * ctx); 45 static long fileTell (struct gdIOCtx *); 46 static void gdFreeFileCtx (gdIOCtx * ctx); 49 gdIOCtx * gdNewFileCtx (FILE * f) in gdNewFileCtx() 68 return (gdIOCtx *) ctx; in gdNewFileCtx() 71 static void gdFreeFileCtx (gdIOCtx * ctx) in gdFreeFileCtx() 105 static int fileGetchar (gdIOCtx * ctx) in fileGetchar() [all …]
|
H A D | gd_io_ss.c | 34 gdIOCtx ctx; 41 gdIOCtx *gdNewSSCtx (gdSourcePtr src, gdSinkPtr snk); 43 static int sourceGetbuf (gdIOCtx *, void *, int); 44 static int sourceGetchar (gdIOCtx * ctx); 46 static void sinkPutchar (gdIOCtx * ctx, int a); 47 static void gdFreeSsCtx (gdIOCtx * ctx); 50 gdIOCtx * gdNewSSCtx (gdSourcePtr src, gdSinkPtr snk) in gdNewSSCtx() 70 return (gdIOCtx *) ctx; in gdNewSSCtx() 73 static void gdFreeSsCtx (gdIOCtx * ctx) in gdFreeSsCtx() 102 static int sourceGetchar (gdIOCtx * ctx) in sourceGetchar() [all …]
|
H A D | gd_io.c | 34 void Putword (int w, gdIOCtx * ctx) in Putword() 43 void Putchar (int c, gdIOCtx * ctx) in Putchar() 48 void gdPutC (const unsigned char c, gdIOCtx * ctx) in gdPutC() 53 void gdPutWord (int w, gdIOCtx * ctx) in gdPutWord() 61 void gdPutInt (int w, gdIOCtx * ctx) in gdPutInt() 71 int gdGetC (gdIOCtx * ctx) in gdGetC() 76 int gdGetByte (int *result, gdIOCtx * ctx) in gdGetByte() 85 int gdGetWord (int *result, gdIOCtx * ctx) in gdGetWord() 118 int gdGetInt (int *result, gdIOCtx * ctx) in gdGetInt() 193 int gdSeek (gdIOCtx * ctx, const int pos) in gdSeek() [all …]
|
H A D | gd_wbmp.c | 71 gdPutC(i, (gdIOCtx *) out); in gd_putout() 82 return (gdGetC((gdIOCtx *) in)); in gd_getin() 85 static int _gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out); 96 void gdImageWBMPCtx (gdImagePtr image, int fg, gdIOCtx * out) in gdImageWBMPCtx() 102 static int _gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out) in _gdImageWBMPCtx() 141 gdImagePtr gdImageCreateFromWBMPCtx (gdIOCtx * infile) in gdImageCreateFromWBMPCtx() 186 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromWBMP() 196 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromWBMPPtr() 207 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageWBMP() 218 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageWBMPPtr()
|
H A D | gd_io_dp.c | 41 gdIOCtx ctx; 52 static void gdFreeDynamicCtx (struct gdIOCtx *ctx); 56 static void dynamicPutchar (struct gdIOCtx *, int a); 61 static int dynamicSeek (struct gdIOCtx *, const int); 62 static long dynamicTell (struct gdIOCtx *); 65 gdIOCtx * gdNewDynamicCtx (int initialSize, void *data) in gdNewDynamicCtx() 92 return (gdIOCtx *) ctx; in gdNewDynamicCtxEx() 95 void * gdDPExtractData (struct gdIOCtx *ctx, int *size) in gdDPExtractData() 124 static void gdFreeDynamicCtx (struct gdIOCtx *ctx) in gdFreeDynamicCtx() 140 static long dynamicTell (struct gdIOCtx *ctx) in dynamicTell() [all …]
|
H A D | gd_gd.c | 22 int _gdGetColors (gdIOCtx * in, gdImagePtr im, int gd2xFlag) in _gdGetColors() 97 static gdImagePtr _gdCreateFromFile (gdIOCtx * in, int *sx, int *sy) in _gdCreateFromFile() 145 gdIOCtx *in; in gdImageCreateFromGd() 158 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromGdPtr() 212 void _gdPutColors (gdImagePtr im, gdIOCtx * out) in _gdPutColors() 231 static void _gdPutHeader (gdImagePtr im, gdIOCtx * out) in _gdPutHeader() 247 static void _gdImageGd (gdImagePtr im, gdIOCtx * out) in _gdImageGd() 267 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageGd() 275 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageGdPtr()
|
H A D | gd_webp.c | 18 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromWebp() 31 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromWebpPtr() 39 gdImagePtr gdImageCreateFromWebpCtx (gdIOCtx * infile) in gdImageCreateFromWebpCtx() 104 void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quality) in gdImageWebpCtx() 175 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageWebpEx() 182 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageWebp() 190 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageWebpPtr() 201 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageWebpPtrEx()
|
H A D | gd_gif_in.c | 94 static int ReadColorMap (gdIOCtx *fd, int number, unsigned char (*buffer)[256]); 95 static int DoExtension (gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP); 96 static int GetDataBlock (gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP); 104 gdIOCtx *in = gdNewSSCtx(inSource, NULL); in gdImageCreateFromGifSource() 117 gdIOCtx *fd = gdNewFileCtx(fdFile); in gdImageCreateFromGif() 283 static int ReadColorMap(gdIOCtx *fd, int number, unsigned char (*buffer)[256]) /* {{{ */ in ReadColorMap() 304 DoExtension(gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP) in DoExtension() 333 GetDataBlock_(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) in GetDataBlock_() 352 GetDataBlock(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) in GetDataBlock() 376 GetCode_(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP) in GetCode_() [all …]
|
H A D | gd_tga.h | 48 int read_header_tga(gdIOCtx *ctx, oTga *tga); 49 int read_image_tga(gdIOCtx *ctx, oTga *tga);
|
H A D | gd_jpeg.c | 146 gdIOCtx *out = gdNewFileCtx (outFile); in gdImageJpeg() 154 gdIOCtx *out = gdNewDynamicCtx (2048, NULL); in gdImageJpegPtr() 165 void jpeg_gdIOCtx_dest (j_compress_ptr cinfo, gdIOCtx * outfile); 167 void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality) in gdImageJpegCtx() 299 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromJpegEx() 314 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromJpegPtrEx() 321 void jpeg_gdIOCtx_src (j_decompress_ptr cinfo, gdIOCtx * infile); 330 gdImagePtr gdImageCreateFromJpegCtx (gdIOCtx * infile) in gdImageCreateFromJpegCtx() 548 gdIOCtx *infile; /* source stream */ 717 void jpeg_gdIOCtx_src (j_decompress_ptr cinfo, gdIOCtx * infile) in jpeg_gdIOCtx_src() [all …]
|
H A D | gd_ss.c | 22 gdIOCtx *out = gdNewSSCtx(NULL, outSink); in gdImagePngToSink() 29 gdIOCtx *in = gdNewSSCtx(inSource, NULL); in gdImageCreateFromPngSource()
|
H A D | gd.h | 356 gdImagePtr gdImageCreateFromWBMPCtx(gdIOCtx *infile); 359 gdImagePtr gdImageCreateFromJpegCtx(gdIOCtx *infile); 369 gdImagePtr gdImageCreateFromAvifCtx(gdIOCtx *infile); 372 gdImagePtr gdImageCreateFromTgaCtx(gdIOCtx* ctx); 591 void gdImagePngCtx(gdImagePtr im, gdIOCtx *out); 593 void gdImageGifCtx(gdImagePtr im, gdIOCtx *out); 608 void gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out); 792 gdIOCtx* gdNewFileCtx(FILE*); 793 gdIOCtx* gdNewDynamicCtx(int, void*); 795 gdIOCtx* gdNewSSCtx(gdSourcePtr in, gdSinkPtr out); [all …]
|
H A D | gd_avif.c | 173 gdIOCtx *ctx = (gdIOCtx *) io->data; in readFromCtx() 230 static avifIO *createAvifIOFromCtx(gdIOCtx *ctx) { in createAvifIOFromCtx() 290 gdIOCtx *ctx = gdNewFileCtx(infile); in gdImageCreateFromAvif() 314 gdIOCtx *ctx = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromAvifPtr() 349 gdImagePtr gdImageCreateFromAvifCtx (gdIOCtx *ctx) in gdImageCreateFromAvifCtx() 491 void gdImageAvifCtx(gdImagePtr im, gdIOCtx *outfile, int quality, int speed) in gdImageAvifCtx() 622 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageAvifEx() 638 gdIOCtx *out = gdNewDynamicCtx(NEW_DYNAMIC_CTX_SIZE, NULL); in gdImageAvifPtrEx()
|
H A D | gd_tga.c | 33 gdIOCtx* in = gdNewFileCtx(fp); in gdImageCreateFromTga() 46 gdIOCtx *in = gdNewDynamicCtxEx (size, data, 0); in gdImageCreateFromTgaPtr() 62 gdImagePtr gdImageCreateFromTgaCtx(gdIOCtx* ctx) in gdImageCreateFromTgaCtx() 146 int read_header_tga(gdIOCtx *ctx, oTga *tga) in read_header_tga() 206 int read_image_tga( gdIOCtx *ctx, oTga *tga ) in read_image_tga()
|
H A D | gd_png.c | 84 check = gdGetBuf(data, length, (gdIOCtx *) png_get_io_ptr(png_ptr)); in gdPngReadData() 92 gdPutBuf (data, length, (gdIOCtx *) png_get_io_ptr(png_ptr)); in gdPngWriteData() 102 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromPng() 112 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromPngPtr() 121 gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile) in gdImageCreateFromPngCtx() 447 gdIOCtx *out = gdNewFileCtx(outFile); in gdImagePngEx() 454 gdIOCtx *out = gdNewFileCtx(outFile); in gdImagePng() 462 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImagePngPtr() 473 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImagePngPtrEx() 480 void gdImagePngCtx (gdImagePtr im, gdIOCtx * outfile) in gdImagePngCtx() [all …]
|
H A D | gd_gd2.c | 49 extern int _gdGetColors(gdIOCtx * in, gdImagePtr im, int gd2xFlag); 50 extern void _gdPutColors(gdImagePtr im, gdIOCtx * out); 247 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromGd2() 260 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromGd2Ptr() 415 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromGd2PartPtr() 425 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromGd2Part() 434 gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w, int h) in gdImageCreateFromGd2PartCtx() 644 static void _gd2PutHeader (gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy) in _gd2PutHeader() 664 static void _gdImageGd2 (gdImagePtr im, gdIOCtx * out, int cs, int fmt) in _gdImageGd2() 834 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageGd2() [all …]
|
H A D | gd_gif_out.c | 72 gdIOCtx * g_outfile; 88 static int gifPutWord(int w, gdIOCtx *out); 93 static void compress (int init_bits, gdIOCtx *outfile, gdImagePtr im, GifCtx *ctx); 106 gdIOCtx *out = gdNewDynamicCtx (2048, NULL); in gdImageGifPtr() 118 gdIOCtx *out = gdNewFileCtx (outFile); in gdImageGif() 780 static int gifPutWord(int w, gdIOCtx *out)
|
H A D | gd_xbm.c | 162 void gdCtxPrintf(gdIOCtx * out, const char *format, ...) in gdCtxPrintf() 177 void gdImageXbmCtx(gdImagePtr image, char* file_name, int fg, gdIOCtx * out) in gdImageXbmCtx()
|
H A D | gd_bmp.c | 45 static int gdBMPPutWord(gdIOCtx *out, int w) in gdBMPPutWord() 53 static int gdBMPPutInt(gdIOCtx *out, int w) in gdBMPPutInt() 69 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageBmpPtr() 82 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageBmp() 415 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromBmp() 428 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromBmpPtr() 524 static int bmp_read_header(gdIOCtx *infile, bmp_hdr_t *hdr) in bmp_read_header() 538 static int bmp_read_info(gdIOCtx *infile, bmp_info_t *info) in bmp_read_info()
|
/PHP-8.2/ext/gd/ |
H A D | gd.c | 126 static gdIOCtx *create_output_context(void); 1320 static int _php_ctx_getmbi(gdIOCtx *ctx) in _php_ctx_getmbi() 1373 gdIOCtx *io_ctx; in _php_image_type() 1392 gdIOCtx *io_ctx; in _php_image_create_from_string() 1540 gdIOCtx* io_ctx; in _php_image_create_from() 1832 gdIOCtx *ctx = NULL; in PHP_FUNCTION() 1921 gdIOCtx *ctx = NULL; in PHP_FUNCTION() 1978 gdIOCtx *ctx = NULL; in PHP_FUNCTION() 4074 gdIOCtx *ctx = ecalloc(1, sizeof(gdIOCtx)); in create_stream_context() 4089 gdIOCtx *ctx = ecalloc(1, sizeof(gdIOCtx)); in create_output_context() [all …]
|