/external/tesseract/liblept/ |
D | seedfilllow.c | 344 maxval = L_MAX(maxval, val4); in seedfillGrayLow() 347 maxval = L_MAX(maxval, val); in seedfillGrayLow() 369 maxval = L_MAX(maxval, val5); in seedfillGrayLow() 372 maxval = L_MAX(maxval, val); in seedfillGrayLow() 495 maxval = L_MAX(maxval, val3); in seedfillGrayLow() 498 maxval = L_MAX(maxval, val2); in seedfillGrayLow() 502 maxval = L_MAX(maxval, val4); in seedfillGrayLow() 505 maxval = L_MAX(maxval, val); in seedfillGrayLow() 529 maxval = L_MAX(maxval, val8); in seedfillGrayLow() 532 maxval = L_MAX(maxval, val7); in seedfillGrayLow() [all …]
|
D | pixarith.c | 710 val = L_MAX(vals, vald); in pixMinOrMax() 726 val = L_MAX(vals, vald); in pixMinOrMax() 790 max = L_MAX(max, word >> 28); in pixMaxDynamicRange() 791 max = L_MAX(max, (word >> 24) & 0xf); in pixMaxDynamicRange() 792 max = L_MAX(max, (word >> 20) & 0xf); in pixMaxDynamicRange() 793 max = L_MAX(max, (word >> 16) & 0xf); in pixMaxDynamicRange() 794 max = L_MAX(max, (word >> 12) & 0xf); in pixMaxDynamicRange() 795 max = L_MAX(max, (word >> 8) & 0xf); in pixMaxDynamicRange() 796 max = L_MAX(max, (word >> 4) & 0xf); in pixMaxDynamicRange() 797 max = L_MAX(max, word & 0xf); in pixMaxDynamicRange() [all …]
|
D | grayquantlow.c | 147 rval = L_MAX(0, rval - fval1); in ditherToBinaryLineLow() 150 bval = L_MAX(0, bval - fval1); in ditherToBinaryLineLow() 153 dval = L_MAX(0, dval - fval2); in ditherToBinaryLineLow() 183 bval = L_MAX(0, bval - fval1); in ditherToBinaryLineLow() 206 rval = L_MAX(0, rval - fval1); in ditherToBinaryLineLow() 475 rval = L_MAX(0, rval + tab38val); in ditherToBinaryLineLUTLow() 476 bval = L_MAX(0, bval + tab38val); in ditherToBinaryLineLUTLow() 477 dval = L_MAX(0, dval + tab14val); in ditherToBinaryLineLUTLow() 496 bval = L_MAX(0, bval + tab38val); in ditherToBinaryLineLUTLow() 514 rval = L_MAX(0, rval + tab38val); in ditherToBinaryLineLUTLow() [all …]
|
D | graymorphlow.c | 149 L_MAX(maxarray[size - k], buffer[startmax - k]); in dilateGrayLow() 151 L_MAX(maxarray[size + k - 2], buffer[startmax + k]); in dilateGrayLow() 159 maxval = L_MAX(maxarray[k], maxarray[k + size - 1]); in dilateGrayLow() 183 L_MAX(maxarray[size - k], buffer[startmax - k]); in dilateGrayLow() 185 L_MAX(maxarray[size + k - 2], buffer[startmax + k]); in dilateGrayLow() 195 maxval = L_MAX(maxarray[k], maxarray[k + size - 1]); in dilateGrayLow()
|
D | boxfunc2.c | 119 (l_int32)(L_MAX(1.0, scalex * box->w + 0.5)), in boxTransform() 120 (l_int32)(L_MAX(1.0, scaley * box->h + 0.5))); in boxTransform() 273 tw = (l_int32)(L_MAX(1.0, scalex * bw + 0.5)); in boxTransformOrdered() 274 th = (l_int32)(L_MAX(1.0, scaley * bh + 0.5)); in boxTransformOrdered() 293 tw = (l_int32)(L_MAX(1.0, scalex * bw + 0.5)); in boxTransformOrdered() 294 th = (l_int32)(L_MAX(1.0, scaley * bh + 0.5)); in boxTransformOrdered() 327 tw = (l_int32)(L_MAX(1.0, scalex * rw + 0.5)); in boxTransformOrdered() 328 th = (l_int32)(L_MAX(1.0, scaley * rh + 0.5)); in boxTransformOrdered() 348 tw = (l_int32)(L_MAX(1.0, scalex * rw + 0.5)); in boxTransformOrdered() 349 th = (l_int32)(L_MAX(1.0, scaley * rh + 0.5)); in boxTransformOrdered() [all …]
|
D | colorcontent.c | 230 maxval = L_MAX(rval, gval); in pixColorContent() 231 maxval = L_MAX(maxval, bval); in pixColorContent() 378 colorval = L_MAX(rdist, gdist); in pixColorMagnitude() 379 colorval = L_MAX(colorval, bdist); in pixColorMagnitude() 385 maxdist = L_MAX(rgdist, rbdist); in pixColorMagnitude() 390 colorval = L_MAX(mindist, gbdist); in pixColorMagnitude() 501 maxdiff = L_MAX(rdiff, gdiff); in pixColorFraction() 502 maxdiff = L_MAX(maxdiff, bdiff); in pixColorFraction() 695 factor = L_MAX(1, minside / 200); in pixColorsForQuantization() 713 factor = L_MAX(1, minside / 500); in pixColorsForQuantization()
|
D | colorquant2.c | 324 factor = L_MAX(1, minside / 200); in pixMedianCutQuantGeneral() 340 subsample = L_MAX(1, L_MIN(maxsub, subsample)); in pixMedianCutQuantGeneral() 765 buf1r[j + 1] = L_MAX(0, val1); in pixQuantizeWithColormap() 766 buf2r[j] = L_MAX(0, val2); in pixQuantizeWithColormap() 767 buf2r[j + 1] = L_MAX(0, val3); in pixQuantizeWithColormap() 784 buf1g[j + 1] = L_MAX(0, val1); in pixQuantizeWithColormap() 785 buf2g[j] = L_MAX(0, val2); in pixQuantizeWithColormap() 786 buf2g[j + 1] = L_MAX(0, val3); in pixQuantizeWithColormap() 803 buf1b[j + 1] = L_MAX(0, val1); in pixQuantizeWithColormap() 804 buf2b[j] = L_MAX(0, val2); in pixQuantizeWithColormap() [all …]
|
D | graymorph.c | 119 if ((buffer = (l_uint8 *)CALLOC(L_MAX(w, h), sizeof(l_uint8))) == NULL) in pixErodeGray() 121 maxsize = L_MAX(hsize, vsize); in pixErodeGray() 229 if ((buffer = (l_uint8 *)CALLOC(L_MAX(w, h), sizeof(l_uint8))) == NULL) in pixDilateGray() 231 maxsize = L_MAX(hsize, vsize); in pixDilateGray() 340 if ((buffer = (l_uint8 *)CALLOC(L_MAX(w, h), sizeof(l_uint8))) == NULL) in pixOpenGray() 342 maxsize = L_MAX(hsize, vsize); in pixOpenGray() 467 if ((buffer = (l_uint8 *)CALLOC(L_MAX(w, h), sizeof(l_uint8))) == NULL) in pixCloseGray() 469 maxsize = L_MAX(hsize, vsize); in pixCloseGray()
|
D | enhance.c | 300 val = L_MAX(val, 0); in numaGammaTRC() 1094 ival = L_MAX(0, ival); in pixUnsharpMaskingGray1D() 1107 ival = L_MAX(0, ival); in pixUnsharpMaskingGray1D() 1126 ival = L_MAX(0, ival); in pixUnsharpMaskingGray1D() 1147 ival = L_MAX(0, ival); in pixUnsharpMaskingGray1D() 1225 ival = L_MAX(0, ival); in pixUnsharpMaskingGray2D() 1273 ival = L_MAX(0, ival); in pixUnsharpMaskingGray2D() 1493 rfact = L_MAX(0.0, rfact); in pixMultConstantColor() 1494 gfact = L_MAX(0.0, gfact); in pixMultConstantColor() 1495 bfact = L_MAX(0.0, bfact); in pixMultConstantColor() [all …]
|
D | pixtiling.c | 134 nx = L_MAX(1, width / w); in pixTilingCreate() 137 ny = L_MAX(1, height / h); in pixTilingCreate() 272 left = L_MAX(0, j * wt - xoverlap); in pixTilingGetTile() 273 top = L_MAX(0, i * ht - yoverlap); in pixTilingGetTile()
|
D | pixafunc2.c | 355 borderwidth = L_MAX(0, borderwidth); in pixaDisplayUnsplit() 460 spacing = L_MAX(spacing, 0); in pixaDisplayTiled() 580 wmaxrow = L_MAX(wmaxrow, w); in pixaDisplayTiledInRows() 587 maxh = L_MAX(maxh, ht); in pixaDisplayTiledInRows() 594 wmaxrow = L_MAX(wmaxrow, w); in pixaDisplayTiledInRows() 728 maxht = L_MAX(h, maxht); in pixaDisplayTiledAndScaled() 821 wmax = L_MAX(wmax, w); in pixaaDisplay() 822 hmax = L_MAX(hmax, h); in pixaaDisplay() 917 width = L_MAX(lwidth, width); in pixaaDisplayByPixa()
|
D | arithlow.c | 72 pval = L_MAX(0, pval + val); in addConstantGrayLow() 88 pval = L_MAX(0, pval + val); in addConstantGrayLow() 222 val = L_MAX(diff, 0); in subtractGrayLow() 230 val = L_MAX(diff, 0); in subtractGrayLow() 343 val = L_MAX(0, val); in finalAccumulateLow() 355 val = L_MAX(0, val); in finalAccumulateLow()
|
D | watershed.c | 215 wshed->mindepth = L_MAX(1, mindepth); in wshedCreate() 403 imin = L_MAX(0, y - 1); in wshedApply() 405 jmin = L_MAX(0, x - 1); in wshedApply() 427 hmax = L_MAX(hlabel, hindex); in wshedApply() 642 imin = L_MAX(0, y - 1); in identifyWatershedBasin() 644 jmin = L_MAX(0, x - 1); in identifyWatershedBasin() 818 *pmaxx = L_MAX(*pmaxx, x); in pushNewPixel() 820 *pmaxy = L_MAX(*pmaxy, y); in pushNewPixel()
|
D | boxfunc1.c | 320 right = L_MAX(right1, right2); in boxBoundingRegion() 323 bot = L_MAX(bot1, bot2); in boxBoundingRegion() 700 xl = L_MAX(0, x + delleft); in boxAdjustSides() 701 yt = L_MAX(0, y + deltop); in boxAdjustSides() 801 jstart = L_MAX(0, i - maxdist); in boxaEqual() 932 xmax = L_MAX(xmax, x + w); in boxaGetExtent() 933 ymax = L_MAX(ymax, y + h); in boxaGetExtent() 1377 index = L_MAX(1, index); in boxaPermuteRandom() 1513 xmax = L_MAX(x2, x4); in ptaConvertToBoxa() 1514 ymax = L_MAX(y3, y4); in ptaConvertToBoxa()
|
D | colorquant1.c | 587 factor = L_MAX(1, minside / 200); in pixOctreeColorQuantGeneral() 1023 buf1r[j + 1] = L_MAX(0, val1); in pixOctreeQuantizePixels() 1024 buf2r[j] = L_MAX(0, val2); in pixOctreeQuantizePixels() 1025 buf2r[j + 1] = L_MAX(0, val3); in pixOctreeQuantizePixels() 1040 buf1g[j + 1] = L_MAX(0, val1); in pixOctreeQuantizePixels() 1041 buf2g[j] = L_MAX(0, val2); in pixOctreeQuantizePixels() 1042 buf2g[j + 1] = L_MAX(0, val3); in pixOctreeQuantizePixels() 1057 buf1b[j + 1] = L_MAX(0, val1); in pixOctreeQuantizePixels() 1058 buf2b[j] = L_MAX(0, val2); in pixOctreeQuantizePixels() 1059 buf2b[j + 1] = L_MAX(0, val3); in pixOctreeQuantizePixels() [all …]
|
D | bmf.c | 578 diff = L_MAX(0, val1 - val2); in pixGetTextBaseline() 676 maxh = L_MAX(maxh, height); in bmfMakeAsciiTables() 680 maxh = L_MAX(maxh, height); in bmfMakeAsciiTables() 689 bmf->kernwidth = L_MAX(1, kernwidth); in bmfMakeAsciiTables()
|
D | convolvelow.c | 110 imin = L_MAX(i - 1 - hc, 0); in blockconvLow() 116 jmin = L_MAX(j - 1 - wc, 0); in blockconvLow() 381 imin = L_MAX(i - 1 - hc, 0); in blocksumLow() 387 jmin = L_MAX(j - 1 - wc, 0); in blocksumLow()
|
D | environ.h | 123 #ifndef L_MAX 124 #define L_MAX(x,y) (((x) > (y)) ? (x) : (y)) macro
|
D | flipdetect.c | 526 nmax = L_MAX(countup, countdown); in pixUpDownDetectGeneral() 740 nmax = L_MAX(countup, countdown); in pixUpDownDetectGeneralDwa() 854 nmax = L_MAX(count1, count2); in pixMirrorDetect() 943 nmax = L_MAX(count1, count2); in pixMirrorDetectDwa()
|
D | edge.c | 211 val = -L_MAX(lgrad, rgrad); in pixTwoSidedEdgeFilter() 233 val = -L_MAX(tgrad, bgrad); in pixTwoSidedEdgeFilter()
|
D | correlscore.c | 151 lorow = L_MAX(idely, 0); in pixCorrelationScore() 160 locol = L_MAX(idelx, 0); in pixCorrelationScore() 449 lorow = L_MAX(idely, 0); in pixCorrelationScoreThresholded() 462 locol = L_MAX(idelx, 0); in pixCorrelationScoreThresholded()
|
D | bbuffer.c | 267 nadd = L_MAX(bb->nalloc, nbytes); in bbufferRead() 314 nadd = L_MAX(bb->nalloc, nbytes); in bbufferReadStream()
|
D | convolve.c | 405 wc = L_MAX(0, L_MIN(wc, (w - 3) / 2)); in pixBlockconvTiled() 406 hc = L_MAX(0, L_MIN(hc, (h - 3) / 2)); in pixBlockconvTiled() 528 wc = L_MAX(0, L_MIN(wc, (w - 3) / 2)); in pixBlockconvGrayTile() 529 hc = L_MAX(0, L_MIN(hc, (h - 3) / 2)); in pixBlockconvGrayTile() 570 imin = L_MAX(i - hc - 1, 0); in pixBlockconvGrayTile() 576 jmin = L_MAX(j - wc - 1, 0); in pixBlockconvGrayTile()
|
D | rotate.c | 238 wnew = L_MAX(w, wnew); /* don't let it get smaller */ in pixEmbedForRotation() 239 hnew = L_MAX(h, hnew); /* don't let it get smaller */ in pixEmbedForRotation()
|
/external/tesseract/include/ |
D | environ.h | 126 #ifndef L_MAX 127 #define L_MAX(x,y) (((x) > (y)) ? (x) : (y)) macro
|