| 7 |
|
|
| 8 |
|
#include "copyright.h" |
| 9 |
|
|
| 10 |
+ |
#include <stdio.h> |
| 11 |
|
#include <math.h> |
| 12 |
+ |
|
| 13 |
+ |
#include "rtmisc.h" |
| 14 |
|
#include "color.h" |
| 15 |
|
|
| 13 |
– |
extern char *bmalloc(); |
| 16 |
|
|
| 17 |
|
#define MAXGSHIFT 31 /* maximum shift for gamma table */ |
| 18 |
|
|
| 23 |
|
|
| 24 |
|
int |
| 25 |
|
setcolrcor(f, a2) /* set brightness correction */ |
| 26 |
< |
double (*f)(); |
| 26 |
> |
double (*f)(double,double); |
| 27 |
|
double a2; |
| 28 |
|
{ |
| 29 |
|
double mult; |
| 45 |
|
|
| 46 |
|
int |
| 47 |
|
setcolrinv(f, a2) /* set inverse brightness correction */ |
| 48 |
< |
double (*f)(); |
| 48 |
> |
double (*f)(double,double); |
| 49 |
|
double a2; |
| 50 |
|
{ |
| 51 |
|
double mult; |
| 136 |
|
{ |
| 137 |
|
register int nexpo; |
| 138 |
|
|
| 139 |
< |
if (g_mant == NULL | g_nexp == NULL) |
| 139 |
> |
if ((g_mant == NULL) | (g_nexp == NULL)) |
| 140 |
|
return(-1); |
| 141 |
|
while (len-- > 0) { |
| 142 |
|
nexpo = g_nexp[scan[0][RED]]; |