Lines Matching refs:im
16 gdImagePtr im; in gdImageCreateFromWebp() local
20 im = gdImageCreateFromWebpCtx(in); in gdImageCreateFromWebp()
23 return im; in gdImageCreateFromWebp()
29 gdImagePtr im; in gdImageCreateFromWebpPtr() local
33 im = gdImageCreateFromWebpCtx(in); in gdImageCreateFromWebpPtr()
35 return im; in gdImageCreateFromWebpPtr()
44 gdImagePtr im; in gdImageCreateFromWebpCtx() local
75 im = gdImageCreateTrueColor(width, height); in gdImageCreateFromWebpCtx()
76 if (!im) { in gdImageCreateFromWebpCtx()
84 gdImageDestroy(im); in gdImageCreateFromWebpCtx()
93 im->tpixels[y][x] = gdTrueColorAlpha(r, g, b, a); in gdImageCreateFromWebpCtx()
99 im->saveAlphaFlag = 1; in gdImageCreateFromWebpCtx()
100 return im; in gdImageCreateFromWebpCtx()
103 void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization) in gdImageWebpCtx() argument
111 if (im == NULL) { in gdImageWebpCtx()
115 if (!gdImageTrueColor(im)) { in gdImageWebpCtx()
124 if (overflow2(gdImageSX(im), 4)) { in gdImageWebpCtx()
128 if (overflow2(gdImageSX(im) * 4, gdImageSY(im))) { in gdImageWebpCtx()
132 argb = (uint8_t *)gdMalloc(gdImageSX(im) * 4 * gdImageSY(im)); in gdImageWebpCtx()
137 for (y = 0; y < gdImageSY(im); y++) { in gdImageWebpCtx()
138 for (x = 0; x < gdImageSX(im); x++) { in gdImageWebpCtx()
141 c = im->tpixels[y][x]; in gdImageWebpCtx()
154 …out_size = WebPEncodeRGBA(argb, gdImageSX(im), gdImageSY(im), gdImageSX(im) * 4, quantization, &ou… in gdImageWebpCtx()
166 void gdImageWebpEx (gdImagePtr im, FILE * outFile, int quantization) in gdImageWebpEx() argument
169 gdImageWebpCtx(im, out, quantization); in gdImageWebpEx()
173 void gdImageWebp (gdImagePtr im, FILE * outFile) in gdImageWebp() argument
176 gdImageWebpCtx(im, out, -1); in gdImageWebp()
180 void * gdImageWebpPtr (gdImagePtr im, int *size) in gdImageWebpPtr() argument
184 gdImageWebpCtx(im, out, -1); in gdImageWebpPtr()
191 void * gdImageWebpPtrEx (gdImagePtr im, int *size, int quantization) in gdImageWebpPtrEx() argument
195 gdImageWebpCtx(im, out, quantization); in gdImageWebpPtrEx()