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

Comparing ray/src/common/tmap16bit.c (file contents):
Revision 1.10 by greg, Fri May 20 02:06:38 2011 UTC vs.
Revision 1.11 by greg, Fri Jan 7 23:01:01 2022 UTC

# Line 257 | Line 257 | tmCvRGB48(TMstruct *tms, TMbright *ls, uby8 *cs,
257                                  cmon[BLU] = slum + pf*cmon[BLU];
258                          }
259                  } else if (tms->flags & TM_F_BW) {
260 <                        cmon[RED] = cmon[GRN] = cmon[BLU] = lum;
260 >                        int     j = 3;
261 >                        while (j--) cs[3*i+j] = tms->cdiv[j]/(TM_BRES>>8);
262 >                        continue;
263                  }
264                  bi = (double)MONGAMTSZ*tms->clf[RED]*cmon[RED]/lum;
265                  cs[3*i  ] = bi>=MONGAMTSZ ? 255 : mongamtab[bi];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines