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.18 by greg, Sat Jun 27 03:37:24 2020 UTC vs.
Revision 3.20 by greg, Wed Sep 11 18:56:12 2024 UTC

# Line 196 | Line 196 | getlumsamp(int n)              /* get set of random point sample l
196                  int     sv = 0;
197                  double  rval, cumprob = 0;
198  
199 <                if (x <= 0 && freadcolrs(cscan, x=scanlen(&inpres), infp) < 0) {
199 >                if (x <= 0 && fread2colrs(cscan, x=scanlen(&inpres), infp,
200 >                                                NCSAMP, WLPART) < 0) {
201                          fprintf(stderr, "%s: %s: scanline read error\n",
202                                          progname, infn);
203                          exit(1);
# Line 459 | Line 460 | mkbrmap(void)                  /* make dynamic range map */
460                                  modhist[i] = ceiling;
461                          }
462                  }
463 <        } while (trimmings > histot*CVRATIO);
463 >        } while (trimmings > mhistot*CVRATIO);
464  
465   #if ADJ_VEIL
466          mkcrfimage();                   /* contrast reduction image */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines