Lines Matching refs:ctx
23 #define CTX_PUTC(c,ctx) ctx->putC(ctx, c) argument
25 static void _php_image_output_putc(struct gdIOCtx *ctx, int c) in _php_image_output_putc() argument
36 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) in _php_image_output_putbuf() argument
42 static void _php_image_output_ctxfree(struct gdIOCtx *ctx) in _php_image_output_ctxfree() argument
44 if(ctx) { in _php_image_output_ctxfree()
45 efree(ctx); in _php_image_output_ctxfree()
61 gdIOCtx *ctx; in _php_image_output_ctx() local
105 ctx = gdNewFileCtx(fp); in _php_image_output_ctx()
107 ctx = emalloc(sizeof(gdIOCtx)); in _php_image_output_ctx()
108 ctx->putC = _php_image_output_putc; in _php_image_output_ctx()
109 ctx->putBuf = _php_image_output_putbuf; in _php_image_output_ctx()
111 ctx->gd_free = _php_image_output_ctxfree; in _php_image_output_ctx()
113 ctx->free = _php_image_output_ctxfree; in _php_image_output_ctx()
129 (*func_p)(im, ctx, q); in _php_image_output_ctx()
132 (*func_p)(im, ctx, q, f); in _php_image_output_ctx()
143 (*func_p)(im, file, q, ctx); in _php_image_output_ctx()
145 (*func_p)(im, q, ctx); in _php_image_output_ctx()
149 (*func_p)(im, ctx); in _php_image_output_ctx()
154 ctx->gd_free(ctx); in _php_image_output_ctx()
156 ctx->free(ctx); in _php_image_output_ctx()