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

Comparing ray/src/px/pcond2.c (file contents):
Revision 3.2 by greg, Fri Oct 4 16:10:41 1996 UTC vs.
Revision 3.4 by greg, Thu Jan 9 13:56:28 1997 UTC

# Line 20 | Line 20 | double inpexp = 1.0;                   /* input exposure value */
20  
21   char    *mbcalfile = NULL;              /* macbethcal mapping file */
22  
23 < static struct mbc       mbcond;         /* macbethcal conditioning struct */
23 > static struct mbc {
24 >        float   xa[3][6], ya[3][6];
25 >        COLORMAT        cmat;
26 > }       mbcond;                         /* macbethcal conditioning struct */
27  
28   static COLOR    *scanbuf;               /* scanline processing buffer */
29   static int      nread;                  /* number of scanlines processed */
# Line 60 | Line 63 | nextscan()                             /* read and condition next scanline */
63   #ifdef DEBUG
64                  fputs("done\n", stderr);
65   #endif
66 <                return(NULL);
66 >                free((char *)scanbuf);
67 >                return(scanbuf = NULL);
68          }
69          if (what2do&DO_ACUITY)
70                  acuscan(scanbuf, nread);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines