Lines Matching refs:dst

188         static void sortOrdered(int[] src1, int[] src2, int[] dst) {
204 dst[count++] = v1;
208 dst[count++] = src2[i2++];
210 dst[0] = count;
220 dst[count++] = v2;
224 dst[count++] = src1[i1++];
226 dst[0] = count;
231 dst[count++] = v1;
252 static void intersectRegions(int[] reg1, int[] reg2, MultiRectArea.RectCash dst, int height1, int height2) {
287 dst.addRectCashed(x21, top, x12, bottom);
290 dst.addRectCashed(x21, top, x22, bottom);
299 dst.addRectCashed(x11, top, x22, bottom);
302 dst.addRectCashed(x11, top, x12, bottom);
358 MultiRectArea.RectCash dst = new MultiRectArea.RectCash();
363 dst.setRect(simpleIntersect(src1, src2), false);
369 intersectRegions(src1.rect, src2.rect, dst, bounds1.height + 2, bounds2.height + 2);
373 return dst;
385 MultiRectArea.RectCash dst;
394 dst.addRectCashed(x1, top, x2, bottom);
398 dst.addRectCashed(rx1, top, rx2, bottom);
409 dst.addRectCashed(x1, d.active[index + 1], x2, top - 1);
423 dst.addRectCashed(x1, d.active[index + 1], x2, top - 1);
426 dst.addRectCashed(x1, top, x2, bottom);
482 dst.addRectCashed(rx1, top, rx2, bottom);
495 dst.addRectCashed(rx1, top, rx2, bottom);
516 static void simpleUnion(MultiRectArea src1, MultiRectArea src2, MultiRectArea dst) {
518 simpleUnion(src2, src1, dst);
520 Subtraction.simpleSubtract(src1, src2, dst);
521 int pos = dst.rect[0];
523 dst.rect = checkBufSize(dst.rect, size);
524 System.arraycopy(src2.rect,1, dst.rect, pos, size);
525 dst.resort();
539 dst = new MultiRectArea.RectCash();
544 simpleUnion(src1, src2, dst);
552 dst.setRect(addVerRegion(src1.rect, src2.rect), false);
555 dst.setRect(addVerRegion(src2.rect, src1.rect), false);
558 dst.setRect(addHorRegion(src1.rect, src2.rect), false);
560 dst.setRect(addHorRegion(src2.rect, src1.rect), false);
567 return dst;
572 int[] dst = new int[length];
573 dst[0] = length;
574 System.arraycopy(top, 1, dst, 1, top[0] - 1);
575 System.arraycopy(bottom, 1, dst, top[0], bottom[0] - 1);
576 return dst;
582 int[] dst = new int[count1 + count2 + 1];
594 System.arraycopy(right, index2, dst, count, count2 - index2);
599 System.arraycopy(left, index1, dst, count, count1 - index1);
609 System.arraycopy(left, pos1, dst, count, index1 - pos1);
619 System.arraycopy(right, pos2, dst, count, index2 - pos2);
634 System.arraycopy(left, pos1, dst, count, index1 - pos1);
636 System.arraycopy(right, pos2, dst, count, index2 - pos2);
640 dst[0] = count;
641 return dst;
651 static void subtractRegions(int[] reg1, int[] reg2, MultiRectArea.RectCash dst, int height1, int height2) {
700 dst.addRectCashed(rx1, top, rx2, bottom);
702 dst.addRectCashed(d1.active[j], top, d1.active[j + 2], bottom);
716 dst.addRectCashed(rx1, top, x1 - 1, bottom);
721 dst.addRectCashed(rx1, top, x1 - 1, bottom);
728 dst.addRectCashed(rx1, top, rx2, bottom);
756 static void subtractRect(int x11, int y11, int x12, int y12, int[] rect, int index, MultiRectArea dst) {
767 subtractRect(x11, y11, x12, y21 - 1, rect, i + 4, dst);
773 subtractRect(x11, y22 + 1, x12, y12, rect, i + 4, dst);
779 subtractRect(x11, top, x21 - 1, bottom, rect, i + 4, dst);
782 subtractRect(x22 + 1, top, x12, bottom, rect, i + 4, dst);
787 dst.addRect(x11, y11, x12, y12);
790 static void simpleSubtract(MultiRectArea src1, MultiRectArea src2, MultiRectArea dst) {
799 dst);
801 dst.resort();
814 MultiRectArea.RectCash dst = new MultiRectArea.RectCash();
819 simpleSubtract(src1, src2, dst);
826 subtractRegions(src1.rect, src2.rect, dst, bounds1.height + 2, bounds2.height + 2);
828 dst.setRect(src1.rect, true);
832 return dst;