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

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.19 by greg, Thu Mar 21 16:52:40 2019 UTC vs.
Revision 2.21 by greg, Wed Oct 19 21:25:20 2022 UTC

# Line 55 | Line 55 | extern double  dblur;                  /* depth-of-field blur paramet
55   static void onsig(int signo);
56   static void sigdie(int  signo, char  *msg);
57   static void printdefaults(void);
58 +                                        /* rpict additional features */
59 + #ifdef PERSIST
60 + #define RPICT_FEATURES  "Persist\nParallelPersist\n" \
61 +                        "Recovery\nIrradianceCalc\nViewTypes=v,l,a,h,s,c\n" \
62 +                        "HessianAmbientCache\nAmbientAveraging\nAmbientValueSharing\n" \
63 +                        "PixelJitter\nPixelSampling\nPixelMotion\nPixelDepthOfField\n" \
64 +                        "SmallSourceDrawing\nViewSequence\nProgressReporting\n"
65 + #else
66 + #define RPICT_FEATURES  "Recovery\nIrradianceCalc\nViewTypes=v,l,a,h,s,c\n" \
67 +                        "HessianAmbientCache\nAmbientAveraging\nAmbientValueSharing\n" \
68 +                        "PixelJitter\nPixelSampling\nPixelMotion\nPixelDepthOfField\n" \
69 +                        "SmallSourceDrawing\nViewSequence\nProgressReporting\n"
70 + #endif
71  
72  
73   int
# Line 84 | Line 97 | main(int  argc, char  *argv[])
97          tstart = time((time_t *)NULL);
98                                          /* global program name */
99          progname = argv[0] = fixargv0(argv[0]);
100 +                                        /* feature check only? */
101 +        strcat(RFeatureList, RPICT_FEATURES);
102 +        if (!strcmp(argv[1], "-features"))
103 +                return feature_status(argc-2, argv+2);
104                                          /* option city */
105          for (i = 1; i < argc; i++) {
106                                                  /* expand arguments */
# Line 303 | Line 320 | main(int  argc, char  *argv[])
320  
321          setambient();                   /* initialize ambient calculation */
322          
323 +        fflush(stdout);                 /* in case we're duplicating header */
324 +
325   #ifdef  PERSIST
326          if (persist) {
308                fflush(stdout);
327                  if (outfile == NULL) {          /* reconnect stdout */
328                          dup2(duped1, fileno(stdout));
329                          close(duped1);
# Line 386 | Line 404 | wputs(                         /* warning output function */
404  
405   void
406   eputs(                          /* put string to stderr */
407 <        register char  *s
407 >        char  *s
408   )
409   {
410          static int  midline = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines