Lines Matching defs:pRgnInfo

66 Region_GetInfo(JNIEnv *env, jobject region, RegionData *pRgnInfo)
69 pRgnInfo->bounds.x1 = pRgnInfo->bounds.y1 = 0x80000000;
70 pRgnInfo->bounds.x2 = pRgnInfo->bounds.y2 = 0x7fffffff;
71 pRgnInfo->endIndex = 0;
73 pRgnInfo->bounds.x1 = (*env)->GetIntField(env, region, loxID);
74 pRgnInfo->bounds.y1 = (*env)->GetIntField(env, region, loyID);
75 pRgnInfo->bounds.x2 = (*env)->GetIntField(env, region, hixID);
76 pRgnInfo->bounds.y2 = (*env)->GetIntField(env, region, hiyID);
77 pRgnInfo->endIndex = (*env)->GetIntField(env, region, endIndexID);
79 pRgnInfo->bands = (Region_IsRectangular(pRgnInfo)
100 Region_StartIteration(JNIEnv *env, RegionData *pRgnInfo)
102 pRgnInfo->pBands =
103 (Region_IsRectangular(pRgnInfo)
105 : (*env)->GetPrimitiveArrayCritical(env, pRgnInfo->bands, 0));
106 pRgnInfo->index = 0;
107 pRgnInfo->numrects = 0;
111 Region_CountIterationRects(RegionData *pRgnInfo)
114 if (Region_IsEmpty(pRgnInfo)) {
116 } else if (Region_IsRectangular(pRgnInfo)) {
119 jint *pBands = pRgnInfo->pBands;
122 while (index < pRgnInfo->endIndex) {
126 if (xy1 >= pRgnInfo->bounds.y2) {
129 if (xy2 > pRgnInfo->bounds.y1) {
134 if (xy1 >= pRgnInfo->bounds.x2) {
137 if (xy2 > pRgnInfo->bounds.x1) {
149 Region_NextIteration(RegionData *pRgnInfo, SurfaceDataBounds *pSpan)
151 jint index = pRgnInfo->index;
152 if (Region_IsRectangular(pRgnInfo)) {
153 if (index > 0 || Region_IsEmpty(pRgnInfo)) {
156 pSpan->x1 = pRgnInfo->bounds.x1;
157 pSpan->x2 = pRgnInfo->bounds.x2;
158 pSpan->y1 = pRgnInfo->bounds.y1;
159 pSpan->y2 = pRgnInfo->bounds.y2;
162 jint *pBands = pRgnInfo->pBands;
164 jint numrects = pRgnInfo->numrects;
167 if (index >= pRgnInfo->endIndex) {
171 if (xy1 >= pRgnInfo->bounds.y2) {
174 if (xy1 < pRgnInfo->bounds.y1) {
175 xy1 = pRgnInfo->bounds.y1;
179 if (xy2 > pRgnInfo->bounds.y2) {
180 xy2 = pRgnInfo->bounds.y2;
193 if (xy1 >= pRgnInfo->bounds.x2) {
198 if (xy1 < pRgnInfo->bounds.x1) {
199 xy1 = pRgnInfo->bounds.x1;
201 if (xy2 > pRgnInfo->bounds.x2) {
202 xy2 = pRgnInfo->bounds.x2;
210 pRgnInfo->numrects = numrects;
212 pRgnInfo->index = index;
217 Region_EndIteration(JNIEnv *env, RegionData *pRgnInfo)
219 if (pRgnInfo->endIndex != 0) {
220 (*env)->ReleasePrimitiveArrayCritical(env, pRgnInfo->bands,
221 pRgnInfo->pBands, JNI_ABORT);