Lines Matching refs:im
3 void gdImageFlipVertical(gdImagePtr im) in gdImageFlipVertical() argument
7 if (im->trueColor) { in gdImageFlipVertical()
8 for (y = 0; y < im->sy / 2; y++) { in gdImageFlipVertical()
9 int *row_dst = im->tpixels[y]; in gdImageFlipVertical()
10 int *row_src = im->tpixels[im->sy - 1 - y]; in gdImageFlipVertical()
11 for (x = 0; x < im->sx; x++) { in gdImageFlipVertical()
14 row_dst[x] = im->tpixels[im->sy - 1 - y][x]; in gdImageFlipVertical()
20 for (y = 0; y < im->sy / 2; y++) { in gdImageFlipVertical()
21 for (x = 0; x < im->sx; x++) { in gdImageFlipVertical()
22 p = im->pixels[y][x]; in gdImageFlipVertical()
23 im->pixels[y][x] = im->pixels[im->sy - 1 - y][x]; in gdImageFlipVertical()
24 im->pixels[im->sy - 1 - y][x] = p; in gdImageFlipVertical()
31 void gdImageFlipHorizontal(gdImagePtr im) in gdImageFlipHorizontal() argument
36 if (im->trueColor) { in gdImageFlipHorizontal()
39 for (y = 0; y < im->sy; y++) { in gdImageFlipHorizontal()
40 px1 = im->tpixels[y]; in gdImageFlipHorizontal()
41 px2 = im->tpixels[y] + im->sx - 1; in gdImageFlipHorizontal()
42 for (x = 0; x < (im->sx >> 1); x++) { in gdImageFlipHorizontal()
53 for (y = 0; y < im->sy; y++) { in gdImageFlipHorizontal()
54 px1 = im->pixels[y]; in gdImageFlipHorizontal()
55 px2 = im->pixels[y] + im->sx - 1; in gdImageFlipHorizontal()
56 for (x = 0; x < (im->sx >> 1); x++) { in gdImageFlipHorizontal()
67 void gdImageFlipBoth(gdImagePtr im) in gdImageFlipBoth() argument
69 gdImageFlipVertical(im); in gdImageFlipBoth()
70 gdImageFlipHorizontal(im); in gdImageFlipBoth()