Home | History | Annotate | Download | only in pixman

Lines Matching defs:numRects

72 #define PIXREGION_NIL(reg) ((reg)->data && !(reg)->data->numRects)
75 #define PIXREGION_NUMRECTS(reg) ((reg)->data ? (reg)->data->numRects : 1)
82 #define PIXREGION_TOP(reg) PIXREGION_BOX (reg, (reg)->data->numRects)
83 #define PIXREGION_END(reg) PIXREGION_BOX (reg, (reg)->data->numRects - 1)
222 (((region)->data->numRects + (n)) > (region)->data->size)) \
233 (((region)->data->numRects + (n)) > (region)->data->size)) \
256 ((region)->data->numRects == (region)->data->size)) \
263 region->data->numRects++; \
264 critical_if_fail (region->data->numRects <= region->data->size); \
267 #define DOWNSIZE(reg, numRects) \
270 if (((numRects) < ((reg)->data->size >> 1)) && \
274 size_t data_size = PIXREGION_SZOF (numRects); \
288 new_data->size = (numRects); \
460 region->data->numRects = 1;
470 region->data->numRects = 0;
478 n = region->data->numRects;
483 n += region->data->numRects;
525 if (!dst->data || (dst->data->size < src->data->numRects))
529 dst->data = alloc_data (src->data->numRects);
534 dst->data->size = src->data->numRects;
537 dst->data->numRects = src->data->numRects;
540 dst->data->numRects * sizeof(box_type_t));
563 * - region->data->numRects will be decreased.
574 int numRects; /* Number rectangles in both bands */
580 numRects = cur_start - prev_start;
581 critical_if_fail (numRects == region->data->numRects - cur_start);
583 if (!numRects) return cur_start;
608 numRects--;
610 while (numRects);
616 numRects = cur_start - prev_start;
617 region->data->numRects -= numRects;
623 numRects--;
625 while (numRects);
635 if (cur_band - prev_band == new_reg->data->numRects - cur_band) \
652 * region->data->numRects is incremented and the rectangles overwritten
675 region->data->numRects += new_rects;
706 new_reg->data->numRects += new_rects; \
779 int numRects;
799 numRects = PIXREGION_NUMRECTS (reg2);
801 r2_end = r2 + numRects;
809 ((new_reg == reg2) && (numRects > 1)))
816 if (numRects > new_size)
817 new_size = numRects;
824 new_reg->data->numRects = 0;
893 cur_band = new_reg->data->numRects;
910 cur_band = new_reg->data->numRects;
932 cur_band = new_reg->data->numRects;
971 cur_band = new_reg->data->numRects;
990 cur_band = new_reg->data->numRects;
1007 if (!(numRects = new_reg->data->numRects))
1012 else if (numRects == 1)
1020 DOWNSIZE (new_reg, numRects);
1468 int numRects)
1475 /* Always called with numRects > 1 */
1479 if (numRects == 2)
1491 EXCHANGE_RECTS (0, numRects >> 1);
1497 j = numRects;
1507 while (i != numRects && (r->y1 < y1 || (r->y1 == y1 && r->x1 < x1)));
1526 if (numRects - j - 1 > 1)
1527 quick_sort_rects (&rects[j + 1], numRects - j - 1);
1529 numRects = j;
1531 while (numRects > 1);
1580 int numRects; /* Original numRects for badreg */
1599 numRects = badreg->data->numRects;
1600 if (!numRects)
1610 if ((numRects) == 1)
1617 DOWNSIZE (badreg, numRects);
1626 quick_sort_rects (PIXREGION_BOXPTR (badreg), numRects);
1640 ri[0].reg.data->numRects = 1;
1651 for (i = numRects; --i > 0;)
1673 reg->data->numRects++;
1688 rit->cur_band = reg->data->numRects;
1691 reg->data->numRects++;
1753 if (reg->data->numRects == 1) /* keep unions happy below */
2122 int numRects;
2127 numRects = PIXREGION_NUMRECTS (region);
2130 if (!numRects || !EXTENTCHECK (&region->extents, prect))
2133 if (numRects == 1)
2150 for (pbox = PIXREGION_BOXPTR (region), pbox_end = pbox + numRects;
2239 if (region->data && (nbox = region->data->numRects))
2271 if (region->data && (nbox = region->data->numRects))
2285 region->data->numRects--;
2304 if (region->data->numRects == 1)
2351 int numRects;
2354 numRects = PIXREGION_NUMRECTS (region);
2356 if (!numRects || !INBOX (&region->extents, x, y))
2359 if (numRects == 1)
2368 pbox_end = pbox + numRects;
2415 int i, numRects;
2423 numRects = PIXREGION_NUMRECTS (reg);
2424 if (!numRects)
2430 else if (numRects == 1)
2441 box.y2 = pbox_p[numRects - 1].y2;
2444 for (i = numRects; --i > 0; pbox_p++, pbox_n++)
2510 region->data->numRects = count;
2525 region->data->numRects -= displacement;
2530 if (region->data->numRects == 0)
2538 if (region->data->numRects == 1)
2566 (!(reg->data->numRects &&
2570 if (reg->data->numRects == reg->data->size)
2575 r = *first_rect + reg->data->numRects;
2581 reg->data->numRects++;
2768 region->data->numRects -= crects;
2775 if (!region->data->numRects)
2783 if (region->data->numRects == 1)