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

Comparing ray/src/common/tmapcolrs.c (file contents):
Revision 3.22 by greg, Mon Oct 24 04:25:01 2005 UTC vs.
Revision 3.23 by greg, Tue Nov 15 06:53:00 2005 UTC

# Line 432 | Line 432 | register TMstruct      *tms;
432          cd = (COLRDATA *)tms->pd[colrReg];
433          for (i = 3; i--; )
434                  cd->clfb[i] = 0x100*tms->clf[i] + .5;
435 <        d = TM_BRTSCALE*log(tms->inpsf);
436 <        cd->inpsfb = d<0. ? d-.5 : d+.5;
435 >        cd->inpsfb = tmCvLuminance(tms->inpsf);
436          for (i = 3; i--; )
437                  for (j = 3; j--; ) {
438                          d = tms->cmat[i][j] / tms->inpsf;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines