Searched refs:CLAMP (Results 1 – 3 of 3) sorted by relevance
| /libtiff-4.0.7/libtiff/ |
| H A D | tif_pixarlog.c | 990 wp[0] = (uint16)(((int32)CLAMP(ip[0])-(int32)CLAMP(ip[-stride])) & mask); in horizontalDifferenceF() 1005 #undef CLAMP in horizontalDifference16() 1011 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16() 1023 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16() 1024 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference16() 1040 wp[0] = (uint16)((CLAMP(ip[0])-CLAMP(ip[-stride])) & mask); in horizontalDifference16() 1055 #undef CLAMP in horizontalDifference8() 1061 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8() 1073 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8() 1074 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference8() [all …]
|
| H A D | tif_color.c | 179 #define CLAMP(f,min,max) ((f)<(min)?(min):(f)>(max)?(max):(f)) macro 190 Cb = CLAMP(Cb, 0, 255); in TIFFYCbCrtoRGB() 191 Cr = CLAMP(Cr, 0, 255); in TIFFYCbCrtoRGB() 194 *r = CLAMP(i, 0, 255); in TIFFYCbCrtoRGB() 197 *g = CLAMP(i, 0, 255); in TIFFYCbCrtoRGB() 199 *b = CLAMP(i, 0, 255); in TIFFYCbCrtoRGB() 276 #undef CLAMP
|
| /libtiff-4.0.7/archive/tools/ |
| H A D | ycbcr.c | 112 #define CLAMP(f,min,max) \ macro 137 eR = R - CLAMP(rR,0,255); in check() 138 eG = G - CLAMP(rG,0,255); in check() 139 eB = B - CLAMP(rB,0,255); in check() 146 , rR, CLAMP(rR,0,255) in check() 147 , rG, CLAMP(rG,0,255) in check() 148 , rB, CLAMP(rB,0,255) in check()
|