Home
last modified time | relevance | path

Searched refs:CLAMPOFF (Results 1 – 2 of 2) sorted by relevance

/plan9/sys/src/cmd/jpg/
H A Dtorgbv.c10 #define CLAMPOFF 128 macro
12 static int clamp[CLAMPOFF+256+CLAMPOFF];
65 for(j=0; j<CLAMPOFF; j++) in torgbv()
68 clamp[CLAMPOFF+j] = (j>>4); in torgbv()
69 for(j=0; j<CLAMPOFF; j++) in torgbv()
70 clamp[CLAMPOFF+256+j] = (255>>4); in torgbv()
138 if(r >= 256+CLAMPOFF) in torgbv()
140 if(g >= 256+CLAMPOFF) in torgbv()
142 if(b >= 256+CLAMPOFF) in torgbv()
144 r1 = clamp[r+CLAMPOFF]; in torgbv()
[all …]
H A Dreadjpg.c28 CLAMPOFF = 300, enumerator
29 NCLAMP = CLAMPOFF+700
147 for(k=0; k<CLAMPOFF; k++) in jpginit()
149 for(; k<CLAMPOFF+256; k++) in jpginit()
150 clamp[k] = k-CLAMPOFF; in jpginit()
1220 r = clamp[(data[k+x]+128)+CLAMPOFF]; in colormap1()
1260 *rp++ = clamp[*p0++ + 128 + CLAMPOFF]; in colormapall1()
1261 *gp++ = clamp[*p1++ + 128 + CLAMPOFF]; in colormapall1()
1262 *bp++ = clamp[*p2++ + 128 + CLAMPOFF]; in colormapall1()
1272 *rp++ = clamp[(r>>11)+CLAMPOFF]; in colormapall1()
[all …]