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

Comparing ray/src/util/radcompare.c (file contents):
Revision 2.20 by greg, Wed Aug 14 18:20:02 2019 UTC vs.
Revision 2.21 by greg, Thu Aug 15 17:28:45 2019 UTC

# Line 953 | Line 953 | main(int argc, char *argv[])
953                  return(2);
954          if (typ1 != typ2) {
955                  if (report != REP_QUIET)
956 <                        printf("%s: '%s' is %s and '%s' is %s\n",
956 >                        printf("%s: '%s' format is %s and '%s' is %s\n",
957                                          progname, f1name, file_type[typ1],
958                                          f2name, file_type[typ2]);
959                  return(1);
# Line 969 | Line 969 | main(int argc, char *argv[])
969                          printf("%s: warning - unrecognized format\n",
970                                          progname);
971          }
972 <        if (report >= REP_VERBOSE)
973 <                printf("%s: input file type is %s\n",
974 <                                progname, file_type[typ1]);
975 <
972 >        if (report >= REP_VERBOSE) {
973 >                printf("%s: data format is %s\n", progname, file_type[typ1]);
974 >                if ((typ1 == TYP_FLOAT) | (typ1 == TYP_DOUBLE)) {
975 >                        if (f1swap)
976 >                                printf("%s: input '%s' is byte-swapped\n",
977 >                                                progname, f1name);
978 >                        if (f2swap)
979 >                                printf("%s: input '%s' is byte-swapped\n",
980 >                                                progname, f2name);
981 >                }
982 >        }
983          switch (typ1) {                         /* compare based on type */
984          case TYP_BINARY:
985          case TYP_TMESH:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines