Download src/php/php-src/ext/gd/libgd/gd_ss.c from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/libgd/gd_ss.c
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gd/libgd/gd_ss.c
-
curl -L -o gd_ss.c https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gd/libgd/gd_ss.c
1.1 kB
| /* Exported functions: */ | |
| extern void gdImagePngToSink (gdImagePtr im, gdSinkPtr out); | |
| extern gdImagePtr gdImageCreateFromPngSource (gdSourcePtr inSource); | |
| /* Use this for commenting out debug-print statements. */ | |
| /* Just use the first '#define' to allow all the prints... */ | |
| /*#define GD_SS_DBG(s) (s) */ | |
| void gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink) | |
| { | |
| gdIOCtx *out = gdNewSSCtx(NULL, outSink); | |
| gdImagePngCtx(im, out); | |
| out->gd_free(out); | |
| } | |
| gdImagePtr gdImageCreateFromPngSource (gdSourcePtr inSource) | |
| { | |
| gdIOCtx *in = gdNewSSCtx(inSource, NULL); | |
| gdImagePtr im; | |
| im = gdImageCreateFromPngCtx(in); | |
| in->gd_free(in); | |
| return im; | |
| } | |
| void gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink) | |
| { | |
| gd_error("PNG support is not available"); | |
| } | |
| gdImagePtr gdImageCreateFromPngSource (gdSourcePtr inSource) | |
| { | |
| gd_error("PNG support is not available"); | |
| return NULL; | |
| } | |