Searched refs:gdIOCtx (Results 1 - 18 of 18) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_gd.c22 int _gdGetColors (gdIOCtx * in, gdImagePtr im, int gd2xFlag)
97 static gdImagePtr _gdCreateFromFile (gdIOCtx * in, int *sx, int *sy)
145 gdIOCtx *in;
158 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0);
212 void _gdPutColors (gdImagePtr im, gdIOCtx * out)
231 static void _gdPutHeader (gdImagePtr im, gdIOCtx * out)
247 static void _gdImageGd (gdImagePtr im, gdIOCtx * out)
267 gdIOCtx *out = gdNewFileCtx(outFile);
275 gdIOCtx *out = gdNewDynamicCtx(2048, NULL);
H A Dgd_gd2.c48 extern int _gdGetColors(gdIOCtx * in, gdImagePtr im, int gd2xFlag);
49 extern void _gdPutColors(gdImagePtr im, gdIOCtx * out);
200 static int _gd2ReadChunk (int offset, char *compBuf, int compSize, char *chunkBuf, uLongf * chunkLen, gdIOCtx * in)
229 gdIOCtx *in = gdNewFileCtx(inFile);
242 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0);
393 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0);
403 gdIOCtx *in = gdNewFileCtx(inFile);
412 gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w, int h)
622 static void _gd2PutHeader (gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy)
642 static void _gdImageGd2 (gdImagePtr im, gdIOCtx * ou
[all...]
H A Dgd_gif_in.c91 static int ReadColorMap (gdIOCtx *fd, int number, unsigned char (*buffer)[256]);
92 static int DoExtension (gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP);
93 static int GetDataBlock (gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP);
94 static int GetCode (gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP);
95 static int LWZReadByte (gdIOCtx *fd, LZW_STATIC_DATA *sd, char flag, int input_code_size, int *ZeroDataBlockP);
97 static void ReadImage (gdImagePtr im, gdIOCtx *fd, int len, int height, unsigned char (*cmap)[256], int interlace, int *ZeroDataBlockP); /*1.4//, int ignore); */
101 gdIOCtx *in = gdNewSSCtx(inSource, NULL);
114 gdIOCtx *fd = gdNewFileCtx(fdFile);
277 static int ReadColorMap(gdIOCtx *fd, int number, unsigned char (*buffer)[256]) /* {{{ */
298 DoExtension(gdIOCtx *f
[all...]
H A Dgd_gif_out.c72 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);
112 gdIOCtx *out = gdNewFileCtx (outFile);
752 static int gifPutWord(int w, gdIOCtx *out)
H A Dgd_io.c34 void Putword (int w, gdIOCtx * ctx)
43 void Putchar (int c, gdIOCtx * ctx)
48 void gdPutC (const unsigned char c, gdIOCtx * ctx)
53 void gdPutWord (int w, gdIOCtx * ctx)
61 void gdPutInt (int w, gdIOCtx * ctx)
71 int gdGetC (gdIOCtx * ctx)
76 int gdGetByte (int *result, gdIOCtx * ctx)
85 int gdGetWord (int *result, gdIOCtx * ctx)
98 int gdGetInt (int *result, gdIOCtx * ctx)
122 int gdPutBuf (const void *buf, int size, gdIOCtx * ct
[all...]
H A Dgd_io.h10 typedef struct gdIOCtx { struct
11 int (*getC)(struct gdIOCtx*);
12 int (*getBuf)(struct gdIOCtx*, void*, int);
14 void (*putC)(struct gdIOCtx*, int);
15 int (*putBuf)(struct gdIOCtx*, const void*, int);
17 int (*seek)(struct gdIOCtx*, const int);
18 long (*tell)(struct gdIOCtx*);
20 void (*gd_free)(struct gdIOCtx*);
23 } gdIOCtx; typedef in typeref:struct:gdIOCtx
25 typedef struct gdIOCtx *gdIOCtxPt
[all...]
H A Dgd_io_dp.c41 gdIOCtx ctx;
52 static void gdFreeDynamicCtx (struct gdIOCtx *ctx);
55 static int dynamicPutbuf (struct gdIOCtx *, const void *, int);
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)
70 gdIOCtx * gdNewDynamicCtxEx (int initialSize, void *data, int freeOKFlag)
92 return (gdIOCtx *) ctx;
95 void * gdDPExtractData (struct gdIOCtx *ct
[all...]
H A Dgd_io_file.c33 gdIOCtx ctx;
37 gdIOCtx *newFileCtx (FILE * f);
39 static int fileGetbuf (gdIOCtx *, void *, int);
40 static int filePutbuf (gdIOCtx *, const void *, int);
41 static void filePutchar (gdIOCtx *, int);
42 static int fileGetchar (gdIOCtx * ctx);
44 static int fileSeek (struct gdIOCtx *, const int);
45 static long fileTell (struct gdIOCtx *);
46 static void gdFreeFileCtx (gdIOCtx * ctx);
49 gdIOCtx * gdNewFileCt
[all...]
H A Dgd_io_ss.c34 gdIOCtx ctx;
41 gdIOCtx *gdNewSSCtx (gdSourcePtr src, gdSinkPtr snk);
43 static int sourceGetbuf (gdIOCtx *, void *, int);
44 static int sourceGetchar (gdIOCtx * ctx);
45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
46 static void sinkPutchar (gdIOCtx * ctx, int a);
47 static void gdFreeSsCtx (gdIOCtx * ctx);
50 gdIOCtx * gdNewSSCtx (gdSourcePtr src, gdSinkPtr snk)
70 return (gdIOCtx *) ctx;
73 static void gdFreeSsCtx (gdIOCtx * ct
[all...]
H A Dgd_ss.c22 gdIOCtx *out = gdNewSSCtx(NULL, outSink);
29 gdIOCtx *in = gdNewSSCtx(inSource, NULL);
H A Dgd_wbmp.c70 gdPutC(i, (gdIOCtx *) out);
81 return (gdGetC((gdIOCtx *) in));
94 void gdImageWBMPCtx (gdImagePtr image, int fg, gdIOCtx * out)
125 ** Create a gdImage from a WBMP file input from an gdIOCtx
127 gdImagePtr gdImageCreateFromWBMPCtx (gdIOCtx * infile)
172 gdIOCtx *in = gdNewFileCtx(inFile);
182 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0);
193 gdIOCtx *out = gdNewFileCtx(outFile);
204 gdIOCtx *out = gdNewDynamicCtx(2048, NULL);
H A Dgd_png.c78 check = gdGetBuf(data, length, (gdIOCtx *) png_get_io_ptr(png_ptr));
86 gdPutBuf (data, length, (gdIOCtx *) png_get_io_ptr(png_ptr));
96 gdIOCtx *in = gdNewFileCtx(inFile);
106 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0);
115 gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
422 gdIOCtx *out = gdNewFileCtx(outFile);
429 gdIOCtx *out = gdNewFileCtx(outFile);
437 gdIOCtx *out = gdNewDynamicCtx(2048, NULL);
448 gdIOCtx *out = gdNewDynamicCtx(2048, NULL);
455 void gdImagePngCtx (gdImagePtr im, gdIOCtx * outfil
[all...]
H A Dgd_webp.c30 gdIOCtx *in = gdNewFileCtx(inFile);
63 gdImagePtr gdImageCreateFromWebpCtx (gdIOCtx * infile)
110 gdIOCtx *out = gdNewFileCtx(outFile);
117 gdIOCtx *out = gdNewFileCtx(outFile);
125 gdIOCtx *out = gdNewDynamicCtx(2048, NULL);
136 gdIOCtx *out = gdNewDynamicCtx(2048, NULL);
166 void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization)
H A Dgd_jpeg.c146 gdIOCtx *out = gdNewFileCtx (outFile);
154 gdIOCtx *out = gdNewDynamicCtx (2048, NULL);
162 void jpeg_gdIOCtx_dest (j_compress_ptr cinfo, gdIOCtx * outfile);
164 void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality)
284 gdIOCtx *in = gdNewFileCtx(inFile);
299 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0);
306 void jpeg_gdIOCtx_src (j_decompress_ptr cinfo, gdIOCtx * infile);
315 gdImagePtr gdImageCreateFromJpegCtx (gdIOCtx * infile)
320 gdImagePtr gdImageCreateFromJpegCtxEx (gdIOCtx * infile, int ignore_warning)
511 * gdIOCtx JPE
[all...]
H A Dxbm.c159 void gdCtxPrintf(gdIOCtx * out, const char *format, ...)
174 void gdImageXbmCtx(gdImagePtr image, char* file_name, int fg, gdIOCtx * out)
H A Dgd.h364 gdImagePtr gdImageCreateFromWBMPCtx(gdIOCtx *infile);
367 gdImagePtr gdImageCreateFromJpegCtx(gdIOCtx *infile);
368 gdImagePtr gdImageCreateFromJpegCtxEx(gdIOCtx *infile, int ignore_warning);
403 void gdImageXbmCtx(gdImagePtr image, char* file_name, int fg, gdIOCtx * out);
587 void gdImagePngCtx(gdImagePtr im, gdIOCtx *out);
589 void gdImageGifCtx(gdImagePtr im, gdIOCtx *out);
596 void gdImagePngCtxEx(gdImagePtr im, gdIOCtx * out, int level, int basefilter);
599 void gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtx *out);
611 void gdImageJpegCtx(gdImagePtr im, gdIOCtx *out, int quality);
613 void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfil
[all...]
/PHP_TRUNK/ext/gd/
H A Dgd_ctx.c25 static void _php_image_output_putc(struct gdIOCtx *ctx, int c) /* {{{ */
36 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */
42 static void _php_image_output_ctxfree(struct gdIOCtx *ctx) /* {{{ */
49 static void _php_image_stream_putc(struct gdIOCtx *ctx, int c) /* {{{ */ {
56 static int _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */
63 static void _php_image_stream_ctxfree(struct gdIOCtx *ctx) /* {{{ */
87 gdIOCtx *ctx = NULL;
141 ctx = emalloc(sizeof(gdIOCtx));
154 ctx = emalloc(sizeof(gdIOCtx));
H A Dgd.c143 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold);
2186 static int _php_ctx_getmbi(gdIOCtx *ctx)
2226 gdIOCtx *io_ctx;
2246 gdIOCtx *io_ctx;
2376 gdIOCtx* io_ctx;
4352 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold)

Completed in 23 milliseconds