Lines Matching refs:im
17 gdImagePtr im; in gdImageCreateFromWebp() local
21 im = gdImageCreateFromWebpCtx(in); in gdImageCreateFromWebp()
24 return im; in gdImageCreateFromWebp()
30 gdImagePtr im; in gdImageCreateFromWebpPtr() local
34 im = gdImageCreateFromWebpCtx(in); in gdImageCreateFromWebpPtr()
36 return im; in gdImageCreateFromWebpPtr()
45 gdImagePtr im; in gdImageCreateFromWebpCtx() local
76 im = gdImageCreateTrueColor(width, height); in gdImageCreateFromWebpCtx()
77 if (!im) { in gdImageCreateFromWebpCtx()
85 gdImageDestroy(im); in gdImageCreateFromWebpCtx()
94 im->tpixels[y][x] = gdTrueColorAlpha(r, g, b, a); in gdImageCreateFromWebpCtx()
100 im->saveAlphaFlag = 1; in gdImageCreateFromWebpCtx()
101 return im; in gdImageCreateFromWebpCtx()
104 void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quality) in gdImageWebpCtx() argument
112 if (im == NULL) { in gdImageWebpCtx()
116 if (!gdImageTrueColor(im)) { in gdImageWebpCtx()
125 if (overflow2(gdImageSX(im), 4)) { in gdImageWebpCtx()
129 if (overflow2(gdImageSX(im) * 4, gdImageSY(im))) { in gdImageWebpCtx()
133 argb = (uint8_t *)gdMalloc(gdImageSX(im) * 4 * gdImageSY(im)); in gdImageWebpCtx()
138 for (y = 0; y < gdImageSY(im); y++) { in gdImageWebpCtx()
139 for (x = 0; x < gdImageSX(im); x++) { in gdImageWebpCtx()
142 c = im->tpixels[y][x]; in gdImageWebpCtx()
157 out_size = WebPEncodeLosslessRGBA(argb, gdImageSX(im), gdImageSY(im), gdImageSX(im) * 4, &out); in gdImageWebpCtx()
159 out_size = WebPEncodeRGBA(argb, gdImageSX(im), gdImageSY(im), gdImageSX(im) * 4, quality, &out); in gdImageWebpCtx()
173 void gdImageWebpEx (gdImagePtr im, FILE * outFile, int quality) in gdImageWebpEx() argument
176 gdImageWebpCtx(im, out, quality); in gdImageWebpEx()
180 void gdImageWebp (gdImagePtr im, FILE * outFile) in gdImageWebp() argument
183 gdImageWebpCtx(im, out, -1); in gdImageWebp()
187 void * gdImageWebpPtr (gdImagePtr im, int *size) in gdImageWebpPtr() argument
191 gdImageWebpCtx(im, out, -1); in gdImageWebpPtr()
198 void * gdImageWebpPtrEx (gdImagePtr im, int *size, int quality) in gdImageWebpPtrEx() argument
202 gdImageWebpCtx(im, out, quality); in gdImageWebpPtrEx()