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

Comparing ray/src/px/pcond3.c (file contents):
Revision 3.3 by greg, Fri Oct 11 10:47:00 1996 UTC vs.
Revision 3.4 by greg, Wed Jan 8 17:57:01 1997 UTC

# Line 57 | Line 57 | double Lw;
57                  return(Bldmin);
58          if (b >= bwmax-FTINY)
59                  return(Bldmax);
60 <        return(Bldmin + cf(Bl(Lw))*(Bldmax-Bldmin));
60 >        return(Bldmin + cf(b)*(Bldmax-Bldmin));
61   }
62  
63  
# Line 207 | Line 207 | int    xres;
207                  mult = (Lb(b) - ldmin)/(ldmax - ldmin) / (Lw*inpexp);
208                  if (lumf == rgblum) mult *= WHTEFFICACY;
209                  scalecolor(scan[i], mult);
210 +        }
211 + }
212 +
213 +
214 + putmapping(fp)                  /* put out mapping function */
215 + FILE    *fp;
216 + {
217 +        double  b, s;
218 +        register int    i;
219 +        double  wlum, sf;
220 +
221 +        sf = scalef*inpexp;
222 +        if (lumf == cielum) sf *= WHTEFFICACY;
223 +        s = (bwmax - bwmin)/HISTRES;
224 +        for (i = 0, b = bwmin + .5*s; i < HISTRES; i++, b += s) {
225 +                wlum = Lb(b);
226 +                if (what2do&DO_LINEAR)
227 +                        fprintf(fp, "%e %e\n", wlum, sf*wlum);
228 +                else
229 +                        fprintf(fp, "%e %e\n", wlum, Lb(BLw(wlum)));
230          }
231   }
232  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines