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

Comparing ray/src/px/neuclrtab.c (file contents):
Revision 2.4 by greg, Fri Jul 1 15:03:37 1994 UTC vs.
Revision 2.5 by greg, Tue Aug 2 13:22:08 1994 UTC

# Line 314 | Line 314 | initnet()
314                  p = network[i];
315                  p[0] =
316                  p[1] =
317 <                p[2] = (i<<8) / clrtabsiz;
317 >                p[2] = (i<<(netbiasshift+8))/clrtabsiz;
318                  freq[i] = intbias/clrtabsiz;  /* 1/256 */
319                  bias[i] = 0;
320          }
# Line 357 | Line 357 | inxbuild()
357                          start = i;
358                  }
359          }
360 <        netindex[previous] = (start+clrtabsiz-1)>>1;
361 <        for (j=previous+1; j<clrtabsiz; j++) netindex[j] = clrtabsiz-1;
360 >        netindex[previous] = (start+255)>>1;
361 >        for (j=previous+1; j<256; j++) netindex[j] = 255;
362   }
363  
364  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines