BGD_DECLARE(gdImagePtr) gdImageCreateFromJpegEx(FILE *inFile, int ignore_warning) { gdImagePtr im; gdIOCtx *in = gdNewFileCtx(inFile); if (in == NULL) return NULL; im = gdImageCreateFromJpegCtxEx(in, ignore_warning); in->gd_free(in); return im; }
gdImagePtr gdImageCreateFromJpegPtrEx (int size, void *data, int ignore_warning) { gdImagePtr im; gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); im = gdImageCreateFromJpegCtxEx(in, ignore_warning); in->gd_free(in); return im; }
gdImagePtr gdImageCreateFromJpegEx (FILE * inFile, int ignore_warning) { gdImagePtr im; gdIOCtx *in = gdNewFileCtx(inFile); im = gdImageCreateFromJpegCtxEx(in, ignore_warning); in->gd_free (in); return im; }
/* * Create a gd-format image from the JPEG-format INFILE. Returns the * image, or NULL upon error. */ BGD_DECLARE(gdImagePtr) gdImageCreateFromJpegCtx(gdIOCtx *infile) { return gdImageCreateFromJpegCtxEx(infile, 1); }
/* * Create a gd-format image from the JPEG-format INFILE. Returns the * image, or NULL upon error. */ gdImagePtr gdImageCreateFromJpegCtx (gdIOCtx * infile) { return gdImageCreateFromJpegCtxEx(infile, 1); }