1 |
– |
/* Copyright (c) 1995 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Convert MGF color to RGB representation defined below. |
6 |
|
*/ |
7 |
|
|
8 |
|
#include <stdio.h> |
9 |
+ |
#include <stdlib.h> |
10 |
|
|
11 |
|
#include "parser.h" |
12 |
|
|
47 |
|
}; |
48 |
|
|
49 |
|
|
50 |
< |
mgf2rgb(cin, intensity, cout) /* convert MGF color to RGB */ |
51 |
< |
register C_COLOR *cin; /* input MGF chrominance */ |
52 |
< |
double intensity; /* input luminance or reflectance */ |
53 |
< |
register float cout[3]; /* output RGB color */ |
50 |
> |
void |
51 |
> |
mgf2rgb( /* convert MGF color to RGB */ |
52 |
> |
register C_COLOR *cin, /* input MGF chrominance */ |
53 |
> |
double intensity, /* input luminance or reflectance */ |
54 |
> |
register float cout[3] /* output RGB color */ |
55 |
> |
) |
56 |
|
{ |
57 |
|
static double cie[3]; |
58 |
|
/* get CIE XYZ representation */ |