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

Comparing ray/src/util/dctimestep.c (file contents):
Revision 2.40 by greg, Fri Mar 1 01:00:03 2019 UTC vs.
Revision 2.43 by greg, Wed Oct 23 17:00:14 2019 UTC

# Line 48 | Line 48 | sum_images(const char *fspec, const CMATRIX *cv, FILE
48                          error(SYSTEM, errmsg);
49                  }
50                  dt = DTfromHeader;
51 <                if ((err = cm_getheader(&dt, NULL, NULL, fp)) != NULL)
51 >                if ((err = cm_getheader(&dt, NULL, NULL, NULL, fp)) != NULL)
52                          error(USER, err);
53                  if ((dt != DTrgbe) & (dt != DTxyze) ||
54                                  !fscnresolu(&xr, &yr, fp)) {
# Line 187 | Line 187 | main(int argc, char *argv[])
187                          case 'a':
188                                  outfmt = DTascii;
189                                  break;
190 +                        case 'c':
191 +                                outfmt = DTrgbe;
192 +                                break;
193                          default:
194                                  goto userr;
195                          }
# Line 299 | Line 302 | main(int argc, char *argv[])
302                                          fprintf(ofp, "FRAME=%d\n", i);
303                                          fprintf(ofp, "NROWS=%d\n", rvec->nrows);
304                                          fputs("NCOLS=1\nNCOMP=3\n", ofp);
305 +                                        if ((outfmt == 'f') | (outfmt == 'd'))
306 +                                                fputendian(ofp);
307                                          fputformat((char *)cm_fmt_id[outfmt], ofp);
308                                          fputc('\n', ofp);
309                                  }
# Line 325 | Line 330 | main(int argc, char *argv[])
330                                  fprintf(ofp, "NROWS=%d\n", rmtx->nrows);
331                                  fprintf(ofp, "NCOLS=%d\n", rmtx->ncols);
332                                  fputs("NCOMP=3\n", ofp);
333 +                                if ((outfmt == 'f') | (outfmt == 'd'))
334 +                                        fputendian(ofp);
335                                  fputformat((char *)cm_fmt_id[outfmt], ofp);
336                                  fputc('\n', ofp);
337                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines