ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/mgflib/cvrgb.c
(Generate patch)

Comparing ray/src/cv/mgflib/cvrgb.c (file contents):
Revision 1.1 by greg, Fri Dec 1 16:25:37 1995 UTC vs.
Revision 1.3 by schorsch, Sat Nov 15 17:54:06 2003 UTC

# Line 1 | Line 1
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  
# Line 49 | Line 47 | float  xyz2rgbmat[3][3] = {            /* XYZ to RGB conversion m
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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines