Searched refs:ngval (Results 1 – 4 of 4) sorted by relevance
/external/tesseract/liblept/ |
D | enhance.c | 1479 l_int32 ncolors, rval, gval, bval, nrval, ngval, nbval; in pixMultConstantColor() local 1505 ngval = (l_int32)(gfact * gval); in pixMultConstantColor() 1508 ngval = L_MIN(255, ngval); in pixMultConstantColor() 1510 pixcmapResetColor(cmap, i, nrval, ngval, nbval); in pixMultConstantColor() 1527 ngval = (l_int32)(gfact * gval); in pixMultConstantColor() 1530 ngval = L_MIN(255, ngval); in pixMultConstantColor() 1532 composeRGBPixel(nrval, ngval, nbval, &nval); in pixMultConstantColor() 1577 l_int32 ncolors, rval, gval, bval, nrval, ngval, nbval; in pixMultMatrixColor() local 1610 ngval = (l_int32)(v[3] * rval + v[4] * gval + v[5] * bval); in pixMultMatrixColor() 1613 ngval = L_MAX(0, L_MIN(255, ngval)); in pixMultMatrixColor() [all …]
|
D | paintcmap.c | 353 l_int32 i, n, erval, egval, ebval, nrval, ngval, nbval, newindex; in addColorizedGrayToCmap() local 371 ngval = (l_int32)(gval * (l_float32)egval / 255.); in addColorizedGrayToCmap() 373 if (pixcmapAddNewColor(cmap, nrval, ngval, nbval, &newindex)) { in addColorizedGrayToCmap() 387 ngval = gval + in addColorizedGrayToCmap() 391 if (pixcmapAddNewColor(cmap, nrval, ngval, nbval, &newindex)) { in addColorizedGrayToCmap()
|
D | blend.c | 1075 l_int32 valb, vald, nvald, rval, gval, bval, nrval, ngval, nbval; in pixFadeWithGray() local 1131 ngval = gval + (l_int32)(fract * (255. - (l_float32)gval)); in pixFadeWithGray() 1136 ngval = gval - (l_int32)(fract * (l_float32)gval); in pixFadeWithGray() 1139 composeRGBPixel(nrval, ngval, nbval, &nval32); in pixFadeWithGray() 1498 l_int32 nrval, ngval, nbval, aveval; in pixColorGray() local 1564 ngval = (l_int32)(gval * aveval * factor); in pixColorGray() 1571 ngval = gval + (l_int32)((255. - gval) * aveval * factor); in pixColorGray() 1574 composeRGBPixel(nrval, ngval, nbval, &val32); in pixColorGray()
|
D | graphics.c | 860 l_uint8 nrval, ngval, nbval; in pixRenderPtaBlend() local 891 ngval = GET_DATA_BYTE(&val32, COLOR_GREEN); in pixRenderPtaBlend() 892 ngval = (l_uint8)((1. - fract) * ngval + fgval); in pixRenderPtaBlend() 895 composeRGBPixel(nrval, ngval, nbval, &val32); in pixRenderPtaBlend()
|