Lines Matching defs:box

81 nextYRange(jint *box, jint *bands, jint endIndex,
91 box[1] = bands[curIndex++];
92 box[3] = bands[curIndex++];
103 nextXBand(jint *box, jint *bands, jint endIndex,
113 box[0] = bands[curIndex++];
114 box[2] = bands[curIndex++];
127 jint *box;
136 box = (*env)->GetPrimitiveArrayCritical(env, boxArray, 0);
138 w = box[2] - box[0];
139 h = box[3] - box[1];
142 (*env)->ReleasePrimitiveArrayCritical(env, boxArray, box, 0);
151 (*env)->ReleasePrimitiveArrayCritical(env, boxArray, box, 0);
167 jint *box;
199 box = (*env)->GetPrimitiveArrayCritical(env, boxArray, 0);
201 lox = box[0];
202 loy = box[1];
203 hix = box[2];
204 hiy = box[3];
209 (*env)->ReleasePrimitiveArrayCritical(env, boxArray, box, 0);
223 while (nextYRange(box, bands, endIndex, &curIndex, &numXbands)) {
224 if (box[3] <= loy) {
229 if (box[1] >= hiy) {
232 if (box[1] < loy) {
233 box[1] = loy;
235 if (box[3] > hiy) {
236 box[3] = hiy;
239 while (nextXBand(box, bands, endIndex, &curIndex, &numXbands)) {
240 if (box[2] <= lox) {
243 if (box[0] >= hix) {
246 if (box[0] < lox) {
247 box[0] = lox;
249 if (lasty < box[1]) {
252 hix - lox, box[1] - lasty, 0);
254 lasty = box[3];
255 if (firstx > box[0]) {
256 firstx = box[0];
258 if (curx < box[0]) {
260 curx - lox, box[1] - loy,
261 box[0] - curx, box[3] - box[1], 0);
263 curx = box[2];
272 curx - lox, box[1] - loy,
273 hix - curx, box[3] - box[1], 0);
275 if (firsty > box[1]) {
276 firsty = box[1];
284 box[0] = firstx;
285 box[1] = firsty;
286 box[2] = lastx;
287 box[3] = lasty;
291 (*env)->ReleasePrimitiveArrayCritical(env, boxArray, box, 0);