/PHP-5.4/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; typedef 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_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() 279 static int ReadColorMap(gdIOCtx *fd, int number, unsigned char (*buffer)[256]) /* {{{ */ in ReadColorMap() 300 DoExtension(gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP) in DoExtension() 329 GetDataBlock_(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) in GetDataBlock_() 348 GetDataBlock(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) in GetDataBlock() 372 GetCode_(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP) in GetCode_() [all …]
|
H A D | gd_webp.c | 30 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromWebp() 61 gdImagePtr gdImageCreateFromWebpCtx (gdIOCtx * infile) in gdImageCreateFromWebpCtx() 99 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageWebpEx() 106 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageWebp() 114 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageWebpPtr() 125 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageWebpPtrEx() 155 void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization) in gdImageWebpCtx()
|
H A D | gd.h | 249 gdImagePtr gdImageCreateFromWBMPCtx(gdIOCtx *infile); 251 gdImagePtr gdImageCreateFromJpegCtx(gdIOCtx *infile, int ignore_warning); 467 void gdImagePngCtx(gdImagePtr im, gdIOCtx *out); 469 void gdImageGifCtx(gdImagePtr im, gdIOCtx *out); 479 void gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out); 491 void gdImageJpegCtx(gdImagePtr im, gdIOCtx *out, int quality); 631 gdIOCtx* gdNewFileCtx(FILE*); 632 gdIOCtx* gdNewDynamicCtx(int, void*); 633 gdIOCtx *gdNewDynamicCtxEx(int size, void *data, int freeFlag); 634 gdIOCtx* gdNewSSCtx(gdSourcePtr in, gdSinkPtr out); [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 | 142 gdIOCtx *out = gdNewFileCtx (outFile); in gdImageJpeg() 150 gdIOCtx *out = gdNewDynamicCtx (2048, NULL); in gdImageJpegPtr() 158 void jpeg_gdIOCtx_dest (j_compress_ptr cinfo, gdIOCtx * outfile); 160 void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality) in gdImageJpegCtx() 275 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromJpeg() 285 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromJpegPtr() 292 void jpeg_gdIOCtx_src (j_decompress_ptr cinfo, gdIOCtx * infile); 516 gdIOCtx *infile; /* source stream */ 685 void jpeg_gdIOCtx_src (j_decompress_ptr cinfo, gdIOCtx * infile) in jpeg_gdIOCtx_src() 720 gdIOCtx *outfile; /* target stream */ [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() 420 gdIOCtx *out = gdNewFileCtx(outFile); in gdImagePngEx() 427 gdIOCtx *out = gdNewFileCtx(outFile); in gdImagePng() 435 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImagePngPtr() 446 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImagePngPtrEx() 453 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); 229 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromGd2() 242 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromGd2Ptr() 393 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromGd2PartPtr() 403 gdIOCtx *in = gdNewFileCtx(inFile); in gdImageCreateFromGd2Part() 412 gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w, int h) in gdImageCreateFromGd2PartCtx() 622 static void _gd2PutHeader (gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy) in _gd2PutHeader() 642 static void _gdImageGd2 (gdImagePtr im, gdIOCtx * out, int cs, int fmt) in _gdImageGd2() 812 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() 752 static int gifPutWord(int w, gdIOCtx *out)
|
H A D | xbm.c | 159 void gdCtxPrintf(gdIOCtx * out, const char *format, ...) in gdCtxPrintf() 174 void gdImageXbmCtx(gdImagePtr image, char* file_name, int fg, gdIOCtx * out) in gdImageXbmCtx()
|
/PHP-5.4/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() 36 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) in _php_image_output_putbuf() 42 static void _php_image_output_ctxfree(struct gdIOCtx *ctx) in _php_image_output_ctxfree() 49 static void _php_image_stream_putc(struct gdIOCtx *ctx, int c) { in _php_image_stream_putc() 56 static int _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) in _php_image_stream_putbuf() 63 static void _php_image_stream_ctxfree(struct gdIOCtx *ctx) in _php_image_stream_ctxfree() 87 gdIOCtx *ctx = NULL; in _php_image_output_ctx() 141 ctx = emalloc(sizeof(gdIOCtx)); in _php_image_output_ctx() 154 ctx = emalloc(sizeof(gdIOCtx)); in _php_image_output_ctx()
|
H A D | config.m4 | 420 gdIOCtx *ctx; 421 ctx = malloc(sizeof(gdIOCtx));
|
H A D | gd.c | 112 typedef FILE gdIOCtx; typedef 168 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold); 2283 gdIOCtx *io_ctx; in _php_image_type() 2314 gdIOCtx *io_ctx; in _php_image_create_from_string() 2488 gdIOCtx* io_ctx; in _php_image_create_from() 4528 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold) in _php_image_bw_convert()
|