Changeset 27020 for trunk/ippTools/src/difftool.c
- Timestamp:
- Feb 19, 2010, 5:46:13 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/difftool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r27007 r27020 136 136 PXOPT_LOOKUP_STR(data_group, config->args, "-set_data_group", false, false); 137 137 PXOPT_LOOKUP_STR(dist_group, config->args, "-set_dist_group", false, false); 138 PXOPT_LOOKUP_STR(reduction, config->args, "-rset_eduction", false, false); 138 PXOPT_LOOKUP_STR(reduction, config->args, "-set_reduction", false, false); 139 PXOPT_LOOKUP_S16(diff_mode, config->args, "-set_diff_mode", false, false); 139 140 PXOPT_LOOKUP_STR(note, config->args, "-set_note", false, false); 140 141 … … 157 158 exposure, 158 159 false, 160 diff_mode, 159 161 note 160 162 ); … … 990 992 return false; 991 993 } 992 994 psS16 diff_mode = 0; 995 if ((input_warp_id != PS_MAX_S64) && (template_warp_id != PS_MAX_S64)) { 996 diff_mode = 1; 997 } 998 else if ((input_warp_id != PS_MAX_S64) && (template_stack_id != PS_MAX_S64)) { 999 diff_mode = 2; 1000 } 1001 else if ((input_stack_id != PS_MAX_S64) && (template_warp_id != PS_MAX_S64)) { 1002 diff_mode = 3; 1003 } 1004 else if ((input_stack_id != PS_MAX_S64) && (template_stack_id != PS_MAX_S64)) { 1005 diff_mode = 4; 1006 } 1007 1008 993 1009 // default 994 1010 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 1009 1025 false, 1010 1026 0, // magicked 1027 diff_mode, // diff_mode 1011 1028 note 1012 1029 ); … … 1114 1131 1115 1132 psArray *list = psArrayAllocEmpty(16); // List of runs, to print 1116 1133 // Populated Run will generate the diff_mode value 1117 1134 if (!populatedrun(list, workdir, skycell_id, tess_id, label, data_group ? data_group : label, dist_group, reduction, note, 1118 1135 input_warp_id ? input_warp_id : PS_MAX_S64, … … 1419 1436 true, // exposure 1420 1437 0, // magicked 1438 2, // diff_mode for warp-stack difference 1421 1439 note 1422 1440 ); … … 1760 1778 } 1761 1779 1762 diffRunRow *run = diffRunRowAlloc(0, "reg", workdir, label, data_group ? data_group : label, dist_group, reduction, NULL, registered, 1763 tess_id, true, true, false, note); // Run to insert 1780 diffRunRow *run = diffRunRowAlloc(0, 1781 "reg", 1782 workdir, 1783 label, 1784 data_group ? data_group : label, 1785 dist_group, 1786 reduction, 1787 NULL, // dvodb 1788 registered, 1789 tess_id, 1790 true, // bothways 1791 true, // exposure 1792 false, // magicked 1793 1, // diff_mode for warp-warp diff 1794 note); // Run to insert 1764 1795 if (!diffRunInsertObject(config->dbh, run)) { 1765 1796 psError(PS_ERR_UNKNOWN, false, "database error"); … … 2042 2073 false, // exposure 2043 2074 0, // magicked 2075 4, // diff_mode 2044 2076 note 2045 2077 );
Note:
See TracChangeset
for help on using the changeset viewer.
