/PHP-7.1/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() 98 int gdGetInt (int *result, gdIOCtx * ctx) in gdGetInt() 134 int gdSeek (gdIOCtx * ctx, const int pos) in gdSeek() [all …]
|
H A D | gd_wbmp.c | 70 gdPutC(i, (gdIOCtx *) out); in gd_putout() 81 return (gdGetC((gdIOCtx *) in)); in gd_getin() 94 void gdImageWBMPCtx (gdImagePtr image, int fg, gdIOCtx * out) in gdImageWBMPCtx() 127 gdImagePtr gdImageCreateFromWBMPCtx (gdIOCtx * infile) in gdImageCreateFromWBMPCtx() 172 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromWBMP() 182 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromWBMPPtr() 193 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageWBMP() 204 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_webp.c | 16 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromWebp() 29 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromWebpPtr() 37 gdImagePtr gdImageCreateFromWebpCtx (gdIOCtx * infile) in gdImageCreateFromWebpCtx() 102 void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization) in gdImageWebpCtx() 167 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageWebpEx() 174 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageWebp() 182 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageWebpPtr() 193 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageWebpPtrEx()
|
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_gif_in.c | 93 static int ReadColorMap (gdIOCtx *fd, int number, unsigned char (*buffer)[256]); 94 static int DoExtension (gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP); 95 static int GetDataBlock (gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP); 103 gdIOCtx *in = gdNewSSCtx(inSource, NULL); in gdImageCreateFromGifSource() 116 gdIOCtx *fd = gdNewFileCtx(fdFile); in gdImageCreateFromGif() 282 static int ReadColorMap(gdIOCtx *fd, int number, unsigned char (*buffer)[256]) /* {{{ */ in ReadColorMap() 303 DoExtension(gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP) in DoExtension() 332 GetDataBlock_(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) in GetDataBlock_() 351 GetDataBlock(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) in GetDataBlock() 375 GetCode_(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP) in GetCode_() [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_jpeg.c | 146 gdIOCtx *out = gdNewFileCtx (outFile); in gdImageJpeg() 154 gdIOCtx *out = gdNewDynamicCtx (2048, NULL); in gdImageJpegPtr() 162 void jpeg_gdIOCtx_dest (j_compress_ptr cinfo, gdIOCtx * outfile); 164 void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality) in gdImageJpegCtx() 284 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromJpegEx() 299 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromJpegPtrEx() 306 void jpeg_gdIOCtx_src (j_decompress_ptr cinfo, gdIOCtx * infile); 315 gdImagePtr gdImageCreateFromJpegCtx (gdIOCtx * infile) in gdImageCreateFromJpegCtx() 535 gdIOCtx *infile; /* source stream */ 704 void jpeg_gdIOCtx_src (j_decompress_ptr cinfo, gdIOCtx * infile) in jpeg_gdIOCtx_src() [all …]
|
H A D | gd.h | 364 gdImagePtr gdImageCreateFromWBMPCtx(gdIOCtx *infile); 367 gdImagePtr gdImageCreateFromJpegCtx(gdIOCtx *infile); 587 void gdImagePngCtx(gdImagePtr im, gdIOCtx *out); 589 void gdImageGifCtx(gdImagePtr im, gdIOCtx *out); 599 void gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out); 611 void gdImageJpegCtx(gdImagePtr im, gdIOCtx *out, int quality); 750 gdIOCtx* gdNewFileCtx(FILE*); 751 gdIOCtx* gdNewDynamicCtx(int, void*); 752 gdIOCtx *gdNewDynamicCtxEx(int size, void *data, int freeFlag); 753 gdIOCtx* gdNewSSCtx(gdSourcePtr in, gdSinkPtr out); [all …]
|
H A D | gd_png.c | 78 check = gdGetBuf(data, length, (gdIOCtx *) png_get_io_ptr(png_ptr)); in gdPngReadData() 86 gdPutBuf (data, length, (gdIOCtx *) png_get_io_ptr(png_ptr)); in gdPngWriteData() 96 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromPng() 106 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromPngPtr() 115 gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile) in gdImageCreateFromPngCtx() 422 gdIOCtx *out = gdNewFileCtx(outFile); in gdImagePngEx() 429 gdIOCtx *out = gdNewFileCtx(outFile); in gdImagePng() 437 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImagePngPtr() 448 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImagePngPtrEx() 455 void gdImagePngCtx (gdImagePtr im, gdIOCtx * outfile) in gdImagePngCtx() [all …]
|
H A D | gd_gd2.c | 48 extern int _gdGetColors(gdIOCtx * in, gdImagePtr im, int gd2xFlag); 49 extern void _gdPutColors(gdImagePtr im, gdIOCtx * out); 246 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromGd2() 259 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromGd2Ptr() 414 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromGd2PartPtr() 424 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromGd2Part() 433 gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w, int h) in gdImageCreateFromGd2PartCtx() 643 static void _gd2PutHeader (gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy) in _gd2PutHeader() 663 static void _gdImageGd2 (gdImagePtr im, gdIOCtx * out, int cs, int fmt) in _gdImageGd2() 833 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); 103 gdIOCtx *out = gdNewDynamicCtx (2048, NULL); in gdImageGifPtr() 112 gdIOCtx *out = gdNewFileCtx (outFile); in gdImageGif() 766 static int gifPutWord(int w, gdIOCtx *out)
|
H A D | xbm.c | 163 void gdCtxPrintf(gdIOCtx * out, const char *format, ...) in gdCtxPrintf() 178 void gdImageXbmCtx(gdImagePtr image, char* file_name, int fg, gdIOCtx * out) in gdImageXbmCtx()
|
/PHP-7.1/ext/gd/ |
H A D | gd_ctx.c | 25 static void _php_image_output_putc(struct gdIOCtx *ctx, int c) /* {{{ */ in _php_image_output_putc() 35 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */ in _php_image_output_putbuf() 40 static void _php_image_output_ctxfree(struct gdIOCtx *ctx) /* {{{ */ in _php_image_output_ctxfree() 47 static void _php_image_stream_putc(struct gdIOCtx *ctx, int c) /* {{{ */ { in _php_image_stream_putc() 53 static int _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */ in _php_image_stream_putbuf() 59 static void _php_image_stream_ctxfree(struct gdIOCtx *ctx) /* {{{ */ in _php_image_stream_ctxfree() 69 static void _php_image_stream_ctxfreeandclose(struct gdIOCtx *ctx) /* {{{ */ in _php_image_stream_ctxfreeandclose() 92 gdIOCtx *ctx = NULL; in _php_image_output_ctx() 155 ctx = ecalloc(1, sizeof(gdIOCtx)); in _php_image_output_ctx() 168 ctx = ecalloc(1, sizeof(gdIOCtx)); in _php_image_output_ctx()
|
H A D | gd.c | 140 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold); 2168 static int _php_ctx_getmbi(gdIOCtx *ctx) in _php_ctx_getmbi() 2208 gdIOCtx *io_ctx; in _php_image_type() 2228 gdIOCtx *io_ctx; in _php_image_create_from_string() 2358 gdIOCtx* io_ctx; in _php_image_create_from() 3973 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold) in _php_image_bw_convert()
|