| 82 |
|
|
| 83 |
|
/* running real differences */ |
| 84 |
|
double diff2sum = 0; |
| 85 |
< |
int nsum = 0; |
| 85 |
> |
long nsum = 0; |
| 86 |
|
|
| 87 |
|
/* Report usage and exit */ |
| 88 |
|
static void |
| 134 |
|
return(1); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
+ |
/* Compare two color values for equivalence */ |
| 138 |
+ |
static int |
| 139 |
+ |
color_check(COLOR c1, COLOR c2) |
| 140 |
+ |
{ |
| 141 |
+ |
int p; |
| 142 |
+ |
|
| 143 |
+ |
if (!real_check(colval(c1,RED)+colval(c1,GRN)+colval(c1,BLU)*(1./3.), |
| 144 |
+ |
colval(c2,RED)+colval(c2,GRN)+colval(c2,BLU))*(1./3.)) |
| 145 |
+ |
return(0); |
| 146 |
+ |
|
| 147 |
+ |
p = (colval(c1,GRN) > colval(c1,RED)) ? GRN : RED; |
| 148 |
+ |
if (colval(c1,BLU) > colval(c1,p)) p = BLU; |
| 149 |
+ |
|
| 150 |
+ |
return(real_check(colval(c1,p), colval(c2,p))); |
| 151 |
+ |
} |
| 152 |
+ |
|
| 153 |
|
/* Compare two strings for equivalence */ |
| 154 |
|
static int |
| 155 |
|
equiv_string(char *s1, char *s2) |
| 543 |
|
return(0); |
| 544 |
|
} |
| 545 |
|
for (x = 0; x < scanlen(&rs1); x++) { |
| 546 |
< |
if (real_check(colval(scan1[x],RED), |
| 531 |
< |
colval(scan2[x],RED)) & |
| 532 |
< |
real_check(colval(scan1[x],GRN), |
| 533 |
< |
colval(scan2[x],GRN)) & |
| 534 |
< |
real_check(colval(scan1[x],BLU), |
| 535 |
< |
colval(scan2[x],BLU))) |
| 546 |
> |
if (color_check(scan1[x], scan2[x])) |
| 547 |
|
continue; |
| 548 |
|
if (report != REP_QUIET) { |
| 549 |
|
printf( |