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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.25 by greg, Fri Sep 15 22:04:04 1995 UTC vs.
Revision 2.27 by greg, Mon Oct 16 11:40:16 1995 UTC

# Line 76 | Line 76 | COLR   backcolr = BLKCOLR;             /* background color */
76   COLOR   backcolor = BLKCOLOR;           /* background color (float) */
77   double  backz = 0.0;                    /* background z value */
78   int     normdist = 1;                   /* i/o normalized distance? */
79 + char    ourfmt[LPICFMT+1] = PICFMT;     /* original picture format */
80   double  ourexp = -1;                    /* original picture exposure */
81   int     expadj = 0;                     /* exposure adjustment (f-stops) */
82   double  rexpadj = 1;                    /* real exposure adjustment */
# Line 92 | Line 93 | int    PDesc[3] = {-1,-1,-1};          /* rtrace process descript
93   #define childpid        (PDesc[2])
94   unsigned short  queue[PACKSIZ][2];      /* pending pixels */
95   int     packsiz;                        /* actual packet size */
96 < int     queuesiz;                       /* number of pixels pending */
96 > int     queuesiz = 0;                   /* number of pixels pending */
97  
98   extern double   movepixel();
99  
# Line 308 | Line 309 | char   *argv[];
309                  ourexp = rexpadj;
310          if (ourexp < .995 | ourexp > 1.005)
311                  fputexpos(ourexp, stdout);
312 <        fputformat(COLRFMT, stdout);
312 >        if (strcmp(ourfmt, PICFMT))             /* print format if known */
313 >                fputformat(ourfmt, stdout);
314          putc('\n', stdout);
315                                                          /* write picture */
316          writepicture();
# Line 334 | Line 336 | char   *s;
336          if (isheadid(s))
337                  return;
338          if (formatval(fmt, s)) {
339 <                wrongformat = strcmp(fmt, COLRFMT);
339 >                if (globmatch(ourfmt, fmt)) {
340 >                        wrongformat = 0;
341 >                        strcpy(ourfmt, fmt);
342 >                } else
343 >                        wrongformat = 1;
344                  return;
345          }
346          if (nvavg < 2) {
# Line 924 | Line 930 | int    (*fill)();
930                  for (x = 0; x < hresolu; x++)
931                          if (zscan(y)[x] <= 0)
932                                  (*fill)(x,y);
933 +        if (fill == rcalfill)
934 +                clearqueue();
935   }
936  
937  
# Line 1178 | Line 1186 | clearqueue()                           /* process queue */
1186                  if (averaging) {
1187                          setcolor(sscan(queue[i][1])[queue[i][0]],
1188                                          fbp[0], fbp[1], fbp[2]);
1189 <                        wscan(queue[i][1])[queue[i][0]] = MAXWT;
1189 >                        wscan(queue[i][1])[queue[i][0]] = 1;
1190                  } else
1191                          setcolr(pscan(queue[i][1])[queue[i][0]],
1192                                          fbp[0], fbp[1], fbp[2]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines