Home
last modified time | relevance | path

Searched refs:cmapd (Results 1 – 5 of 5) sorted by relevance

/external/tesseract/liblept/
Dcolormap.c208 PIXCMAP *cmapd; in pixcmapCopy() local
215 if ((cmapd = (PIXCMAP *)CALLOC(1, sizeof(PIXCMAP))) == NULL) in pixcmapCopy()
218 if ((cmapd->array = (void *)CALLOC(1, nbytes)) == NULL) in pixcmapCopy()
220 memcpy(cmapd->array, cmaps->array, nbytes); in pixcmapCopy()
221 cmapd->n = cmaps->n; in pixcmapCopy()
222 cmapd->nalloc = cmaps->nalloc; in pixcmapCopy()
223 cmapd->depth = cmaps->depth; in pixcmapCopy()
225 return cmapd; in pixcmapCopy()
999 PIXCMAP *cmapd; in pixcmapColorToGray() local
1023 cmapd = pixcmapCopy(cmaps); in pixcmapColorToGray()
[all …]
Dpixconv.c1946 PIXCMAP *cmaps, *cmapd; in pixConvert2To8() local
1969 cmapd = pixcmapCreate(8); /* 8 bpp standard cmap */ in pixConvert2To8()
1974 pixcmapAddColor(cmapd, rval, gval, bval); in pixConvert2To8()
1978 pixcmapAddColor(cmapd, val0, val0, val0); in pixConvert2To8()
1979 pixcmapAddColor(cmapd, val1, val1, val1); in pixConvert2To8()
1980 pixcmapAddColor(cmapd, val2, val2, val2); in pixConvert2To8()
1981 pixcmapAddColor(cmapd, val3, val3, val3); in pixConvert2To8()
1983 pixSetColormap(pixd, cmapd); in pixConvert2To8()
2055 PIXCMAP *cmaps, *cmapd; in pixConvert4To8() local
2078 cmapd = pixcmapCreate(8); in pixConvert4To8()
[all …]
Dpix1.c648 PIXCMAP *cmaps, *cmapd; in pixCopyColormap() local
663 if ((cmapd = pixcmapCopy(cmaps)) == NULL) in pixCopyColormap()
665 pixSetColormap(pixd, cmapd); in pixCopyColormap()
Dgrayquant.c1763 PIXCMAP *cmapd; in pixGrayQuantFromCmap() local
1786 cmapd = pixcmapColorToGray(cmap, 0.3, 0.5, 0.2); in pixGrayQuantFromCmap()
1789 cmapd = pixcmapCopy(cmap); in pixGrayQuantFromCmap()
1795 pixcmapGetNearestGrayIndex(cmapd, i, &index); in pixGrayQuantFromCmap()
1802 pixSetColormap(pixd, cmapd); in pixGrayQuantFromCmap()
Dcolorquant1.c3204 PIXCMAP *cmap, *cmapd; in pixFewColorsOctcubeQuantMixed() local
3227 cmapd = pixcmapCreate(8); in pixFewColorsOctcubeQuantMixed()
3242 pixcmapAddColor(cmapd, rval, gval, bval); in pixFewColorsOctcubeQuantMixed()
3253 pixSetColormap(pixd, cmapd); in pixFewColorsOctcubeQuantMixed()
3819 PIXCMAP *cmap, *cmapd; in pixRemoveUnusedColors() local
3892 cmapd = pixcmapCreate(d); in pixRemoveUnusedColors()
3895 pixcmapAddColor(cmapd, rval, gval, bval); in pixRemoveUnusedColors()
3897 pixSetColormap(pixs, cmapd); in pixRemoveUnusedColors()