| 923 | } |
| 924 | template<class CArray, class Array> |
| 925 | void flipy(CArray t1, int w1, int h1, Array t2, int& w2, int& h2) { |
| 926 | w2 = w1; h2 = h1; |
| 927 | for (int h = 0; h < h1; ++h) |
| 928 | for (int w = 0; w < w1; ++w) |
| 929 | t2[pos(h2-h-1, w, h2, w2)] = t1[pos(h, w, h1, w1)]; |
| 930 | } |
| 931 | template<class CArray, class Array> |
| 932 | void flipd1(CArray t1, int w1, int h1, Array t2, int& w2, int& h2) { |
| 933 | w2 = h1; h2 = w1; |