Lines Matching refs:numRects

175 if (!(pReg)->data || (((pReg)->data->numRects + (n)) > (pReg)->data->size)) \
179 if (!(pReg)->data || (((pReg)->data->numRects + (n)) > (pReg)->data->size)) \
193 if (!(pReg)->data || ((pReg)->data->numRects == (pReg)->data->size))\
200 pReg->data->numRects++; \
201 assert(pReg->data->numRects<=pReg->data->size); \
204 #define DOWNSIZE(reg,numRects) \ argument
205 if (((numRects) < ((reg)->data->size >> 1)) && ((reg)->data->size > 50)) \
207 size_t NewSize = RegionSizeof(numRects); \
212 NewData->size = (numRects); \
296 int i, numRects; in RegionIsValid() local
301 numRects = RegionNumRects(reg); in RegionIsValid()
302 if (!numRects) in RegionIsValid()
306 else if (numRects == 1) in RegionIsValid()
314 box.y2 = pboxP[numRects - 1].y2; in RegionIsValid()
316 for (i = numRects; --i > 0; pboxP++, pboxN++) { in RegionIsValid()
356 pRgn->data->numRects = 1; in RegionRectAlloc()
364 pRgn->data->numRects = 0; in RegionRectAlloc()
368 n = pRgn->data->numRects; in RegionRectAlloc()
372 n += pRgn->data->numRects; in RegionRectAlloc()
412 int numRects; /* Number rectangles in both bands */ in RegionCoalesce() local
418 numRects = curStart - prevStart; in RegionCoalesce()
419 assert(numRects == pReg->data->numRects - curStart); in RegionCoalesce()
421 if (!numRects) in RegionCoalesce()
447 numRects--; in RegionCoalesce()
448 } while (numRects); in RegionCoalesce()
454 numRects = curStart - prevStart; in RegionCoalesce()
455 pReg->data->numRects -= numRects; in RegionCoalesce()
459 numRects--; in RegionCoalesce()
460 } while (numRects); in RegionCoalesce()
467 if (curBand - prevBand == newReg->data->numRects - curBand) { \
504 pReg->data->numRects += newRects; in RegionAppendNonO()
530 newReg->data->numRects += newRects; \
600 int numRects; in RegionOp() local
619 numRects = RegionNumRects(reg2); in RegionOp()
621 r2End = r2 + numRects; in RegionOp()
627 ((newReg == reg2) && (numRects > 1))) { in RegionOp()
632 if (numRects > newSize) in RegionOp()
633 newSize = numRects; in RegionOp()
638 newReg->data->numRects = 0; in RegionOp()
697 curBand = newReg->data->numRects; in RegionOp()
709 curBand = newReg->data->numRects; in RegionOp()
726 curBand = newReg->data->numRects; in RegionOp()
754 curBand = newReg->data->numRects; in RegionOp()
764 curBand = newReg->data->numRects; in RegionOp()
773 if (!(numRects = newReg->data->numRects)) { in RegionOp()
777 else if (numRects == 1) { in RegionOp()
783 DOWNSIZE(newReg, numRects); in RegionOp()
968 int numRects, dnumRects, size; in RegionAppend() local
981 numRects = RegionNumRects(rgn); in RegionAppend()
982 if (!numRects) in RegionAppend()
985 size = numRects; in RegionAppend()
1009 last = old + (numRects - 1); in RegionAppend()
1025 new = RegionBox(dstrgn, numRects); in RegionAppend()
1035 if (numRects == 1) in RegionAppend()
1038 memmove((char *) new, (char *) old, numRects * sizeof(BoxRec)); in RegionAppend()
1039 dstrgn->data->numRects += numRects; in RegionAppend()
1052 QuickSortRects(BoxRec rects[], int numRects) in QuickSortRects() argument
1062 if (numRects == 2) { in QuickSortRects()
1070 ExchangeRects(0, numRects >> 1); in QuickSortRects()
1076 j = numRects; in QuickSortRects()
1082 } while (i != numRects && in QuickSortRects()
1097 if (numRects - j - 1 > 1) in QuickSortRects()
1098 QuickSortRects(&rects[j + 1], numRects - j - 1); in QuickSortRects()
1099 numRects = j; in QuickSortRects()
1100 } while (numRects > 1); in QuickSortRects()
1145 int numRects; /* Original numRects for badreg */ in RegionValidate() local
1163 numRects = badreg->data->numRects; in RegionValidate()
1164 if (!numRects) { in RegionValidate()
1171 if ((numRects) == 1) { in RegionValidate()
1176 DOWNSIZE(badreg, numRects); in RegionValidate()
1183 QuickSortRects(RegionBoxptr(badreg), numRects); in RegionValidate()
1199 ri[0].reg.data->numRects = 1; in RegionValidate()
1207 for (i = numRects; --i > 0;) { in RegionValidate()
1226 reg->data->numRects++; in RegionValidate()
1237 rit->curBand = reg->data->numRects; in RegionValidate()
1240 reg->data->numRects++; in RegionValidate()
1276 if (reg->data->numRects == 1) { /* keep unions happy below */ in RegionValidate()
1370 pData->numRects = pBox - (BoxPtr) (pData + 1); in RegionFromRects()