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

Comparing ray/src/hd/rhpict.c (file contents):
Revision 3.4 by gwlarson, Tue Mar 9 10:55:24 1999 UTC vs.
Revision 3.5 by gwlarson, Tue Mar 9 14:23:51 1999 UTC

# Line 18 | Line 18 | char   *hdkfile;               /* holodeck file name */
18   VIEW    myview = STDVIEW;       /* current output view */
19   int     xres = 512, yres = 512; /* max. horizontal and vertical resolution */
20   char    *outspec = NULL;        /* output file specification */
21 + int     randflag = 0;           /* random resampling algorithm? */
22   double  pixaspect = 1.;         /* pixel aspect ratio */
23   int     seqstart = 0;           /* sequence start frame */
24   double  expval = 1.;            /* exposure value */
# Line 74 | Line 75 | char   *argv[];
75                                  goto userr;
76                          outspec = argv[++i];
77                          break;
78 +                case 'r':                       /* random sampling */
79 +                        randflag = 1;
80 +                        break;
81 +                case 's':                       /* smooth sampling */
82 +                        randflag = 0;
83 +                        break;
84                  case 'S':                       /* sequence start */
85                          if (badarg(argc-i-1,argv+i+1,"i"))
86                                  goto userr;
# Line 111 | Line 118 | char   *argv[];
118          quit(0);                                /* all done! */
119   userr:
120          fprintf(stderr,
121 < "Usage: %s [-w][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n",
121 > "Usage: %s [-w][-r|-s][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n",
122                          progname);
123          quit(1);
124   }
# Line 171 | Line 178 | int    nb;
178                  bil[i].b = bl[i].bi;
179          }
180          hdloadbeams(bil, nb, pixBeam);
181 <        pixFlush();
181 >        pixFinish(randflag);
182          free((char *)bil);
183   }
184  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines