/external/tesseract/liblept/ |
D | blend.c | 124 static l_int32 blendComponents(l_int32 a, l_int32 b, l_float32 fract); 125 static l_int32 blendHardLightComponents(l_int32 a, l_int32 b, l_float32 fract); 150 l_float32 fract) in pixBlend() argument 193 pixd = pixBlendMask(NULL, pixs1, pixc, x, y, fract, in pixBlend() 196 pixd = pixBlendGray(NULL, pixs1, pixc, x, y, fract, in pixBlend() 199 pixd = pixBlendColor(NULL, pixs1, pixc, x, y, fract, 0, 0); in pixBlend() 235 l_float32 fract, in pixBlendMask() argument 258 if (fract < 0.0 || fract > 1.0) { in pixBlendMask() 260 fract = 0.5; in pixBlendMask() 315 val = (l_int32)(pixval + fract * (255 - 2 * pixval)); in pixBlendMask() [all …]
|
D | enhance.c | 520 l_float32 fract, in pixEqualizeTRC() argument 536 if (fract < 0.0 || fract > 1.0) in pixEqualizeTRC() 541 if (fract == 0.0) in pixEqualizeTRC() 554 if ((na = numaEqualizeTRC(pixd, fract, factor)) == NULL) in pixEqualizeTRC() 581 l_float32 fract, in numaEqualizeTRC() argument 594 if (fract < 0.0 || fract > 1.0) in numaEqualizeTRC() 599 if (fract == 0.0) in numaEqualizeTRC() 611 iout = iin + (l_int32)(fract * (itarg - iin)); in numaEqualizeTRC() 769 l_float32 fract) in pixUnsharpMasking() argument 778 if (fract <= 0.0 || halfwidth <= 0) { in pixUnsharpMasking() [all …]
|
D | partition.c | 47 l_float32 fract); 49 l_float32 fract); 174 l_float32 fract, in boxaGetWhiteblocks() argument 244 boxa4 = boxaGenerateSubboxes(box, boxa, maxperim, fract); in boxaGetWhiteblocks() 387 l_float32 fract) in boxaGenerateSubboxes() argument 402 boxp = boxaSelectPivotBox(box, boxa, maxperim, fract); in boxaGenerateSubboxes() 463 l_float32 fract) in boxaSelectPivotBox() argument 479 if (fract < 0.0 || fract > 1.0) { in boxaSelectPivotBox() 481 fract = 0.0; in boxaSelectPivotBox() 486 threshdist = fract * (w * w + h * h); in boxaSelectPivotBox() [all …]
|
D | graphics.c | 857 l_float32 fract) in pixRenderPtaBlend() argument 872 if (fract < 0.0 || fract > 1.0) { in pixRenderPtaBlend() 874 fract = 0.5; in pixRenderPtaBlend() 879 frval = fract * rval; in pixRenderPtaBlend() 880 fgval = fract * gval; in pixRenderPtaBlend() 881 fbval = fract * bval; in pixRenderPtaBlend() 890 nrval = (l_uint8)((1. - fract) * nrval + frval); in pixRenderPtaBlend() 892 ngval = (l_uint8)((1. - fract) * ngval + fgval); in pixRenderPtaBlend() 894 nbval = (l_uint8)((1. - fract) * nbval + fbval); in pixRenderPtaBlend() 1007 l_float32 fract) in pixRenderLineBlend() argument [all …]
|
D | numafunc2.c | 998 l_float32 startval, binsize, rankcount, total, sum, fract, val; in numaHistogramGetValFromRank() local 1028 fract = 0.0; in numaHistogramGetValFromRank() 1030 fract = (rankcount - sum) / val; in numaHistogramGetValFromRank() 1034 *prval = startval + binsize * ((l_float32)i + fract); in numaHistogramGetValFromRank() 1561 l_float32 xval1, xval2, yval1, yval2, delta1, delta2, crossval, fract; in numaCrossingsByThreshold() local 1593 fract = L_ABS(delta1) / L_ABS(yval1 - yval2); in numaCrossingsByThreshold() 1594 crossval = xval1 + fract * (xval2 - xval1); in numaCrossingsByThreshold() 1625 l_float32 prevval, curval, thresh, crossval, fract; in numaCrossingsByPeaks() local 1679 fract = L_ABS(delta1) / L_ABS(yval1 - yval2); in numaCrossingsByPeaks() 1680 crossval = xval1 + fract * (xval2 - xval1); in numaCrossingsByPeaks()
|
D | boxfunc3.c | 327 l_float32 fract) in pixBlendBoxaRandom() argument 341 if (fract < 0.0 || fract > 1.0) { in pixBlendBoxaRandom() 343 fract = 0.5; in pixBlendBoxaRandom() 360 pixBlendInRect(pixd, box, val, fract); in pixBlendBoxaRandom()
|
D | numafunc1.c | 926 l_float32 delu, dell, fract, d1, d2, d3; in numaInterpolateArbxVal() local 978 fract = dell / (fax[i] - fax[im]); in numaInterpolateArbxVal() 981 *pyval = fay[i] + fract * (fay[i + 1] - fay[i]); in numaInterpolateArbxVal() 1130 l_float32 del, xval, yval, excess, fract, minx, maxx, d1, d2, d3; in numaInterpolateArbxInterval() local 1208 fract = excess / (fax[im + 1] - fax[im]); in numaInterpolateArbxInterval() 1211 yval = fay[im] + fract * (fay[im + 1] - fay[im]); in numaInterpolateArbxInterval()
|
D | pix2.c | 942 l_float32 fract) in pixBlendInRect() argument 968 prval = (l_int32)((1. - fract) * prval + fract * rval); in pixBlendInRect() 969 pgval = (l_int32)((1. - fract) * pgval + fract * gval); in pixBlendInRect() 970 pbval = (l_int32)((1. - fract) * pbval + fract * bval); in pixBlendInRect()
|
D | leptprotos.h | 136 LEPT_DLL extern PIX * pixBlend ( PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract ); 137 …endMask ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 type ); 138 …Gray ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 type, l_i… 139 …olor ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 transpare… 141 …yAdapt ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 shift ); 143 …X * pixBlendHardLight ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract ); 250 LEPT_DLL extern PIX * pixBlendBoxaRandom ( PIX *pixs, BOXA *boxa, l_float32 fract ); 429 LEPT_DLL extern PIX * pixEqualizeTRC ( PIX *pixd, PIX *pixs, l_float32 fract, l_int32 factor ); 430 LEPT_DLL extern NUMA * numaEqualizeTRC ( PIX *pix, l_float32 fract, l_int32 factor ); 432 LEPT_DLL extern PIX * pixUnsharpMasking ( PIX *pixs, l_int32 halfwidth, l_float32 fract ); [all …]
|
D | pix4.c | 1815 l_float32 fract; in pixaFindAreaPerimRatio() local 1829 pixFindAreaPerimRatio(pixt, tab, &fract); in pixaFindAreaPerimRatio() 1830 numaAddNumber(na, fract); in pixaFindAreaPerimRatio() 1991 l_float32 fract; in pixaFindAreaFraction() local 2005 pixFindAreaFraction(pixt, tab, &fract); in pixaFindAreaFraction() 2006 numaAddNumber(na, fract); in pixaFindAreaFraction()
|
/external/ppp/pppd/plugins/pppoatm/ |
D | text2qos.c | 30 unsigned int rate,fract; in __t2q_get_rate() local 38 power = fract = 0; in __t2q_get_rate() 41 fract = fract*10+*end-48; in __t2q_get_rate() 54 while (power && fract) in __t2q_get_rate() 56 fract /= 10; in __t2q_get_rate() 60 fract *= 10; in __t2q_get_rate() 63 rate += fract; in __t2q_get_rate()
|
/external/webkit/WebCore/svg/graphics/filters/cg/ |
D | WKTableTransferFilter.cikernel | 34 float t = fract(k);
|
/external/tesseract/include/ |
D | leptprotos.h | 139 LEPT_DLL extern PIX * pixBlend ( PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract ); 140 …endMask ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 type ); 141 …Gray ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 type, l_i… 142 …olor ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 transpare… 144 …yAdapt ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract, l_int32 shift ); 146 …X * pixBlendHardLight ( PIX *pixd, PIX *pixs1, PIX *pixs2, l_int32 x, l_int32 y, l_float32 fract ); 252 LEPT_DLL extern PIX * pixBlendBoxaRandom ( PIX *pixs, BOXA *boxa, l_float32 fract ); 416 LEPT_DLL extern PIX * pixEqualizeTRC ( PIX *pixd, PIX *pixs, l_float32 fract, l_int32 factor ); 417 LEPT_DLL extern NUMA * numaEqualizeTRC ( PIX *pix, l_float32 fract, l_int32 factor ); 419 LEPT_DLL extern PIX * pixUnsharpMasking ( PIX *pix, l_int32 smooth, l_float32 fract ); [all …]
|
/external/webkit/WebCore/platform/graphics/win/ |
D | FontCGWin.cpp | 47 return f.value + f.fract / CGFloat(65536.0); in toCGFloat()
|
/external/skia/src/core/ |
D | SkPaint.cpp | 1121 SkScalar fract = SkScalarDiv(key-leftKey,rightKey-leftKey); in interpolate() local 1122 return lVal + SkScalarMul(fract, rVal-lVal); in interpolate()
|