Lines Matching refs:src
16 void gdImageSkewX (gdImagePtr dst, gdImagePtr src, int uRow, int iOffset, double dWeight, int clrBa… in gdImageSkewX() argument
25 if (src->trueColor) { in gdImageSkewX()
30 clrBackR = gdImageRed(src, clrBack); in gdImageSkewX()
31 clrBackG = gdImageGreen(src, clrBack); in gdImageSkewX()
32 clrBackB = gdImageBlue(src, clrBack); in gdImageSkewX()
33 clrBackA = gdImageAlpha(src, clrBack); in gdImageSkewX()
46 for (i = 0; i < src->sx; i++) { in gdImageSkewX()
47 pxlSrc = f (src,i,uRow); in gdImageSkewX()
49 r = (int)(gdImageRed(src,pxlSrc) * dWeight); in gdImageSkewX()
50 g = (int)(gdImageGreen(src,pxlSrc) * dWeight); in gdImageSkewX()
51 b = (int)(gdImageBlue(src,pxlSrc) * dWeight); in gdImageSkewX()
52 a = (int)(gdImageAlpha(src,pxlSrc) * dWeight); in gdImageSkewX()
54 pxlLeft = gdImageColorAllocateAlpha(src, r, g, b, a); in gdImageSkewX()
57 pxlLeft = gdImageColorClosestAlpha(src, r, g, b, a); in gdImageSkewX()
60 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewX()
61 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewX()
62 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewX()
63 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewX()
113 void gdImageSkewY (gdImagePtr dst, gdImagePtr src, int uCol, int iOffset, double dWeight, int clrBa… in gdImageSkewY() argument
120 if (src->trueColor) { in gdImageSkewY()
129 r = (int)((double)gdImageRed(src,clrBack) * dWeight); in gdImageSkewY()
130 g = (int)((double)gdImageGreen(src,clrBack) * dWeight); in gdImageSkewY()
131 b = (int)((double)gdImageBlue(src,clrBack) * dWeight); in gdImageSkewY()
132 a = (int)((double)gdImageAlpha(src,clrBack) * dWeight); in gdImageSkewY()
136 for (i = 0; i < src->sy; i++) { in gdImageSkewY()
137 pxlSrc = f (src, uCol, i); in gdImageSkewY()
140 r = (int)((double)gdImageRed(src,pxlSrc) * dWeight); in gdImageSkewY()
141 g = (int)((double)gdImageGreen(src,pxlSrc) * dWeight); in gdImageSkewY()
142 b = (int)((double)gdImageBlue(src,pxlSrc) * dWeight); in gdImageSkewY()
143 a = (int)((double)gdImageAlpha(src,pxlSrc) * dWeight); in gdImageSkewY()
145 pxlLeft = gdImageColorAllocateAlpha(src, r, g, b, a); in gdImageSkewY()
148 pxlLeft = gdImageColorClosestAlpha(src, r, g, b, a); in gdImageSkewY()
151 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewY()
152 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewY()
153 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewY()
154 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewY()
201 gdImagePtr gdImageRotate90 (gdImagePtr src, int ignoretransparent) in gdImageRotate90() argument
209 if (src->trueColor) { in gdImageRotate90()
214 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90()
220 dst->transparent = src->transparent; in gdImageRotate90()
222 gdImagePaletteCopy (dst, src); in gdImageRotate90()
224 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate90()
225 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate90()
226 c = f (src, uX, uY); in gdImageRotate90()
227 if (!src->trueColor) { in gdImageRotate90()
228 r = gdImageRed(src,c); in gdImageRotate90()
229 g = gdImageGreen(src,c); in gdImageRotate90()
230 b = gdImageBlue(src,c); in gdImageRotate90()
231 a = gdImageAlpha(src,c); in gdImageRotate90()
248 gdImagePtr gdImageRotate180 (gdImagePtr src, int ignoretransparent) in gdImageRotate180() argument
256 if (src->trueColor) { in gdImageRotate180()
261 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180()
267 dst->transparent = src->transparent; in gdImageRotate180()
269 gdImagePaletteCopy (dst, src); in gdImageRotate180()
271 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate180()
272 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate180()
273 c = f (src, uX, uY); in gdImageRotate180()
274 if (!src->trueColor) { in gdImageRotate180()
275 r = gdImageRed(src,c); in gdImageRotate180()
276 g = gdImageGreen(src,c); in gdImageRotate180()
277 b = gdImageBlue(src,c); in gdImageRotate180()
278 a = gdImageAlpha(src,c); in gdImageRotate180()
296 gdImagePtr gdImageRotate270 (gdImagePtr src, int ignoretransparent) in gdImageRotate270() argument
304 if (src->trueColor) { in gdImageRotate270()
309 dst = gdImageCreateTrueColor (src->sy, src->sx); in gdImageRotate270()
315 dst->transparent = src->transparent; in gdImageRotate270()
317 gdImagePaletteCopy (dst, src); in gdImageRotate270()
319 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate270()
320 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate270()
321 c = f (src, uX, uY); in gdImageRotate270()
322 if (!src->trueColor) { in gdImageRotate270()
323 r = gdImageRed(src,c); in gdImageRotate270()
324 g = gdImageGreen(src,c); in gdImageRotate270()
325 b = gdImageBlue(src,c); in gdImageRotate270()
326 a = gdImageAlpha(src,c); in gdImageRotate270()