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

Comparing ray/src/common/spec_rgb.c (file contents):
Revision 2.22 by greg, Tue Apr 13 01:48:52 2010 UTC vs.
Revision 2.24 by greg, Fri May 18 22:48:39 2012 UTC

# Line 38 | Line 38 | float  xyneu[2] = {1./3., 1./3.};      /* neutral xy chroma
38   #define  INCWL          10              /* wavelength increment */
39   #define  NINC           40              /* # of values */
40  
41 < static BYTE  chroma[3][NINC] = {
41 > static uby8  chroma[3][NINC] = {
42          {                                                       /* X */
43                  0,   0,   0,   2,   6,   13,  22,  30,  36,  41,
44                  42,  43,  43,  44,  46,  52,  60,  71,  87,  106,
# Line 244 | Line 244 | RGBPRIMS  pr
244          int     i, j;
245          
246          for (i = 0; i < 3; i++) {
247 <                if ((pr[i][CIEX] <= -1.) | (pr[i][CIEY] <= -1.))
247 >                if ((pr[i][CIEX] <= -2.) | (pr[i][CIEY] <= -2.))
248                          return(0);
249 <                if ((pr[i][CIEX] >= 2.) | (pr[i][CIEY] >= 2.))
249 >                if ((pr[i][CIEX] >= 3.) | (pr[i][CIEY] >= 3.))
250                          return(0);
251 <                if (pr[i][CIEX] + pr[i][CIEY] <= -1.)
251 >                if (pr[i][CIEX] + pr[i][CIEY] <= -2.)
252                          return(0);
253 <                if (pr[i][CIEX] + pr[i][CIEY] >= 2.)
253 >                if (pr[i][CIEX] + pr[i][CIEY] >= 3.)
254                          return(0);
255          }
256          if ((pr[3][CIEX] <= 0.) | (pr[3][CIEX] >= 1.) |

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines