118 |
|
/* set up gamma correction */ |
119 |
|
setcolrgam(gamv); |
120 |
|
/* figure out the bits per pixel */ |
121 |
< |
if (ncolors < 2 | ncolors > MAXCOLORS) |
121 |
> |
if ((ncolors < 2) | (ncolors > MAXCOLORS)) |
122 |
|
ncolors = MAXCOLORS; |
123 |
|
for (bitsperpix = 1; ncolors > 1<<bitsperpix; bitsperpix++) |
124 |
|
; |
158 |
|
if (bradj) |
159 |
|
shiftcolrs(scanln, xmax, bradj); |
160 |
|
colrs_gambs(scanln, xmax); |
161 |
< |
if (pixscan != NULL) |
161 |
> |
if (pixscan != NULL) { |
162 |
|
if (samplefac) |
163 |
|
neu_dith_colrs(pixscan, scanln, xmax); |
164 |
|
else |
165 |
|
dith_colrs(pixscan, scanln, xmax); |
166 |
+ |
} |
167 |
|
} |
168 |
|
|
169 |
|
|