Home
last modified time | relevance | path

Searched refs:CVT (Results 1 – 7 of 7) sorted by relevance

/libtiff-4.0.7/contrib/ras/
H A Dtif2ras.c53 #define CVT(x) (((x) * 255) / ((1L<<16)-1)) macro
228 red[i] = (u_char) CVT(redcolormap[i]);
229 green[i] = (u_char) CVT(greencolormap[i]);
230 blue[i] = (u_char) CVT(bluecolormap[i]);
/libtiff-4.0.7/contrib/win_dib/
H A Dtiff2dib.c27 #define CVT(x) (((x) * 255L) / ((1L<<16)-1)) macro
150 lpbmi->bmiColors[i].rgbRed =(BYTE) CVT(red[i]); in LoadTIFFinDIB()
151 lpbmi->bmiColors[i].rgbGreen = (BYTE) CVT(green[i]); in LoadTIFFinDIB()
152 lpbmi->bmiColors[i].rgbBlue = (BYTE) CVT(blue[i]); in LoadTIFFinDIB()
/libtiff-4.0.7/archive/tools/
H A Dsgisv.c230 #define CVT(x) (((x)*255)/100) macro
231 #define RED CVT(28) /* 28% */
232 #define GREEN CVT(59) /* 59% */
233 #define BLUE CVT(11) /* 11% */
/libtiff-4.0.7/tools/
H A Dtiff2bw.c233 #define CVT(x) (((x) * 255L) / ((1L<<16)-1)) in main() macro
235 red[i] = CVT(red[i]); in main()
236 green[i] = CVT(green[i]); in main()
237 blue[i] = CVT(blue[i]); in main()
239 #undef CVT in main()
H A Dpal2rgb.c178 #define CVT(x) (((x) * 255) / ((1L<<16)-1)) in main() macro
179 rmap[i] = CVT(rmap[i]); in main()
180 gmap[i] = CVT(gmap[i]); in main()
181 bmap[i] = CVT(bmap[i]); in main()
H A Dtiff2ps.c1758 #define CVT(x) (((x) * 255) / ((1L<<16)-1)) in PS_Lvl2colorspace() macro
1760 rmap[i] = CVT(rmap[i]); in PS_Lvl2colorspace()
1761 gmap[i] = CVT(gmap[i]); in PS_Lvl2colorspace()
1762 bmap[i] = CVT(bmap[i]); in PS_Lvl2colorspace()
1764 #undef CVT in PS_Lvl2colorspace()
2560 #define CVT(x) ((unsigned short) (((x) * 255) / ((1U<<16)-1))) in PSDataPalette() macro
2562 rmap[i] = CVT(rmap[i]); in PSDataPalette()
2563 gmap[i] = CVT(gmap[i]); in PSDataPalette()
2564 bmap[i] = CVT(bmap[i]); in PSDataPalette()
2566 #undef CVT in PSDataPalette()
/libtiff-4.0.7/libtiff/
H A Dtif_getimage.c2432 #define CVT(x) ((uint16)((x)>>8)) in cvtcmap() macro
2433 r[i] = CVT(r[i]); in cvtcmap()
2434 g[i] = CVT(g[i]); in cvtcmap()
2435 b[i] = CVT(b[i]); in cvtcmap()
2436 #undef CVT in cvtcmap()