box 773 lib/gfxpoly/poly.c box_t box; box 774 lib/gfxpoly/poly.c box.right1.x = box.right2.x = x; box 775 lib/gfxpoly/poly.c box.left1.x = box.left2.x = x-1; box 776 lib/gfxpoly/poly.c box.left1.y = box.right1.y = y-1; box 777 lib/gfxpoly/poly.c box.left2.y = box.right2.y = y; box 778 lib/gfxpoly/poly.c return box; box 913 lib/gfxpoly/poly.c box_t box = box_new(status->xrow->x[t], y); box 914 lib/gfxpoly/poly.c segment_t*seg = actlist_find(status->actlist, box.left2, box.left2); box 925 lib/gfxpoly/poly.c double d1 = LINE_EQ(box.right1, seg); box 926 lib/gfxpoly/poly.c double d2 = LINE_EQ(box.right2, seg); box 929 lib/gfxpoly/poly.c insert_point_into_segment(status, seg, box.right2); box 956 lib/gfxpoly/poly.c box_t box = box_new(status->xrow->x[t], y); box 957 lib/gfxpoly/poly.c segment_t*seg = actlist_find(status->actlist, box.right2, box.right2); box 967 lib/gfxpoly/poly.c double d1 = LINE_EQ(box.left1, seg); box 968 lib/gfxpoly/poly.c double d2 = LINE_EQ(box.left2, seg); box 971 lib/gfxpoly/poly.c insert_point_into_segment(status, seg, box.right2); box 1020 lib/gfxpoly/poly.c box_t box = box_new(status->xrow->x[t], y); box 1021 lib/gfxpoly/poly.c double d0 = LINE_EQ(box.left1, seg); box 1022 lib/gfxpoly/poly.c double d1 = LINE_EQ(box.left2, seg); box 1023 lib/gfxpoly/poly.c double d2 = LINE_EQ(box.right1, seg); box 1024 lib/gfxpoly/poly.c double d3 = LINE_EQ(box.right2, seg); box 1027 lib/gfxpoly/poly.c insert_point_into_segment(status, seg, box.right2); box 640 lib/gfxtools.c if(box.xmin==0 && box.ymin==0 && box.xmax==0 && box.ymax==0) { box 641 lib/gfxtools.c box.xmin = x; box 642 lib/gfxtools.c box.ymin = y; box 643 lib/gfxtools.c box.xmax = x; box 644 lib/gfxtools.c box.ymax = y; box 645 lib/gfxtools.c if(x==0 && y==0) box.xmax = 0.0000001; box 646 lib/gfxtools.c return box; box 648 lib/gfxtools.c if(x < box.xmin) box 649 lib/gfxtools.c box.xmin = x; box 650 lib/gfxtools.c if(x > box.xmax) box 651 lib/gfxtools.c box.xmax = x; box 652 lib/gfxtools.c if(y < box.ymin) box 653 lib/gfxtools.c box.ymin = y; box 654 lib/gfxtools.c if(y > box.ymax) box 655 lib/gfxtools.c box.ymax = y; box 656 lib/gfxtools.c return box; box 661 lib/gfxtools.c box = gfxbbox_expand_to_point(box, box2.xmin, box2.ymin); box 662 lib/gfxtools.c box = gfxbbox_expand_to_point(box, box2.xmax, box2.ymax); box 663 lib/gfxtools.c return box; box 72 lib/gfxtools.h gfxbbox_t gfxbbox_expand_to_point(gfxbbox_t box, gfxcoord_t x, gfxcoord_t y); box 97 lib/gfxtools.h gfxbbox_t gfxbbox_expand_to_bbox(gfxbbox_t box, gfxbbox_t box2); box 82 lib/gocr/box.c for (i=0; i<box->num_ac; i++) box 83 lib/gocr/box.c if (box->tas[i]) { box 85 lib/gocr/box.c free(box->tas[i]); box 86 lib/gocr/box.c box->tas[i]=0; /* prevent double freeing */ box 88 lib/gocr/box.c box->num_ac=0; /* mark as freed */ box 93 lib/gocr/box.c struct box *malloc_box (struct box *inibox) { box 94 lib/gocr/box.c struct box *buf; box 97 lib/gocr/box.c buf = (struct box *) malloc(sizeof(struct box)); box 101 lib/gocr/box.c memcpy(buf, inibox, sizeof(struct box)); box 120 lib/gocr/box.c if (!box) return 0; box 122 lib/gocr/box.c reset_box_ac(box); /* free alternative char table */ box 123 lib/gocr/box.c free(box); /* free the box memory */ box 190 lib/gocr/box.c struct box tmpbox, *bsmaller, *bbigger; /* for mixing and sorting */ box 226 lib/gocr/box.c memcpy(&tmpbox, bbigger, sizeof(struct box)); box 40 lib/gocr/database.c struct box *box1; box 78 lib/gocr/database.c box1 = (struct box *)malloc_box(NULL); box 58 lib/gocr/detect.c struct box *box2, *box3; /* box3 is for verbose / debugging */ box 80 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 95 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 141 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 178 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 259 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 294 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 392 lib/gocr/detect.c struct box *box2,*box3; box 408 lib/gocr/detect.c box3 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 438 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 450 lib/gocr/detect.c box3 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 485 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 565 lib/gocr/detect.c struct box *box2, *box3, box 581 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 600 lib/gocr/detect.c box3 = (struct box *)list_get_current(&(job->res.boxlist)); box 714 lib/gocr/detect.c struct box *box2; box 730 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 814 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 854 lib/gocr/detect.c struct box *box4; box 860 lib/gocr/detect.c box4 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 894 lib/gocr/detect.c struct box *box2, *box4; box 909 lib/gocr/detect.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 920 lib/gocr/detect.c box4 = (struct box *)list_get_current(&(job->res.boxlist)); box 126 lib/gocr/gocr.h typedef struct box Box; box 105 lib/gocr/lines.c struct box * box2; box 110 lib/gocr/lines.c box2 = (struct box *)list_get_current(boxlist); box 146 lib/gocr/lines.c struct box *box2; box 197 lib/gocr/lines.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 458 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 682 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 795 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 937 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 1044 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 1170 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 1254 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 1374 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 1494 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 1698 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 1825 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 1943 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 2044 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 2126 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 2181 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 2275 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 2421 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 2532 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 2713 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 2808 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 3008 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 3157 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 3295 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 3420 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 3564 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 3845 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 3990 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 4292 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 4390 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 4463 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 4595 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 5047 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 5404 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 5419 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 5799 lib/gocr/ocr0.c struct box *box1=sdata->box1; box 14 lib/gocr/ocr0.h struct box *box1; /* box in whole image */ box 69 lib/gocr/ocr0n.c struct box *box1=sdata->box1; box 162 lib/gocr/output.c struct box *box2; box 168 lib/gocr/output.c box2 = (struct box *) list_get_current(&(JOB->res.boxlist)); box 1148 lib/gocr/pgm2asc.c struct box bbuf=*box1; // restore after modifikation! box 1284 lib/gocr/pgm2asc.c struct box *box3; box 1306 lib/gocr/pgm2asc.c box3 = (struct box *)malloc_box(NULL); box 1382 lib/gocr/pgm2asc.c struct box *box2, *prev=NULL; box 1390 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 1520 lib/gocr/pgm2asc.c struct box *box2,*box4; box 1526 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 1533 lib/gocr/pgm2asc.c box4=(struct box *)list_get_current(&(JOB->res.boxlist)); box 1571 lib/gocr/pgm2asc.c struct box *box2, *box4; box 1583 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 1599 lib/gocr/pgm2asc.c box4=(struct box *)list_get_current(&(JOB->res.boxlist)); box 1662 lib/gocr/pgm2asc.c struct box *box2, *box4; box 1674 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 1700 lib/gocr/pgm2asc.c struct box *box5=NULL, *box6=NULL; // nearest and next nearest box box 1705 lib/gocr/pgm2asc.c box4=(struct box *)list_get_current(&(JOB->res.boxlist)); box 1798 lib/gocr/pgm2asc.c box4=(struct box *)list_get_current(&(JOB->res.boxlist)); box 1828 lib/gocr/pgm2asc.c box4=(struct box *)list_get_current(&(JOB->res.boxlist)); box 1866 lib/gocr/pgm2asc.c int i,k,d,cs,dist,n1,dx; struct box *box2,*box3,*box4,*box5; box 1873 lib/gocr/pgm2asc.c box4 = box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 1879 lib/gocr/pgm2asc.c for(box3=(struct box *)list_next(&(JOB->res.boxlist),box2);box3; box 1880 lib/gocr/pgm2asc.c box3=(struct box *)list_next(&(JOB->res.boxlist),box3)) { box 1887 lib/gocr/pgm2asc.c box5=(struct box *)(struct box *)list_get_current(&(JOB->res.boxlist)); box 1903 lib/gocr/pgm2asc.c struct box *box3,*box4; box 1905 lib/gocr/pgm2asc.c box2=(struct box *)list_get_current(&(JOB->res.boxlist)); box 1906 lib/gocr/pgm2asc.c for(box3=(struct box *)list_get_header(&(JOB->res.boxlist)); box 1908 lib/gocr/pgm2asc.c box3=(struct box *)list_next(&(JOB->res.boxlist), box3)) box 1916 lib/gocr/pgm2asc.c box3=(struct box *)list_next(&(JOB->res.boxlist), box3)) { box 1945 lib/gocr/pgm2asc.c struct box *box2; box 1954 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 1970 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 2013 lib/gocr/pgm2asc.c struct box *box2, *box3, *box4; box 2025 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); ii++; box 2028 lib/gocr/pgm2asc.c box4 = (struct box *)list_get_header(&(JOB->res.boxlist));; box 2032 lib/gocr/pgm2asc.c box3 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 2078 lib/gocr/pgm2asc.c struct box *box2, boxa, boxb; box 2093 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 2276 lib/gocr/pgm2asc.c struct box *box2,*box3,*box4; box 2280 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 2290 lib/gocr/pgm2asc.c box4 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 2303 lib/gocr/pgm2asc.c box3= (struct box *) malloc_box(box2); box 2363 lib/gocr/pgm2asc.c struct box *box4, *box3, *box2, *prev, *next; box 2371 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 2373 lib/gocr/pgm2asc.c prev = (struct box *)list_get_cur_prev(&(job->res.boxlist)); box 2374 lib/gocr/pgm2asc.c next = (struct box *)list_get_cur_next(&(job->res.boxlist)); box 2392 lib/gocr/pgm2asc.c ( box4=(struct box *)list_prev(&(job->res.boxlist), prev)) && box 2438 lib/gocr/pgm2asc.c struct box *box3 = malloc_box((struct box *) NULL); box 2466 lib/gocr/pgm2asc.c prev = (struct box *)list_get_cur_prev(&(job->res.boxlist)); box 2492 lib/gocr/pgm2asc.c struct box *box2, *box3=NULL, *box4=NULL; box 2510 lib/gocr/pgm2asc.c box2 =(struct box *)list_get_current(&(job->res.boxlist)); box 2516 lib/gocr/pgm2asc.c if((box3 = (struct box *)list_prev(&(job->res.boxlist), box2))){ box 2533 lib/gocr/pgm2asc.c box4=(struct box *)list_prev(&(job->res.boxlist), box2); box 2534 lib/gocr/pgm2asc.c box3=(struct box *)malloc_box(NULL); box 2576 lib/gocr/pgm2asc.c struct box *box2; box 2580 lib/gocr/pgm2asc.c box2 =(struct box *)list_get_current(&(JOB->res.boxlist)); box 2631 lib/gocr/pgm2asc.c struct box *boxa, *boxb; box 2633 lib/gocr/pgm2asc.c boxa = (struct box *)a; box 2634 lib/gocr/pgm2asc.c boxb = (struct box *)b; box 2795 lib/gocr/pgm2asc.c int i,ii,ni; struct box *box2; box 2798 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 2840 lib/gocr/pgm2asc.c int i,ii,ni; struct box *box2; const char *testc="0123456789ABCDEFGHIJK"; box 2843 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 2853 lib/gocr/pgm2asc.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 56 lib/gocr/pgm2asc.h struct box *malloc_box( struct box *inibox ); /* alloc memory for a box */ box 53 lib/gocr/remove.c struct box *box2; box 69 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 136 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 169 lib/gocr/remove.c box2 = ((struct box *)list_get_current(&(job->res.boxlist))); box 202 lib/gocr/remove.c struct box *box2; box 207 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 303 lib/gocr/remove.c struct box *box4,*box2; box 314 lib/gocr/remove.c box4 = (struct box *)list_get_current(&(job->res.boxlist)); box 324 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 330 lib/gocr/remove.c box4 = (struct box *)list_get_current(&(job->res.boxlist)); box 349 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 379 lib/gocr/remove.c box4 = (struct box *)list_get_current(&(job->res.boxlist)); box 389 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(job->res.boxlist)); box 396 lib/gocr/remove.c box4 = (struct box *)list_get_current(&(job->res.boxlist)); box 442 lib/gocr/remove.c box4 = (struct box *)list_get_current(&(job->res.boxlist)); box 468 lib/gocr/remove.c struct box *box2, *box3; box 480 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 623 lib/gocr/remove.c struct box *box2, *box4; box 631 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 652 lib/gocr/remove.c box2 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 665 lib/gocr/remove.c box4 = (struct box *)list_get_current(&(JOB->res.boxlist)); box 453 lib/pdf/xpdf/Gfx.cc state = new GfxState(hDPI, vDPI, box, rotate, out->upsideDown()); box 501 lib/pdf/xpdf/Gfx.cc state = new GfxState(72, 72, box, 0, gFalse); box 114 lib/pdf/xpdf/Gfx.h double hDPI, double vDPI, PDFRectangle *box, box 121 lib/pdf/xpdf/Gfx.h PDFRectangle *box, PDFRectangle *cropBox, box 195 lib/pdf/xpdf/Page.cc *box = tmp; box 277 lib/pdf/xpdf/Page.cc PDFRectangle box; box 299 lib/pdf/xpdf/Page.cc sliceX, sliceY, sliceW, sliceH, &box, &crop); box 312 lib/pdf/xpdf/Page.cc hDPI, vDPI, &box, crop ? cropBox : (PDFRectangle *)NULL, box 365 lib/pdf/xpdf/Page.cc box->x1 = baseBox->x1 + ky * sliceY; box 366 lib/pdf/xpdf/Page.cc box->x2 = baseBox->x1 + ky * (sliceY + sliceH); box 368 lib/pdf/xpdf/Page.cc box->x1 = baseBox->x2 - ky * (sliceY + sliceH); box 369 lib/pdf/xpdf/Page.cc box->x2 = baseBox->x2 - ky * sliceY; box 371 lib/pdf/xpdf/Page.cc box->y1 = baseBox->y1 + kx * sliceX; box 372 lib/pdf/xpdf/Page.cc box->y2 = baseBox->y1 + kx * (sliceX + sliceW); box 374 lib/pdf/xpdf/Page.cc box->x1 = baseBox->x2 - kx * (sliceX + sliceW); box 375 lib/pdf/xpdf/Page.cc box->x2 = baseBox->x2 - kx * sliceX; box 377 lib/pdf/xpdf/Page.cc box->y1 = baseBox->y1 + ky * sliceY; box 378 lib/pdf/xpdf/Page.cc box->y2 = baseBox->y1 + ky * (sliceY + sliceH); box 380 lib/pdf/xpdf/Page.cc box->y1 = baseBox->y2 - ky * (sliceY + sliceH); box 381 lib/pdf/xpdf/Page.cc box->y2 = baseBox->y2 - ky * sliceY; box 385 lib/pdf/xpdf/Page.cc box->x1 = baseBox->x2 - ky * (sliceY + sliceH); box 386 lib/pdf/xpdf/Page.cc box->x2 = baseBox->x2 - ky * sliceY; box 388 lib/pdf/xpdf/Page.cc box->x1 = baseBox->x1 + ky * sliceY; box 389 lib/pdf/xpdf/Page.cc box->x2 = baseBox->x1 + ky * (sliceY + sliceH); box 391 lib/pdf/xpdf/Page.cc box->y1 = baseBox->y2 - kx * (sliceX + sliceW); box 392 lib/pdf/xpdf/Page.cc box->y2 = baseBox->y2 - kx * sliceX; box 394 lib/pdf/xpdf/Page.cc box->x1 = baseBox->x1 + kx * sliceX; box 395 lib/pdf/xpdf/Page.cc box->x2 = baseBox->x1 + kx * (sliceX + sliceW); box 397 lib/pdf/xpdf/Page.cc box->y1 = baseBox->y2 - ky * (sliceY + sliceH); box 398 lib/pdf/xpdf/Page.cc box->y2 = baseBox->y2 - ky * sliceY; box 400 lib/pdf/xpdf/Page.cc box->y1 = baseBox->y1 + ky * sliceY; box 401 lib/pdf/xpdf/Page.cc box->y2 = baseBox->y1 + ky * (sliceY + sliceH); box 405 lib/pdf/xpdf/Page.cc *box = *mediaBox; box 407 lib/pdf/xpdf/Page.cc *box = *cropBox; box 81 lib/pdf/xpdf/Page.h GBool readBox(Dict *dict, char *key, PDFRectangle *box); box 169 lib/pdf/xpdf/Page.h PDFRectangle *box, GBool *crop); box 156 lib/python/primitives.c SRECT box; box 157 lib/python/primitives.c box.xmin = (int)(xmin*20); box 158 lib/python/primitives.c box.ymin = (int)(ymin*20); box 159 lib/python/primitives.c box.xmax = (int)(xmax*20); box 160 lib/python/primitives.c box.ymax = (int)(ymax*20); box 161 lib/python/primitives.c mylog("+%08x(%d) bbox_new(%d,%d,%d,%d)\n", (int)self, self?self->ob_refcnt:0, box.xmin, box.ymin, box.xmax,box.ymax); box 163 lib/python/primitives.c bbox->bbox = box; box 170 lib/python/primitives.c bbox->bbox = box; box 354 src/swfcombine.c SRECT box; box 360 src/swfcombine.c memset(&box, 0, sizeof(box)); box 396 src/swfcombine.c box = head.movieSize; box 398 src/swfcombine.c if(head.movieSize.xmin < box.xmin) box 399 src/swfcombine.c box.xmin = head.movieSize.xmin; box 400 src/swfcombine.c if(head.movieSize.ymin < box.ymin) box 401 src/swfcombine.c box.ymin = head.movieSize.ymin; box 402 src/swfcombine.c if(head.movieSize.xmax > box.xmax) box 403 src/swfcombine.c box.xmax = head.movieSize.xmax; box 404 src/swfcombine.c if(head.movieSize.ymax > box.ymax) box 405 src/swfcombine.c box.ymax = head.movieSize.ymax; box 408 src/swfcombine.c box.xmin, box.ymin, box 409 src/swfcombine.c box.xmax, box.ymax); box 415 src/swfcombine.c swf->movieSize = box;