| 23 |
|
#define part(cn) ((cn)>>2) |
| 24 |
|
#define prim(cn) ((cn)&3) |
| 25 |
|
/* our color table (global) */ |
| 26 |
< |
BYTE clrtab[256][3]; |
| 26 |
> |
extern BYTE clrtab[256][3]; |
| 27 |
|
/* histogram of colors / color assignments */ |
| 28 |
|
static unsigned histo[NRED][NGRN][NBLU]; |
| 29 |
|
#define cndx(c) histo[((c)[RED]*NRED)>>8][((c)[GRN]*NGRN)>>8][((c)[BLU]*NBLU)>>8] |
| 41 |
|
#endif |
| 42 |
|
|
| 43 |
|
|
| 44 |
< |
new_histo() /* clear our histogram */ |
| 44 |
> |
new_histo(n) /* clear our histogram */ |
| 45 |
> |
int n; |
| 46 |
|
{ |
| 47 |
|
bzero((char *)histo, sizeof(histo)); |
| 48 |
+ |
return(0); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
|