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

Comparing ray/src/util/rcode_norm.c (file contents):
Revision 2.1 by greg, Fri Jul 19 02:18:44 2019 UTC vs.
Revision 2.3 by greg, Tue Aug 13 16:31:35 2019 UTC

# Line 22 | Line 22 | usage_exit(int code)
22   {
23          fputs("Usage: ", stderr);
24          fputs(progname, stderr);
25 <        fputs(" [-h[io]][-H[io]][-f[afd]] [input [output]]\n", stderr);
25 >        fputs(" [-h[io]][-H[io]][-f[afd]] [input [output.nrm]]\n", stderr);
26          fputs("   Or: ", stderr);
27          fputs(progname, stderr);
28 <        fputs(" -r [-i][-u][-h[io]][-H[io]][-f[afd]] [input [output]]\n",
28 >        fputs(" -r [-i][-u][-h[io]][-H[io]][-f[afd]] [input.nrm [output]]\n",
29                          stderr);
30          exit(code);
31   }
# Line 38 | Line 38 | encode_normals(NORMCODEC *ncp)
38          long    nexpected = (long)ncp->res.xr * ncp->res.yr;
39  
40          if (ncp->inpfmt[0]) {
41 <                if (strcasestr(ncp->inpfmt, "ascii") != NULL)
41 >                if (strstr(ncp->inpfmt, "ascii") != NULL)
42                          ncp->format = 'a';
43 <                else if (strcasestr(ncp->inpfmt, "float") != NULL)
43 >                else if (strstr(ncp->inpfmt, "float") != NULL)
44                          ncp->format = 'f';
45 <                else if (strcasestr(ncp->inpfmt, "double") != NULL)
45 >                else if (strstr(ncp->inpfmt, "double") != NULL)
46                          ncp->format = 'd';
47                  else {
48                          fputs(ncp->inpname, stderr);
# Line 304 | Line 304 | main(int argc, char *argv[])
304                          fputs(": -i option requires input resolution\n", stderr);
305                          usage_exit(1);
306                  }
307 <                nc.hdrflags &= ~(HF_HEADOUT|HF_RESOUT);
307 >                nc.hdrflags &= ~HF_RESOUT;
308          }
309          if (a < argc-2) {
310                  fputs(progname, stderr);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines