Lines Matching refs:src
20 void gdImageSkewX (gdImagePtr dst, gdImagePtr src, int uRow, int iOffset, double dWeight, int clrBa… in gdImageSkewX() argument
29 if (src->trueColor) { in gdImageSkewX()
34 clrBackR = gdImageRed(src, clrBack); in gdImageSkewX()
35 clrBackG = gdImageGreen(src, clrBack); in gdImageSkewX()
36 clrBackB = gdImageBlue(src, clrBack); in gdImageSkewX()
37 clrBackA = gdImageAlpha(src, clrBack); in gdImageSkewX()
50 for (i = 0; i < src->sx; i++) { in gdImageSkewX()
51 pxlSrc = f (src,i,uRow); in gdImageSkewX()
53 r = (int)(gdImageRed(src,pxlSrc) * dWeight); in gdImageSkewX()
54 g = (int)(gdImageGreen(src,pxlSrc) * dWeight); in gdImageSkewX()
55 b = (int)(gdImageBlue(src,pxlSrc) * dWeight); in gdImageSkewX()
56 a = (int)(gdImageAlpha(src,pxlSrc) * dWeight); in gdImageSkewX()
58 pxlLeft = gdImageColorAllocateAlpha(src, r, g, b, a); in gdImageSkewX()
61 pxlLeft = gdImageColorClosestAlpha(src, r, g, b, a); in gdImageSkewX()
64 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewX()
65 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewX()
66 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewX()
67 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewX()
117 void gdImageSkewY (gdImagePtr dst, gdImagePtr src, int uCol, int iOffset, double dWeight, int clrBa… in gdImageSkewY() argument
124 if (src->trueColor) { in gdImageSkewY()
133 r = (int)((double)gdImageRed(src,clrBack) * dWeight); in gdImageSkewY()
134 g = (int)((double)gdImageGreen(src,clrBack) * dWeight); in gdImageSkewY()
135 b = (int)((double)gdImageBlue(src,clrBack) * dWeight); in gdImageSkewY()
136 a = (int)((double)gdImageAlpha(src,clrBack) * dWeight); in gdImageSkewY()
140 for (i = 0; i < src->sy; i++) { in gdImageSkewY()
141 pxlSrc = f (src, uCol, i); in gdImageSkewY()
144 r = (int)((double)gdImageRed(src,pxlSrc) * dWeight); in gdImageSkewY()
145 g = (int)((double)gdImageGreen(src,pxlSrc) * dWeight); in gdImageSkewY()
146 b = (int)((double)gdImageBlue(src,pxlSrc) * dWeight); in gdImageSkewY()
147 a = (int)((double)gdImageAlpha(src,pxlSrc) * dWeight); in gdImageSkewY()
149 pxlLeft = gdImageColorAllocateAlpha(src, r, g, b, a); in gdImageSkewY()
152 pxlLeft = gdImageColorClosestAlpha(src, r, g, b, a); in gdImageSkewY()
155 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewY()
156 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewY()
157 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewY()
158 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewY()
205 gdImagePtr gdImageRotate90 (gdImagePtr src, int ignoretransparent) in gdImageRotate90() argument
213 if (src->trueColor) { in gdImageRotate90()
218 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90()
224 dst->transparent = src->transparent; in gdImageRotate90()
226 gdImagePaletteCopy (dst, src); in gdImageRotate90()
228 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate90()
229 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate90()
230 c = f (src, uX, uY); in gdImageRotate90()
231 if (!src->trueColor) { in gdImageRotate90()
232 r = gdImageRed(src,c); in gdImageRotate90()
233 g = gdImageGreen(src,c); in gdImageRotate90()
234 b = gdImageBlue(src,c); in gdImageRotate90()
235 a = gdImageAlpha(src,c); in gdImageRotate90()
252 gdImagePtr gdImageRotate180 (gdImagePtr src, int ignoretransparent) in gdImageRotate180() argument
260 if (src->trueColor) { in gdImageRotate180()
265 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180()
271 dst->transparent = src->transparent; in gdImageRotate180()
273 gdImagePaletteCopy (dst, src); in gdImageRotate180()
275 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate180()
276 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate180()
277 c = f (src, uX, uY); in gdImageRotate180()
278 if (!src->trueColor) { in gdImageRotate180()
279 r = gdImageRed(src,c); in gdImageRotate180()
280 g = gdImageGreen(src,c); in gdImageRotate180()
281 b = gdImageBlue(src,c); in gdImageRotate180()
282 a = gdImageAlpha(src,c); in gdImageRotate180()
300 gdImagePtr gdImageRotate270 (gdImagePtr src, int ignoretransparent) in gdImageRotate270() argument
308 if (src->trueColor) { in gdImageRotate270()
313 dst = gdImageCreateTrueColor (src->sy, src->sx); in gdImageRotate270()
319 dst->transparent = src->transparent; in gdImageRotate270()
321 gdImagePaletteCopy (dst, src); in gdImageRotate270()
323 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate270()
324 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate270()
325 c = f (src, uX, uY); in gdImageRotate270()
326 if (!src->trueColor) { in gdImageRotate270()
327 r = gdImageRed(src,c); in gdImageRotate270()
328 g = gdImageGreen(src,c); in gdImageRotate270()
329 b = gdImageBlue(src,c); in gdImageRotate270()
330 a = gdImageAlpha(src,c); in gdImageRotate270()