Lines Matching refs:im
15 gdImagePtr im; in gdImageCreateFromWebp() local
19 im = gdImageCreateFromWebpCtx(in); in gdImageCreateFromWebp()
22 return im; in gdImageCreateFromWebp()
28 gdImagePtr im; in gdImageCreateFromWebpPtr() local
32 im = gdImageCreateFromWebpCtx(in); in gdImageCreateFromWebpPtr()
34 return im; in gdImageCreateFromWebpPtr()
43 gdImagePtr im; in gdImageCreateFromWebpCtx() local
74 im = gdImageCreateTrueColor(width, height); in gdImageCreateFromWebpCtx()
75 if (!im) { in gdImageCreateFromWebpCtx()
83 gdImageDestroy(im); in gdImageCreateFromWebpCtx()
92 im->tpixels[y][x] = gdTrueColorAlpha(r, g, b, a); in gdImageCreateFromWebpCtx()
98 im->saveAlphaFlag = 1; in gdImageCreateFromWebpCtx()
99 return im; in gdImageCreateFromWebpCtx()
102 void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization) in gdImageWebpCtx() argument
110 if (im == NULL) { in gdImageWebpCtx()
114 if (!gdImageTrueColor(im)) { in gdImageWebpCtx()
123 if (overflow2(gdImageSX(im), 4)) { in gdImageWebpCtx()
127 if (overflow2(gdImageSX(im) * 4, gdImageSY(im))) { in gdImageWebpCtx()
131 argb = (uint8_t *)gdMalloc(gdImageSX(im) * 4 * gdImageSY(im)); in gdImageWebpCtx()
136 for (y = 0; y < gdImageSY(im); y++) { in gdImageWebpCtx()
137 for (x = 0; x < gdImageSX(im); x++) { in gdImageWebpCtx()
140 c = im->tpixels[y][x]; in gdImageWebpCtx()
153 …out_size = WebPEncodeRGBA(argb, gdImageSX(im), gdImageSY(im), gdImageSX(im) * 4, quantization, &ou… in gdImageWebpCtx()
165 void gdImageWebpEx (gdImagePtr im, FILE * outFile, int quantization) in gdImageWebpEx() argument
168 gdImageWebpCtx(im, out, quantization); in gdImageWebpEx()
172 void gdImageWebp (gdImagePtr im, FILE * outFile) in gdImageWebp() argument
175 gdImageWebpCtx(im, out, -1); in gdImageWebp()
179 void * gdImageWebpPtr (gdImagePtr im, int *size) in gdImageWebpPtr() argument
183 gdImageWebpCtx(im, out, -1); in gdImageWebpPtr()
190 void * gdImageWebpPtrEx (gdImagePtr im, int *size, int quantization) in gdImageWebpPtrEx() argument
194 gdImageWebpCtx(im, out, quantization); in gdImageWebpPtrEx()