Changeset 10447 for trunk/psModules/src/camera/pmFPAfile.c
- Timestamp:
- Dec 4, 2006, 12:21:28 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAfile.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfile.c
r10385 r10447 182 182 char *name = psMetadataLookupStr (NULL, file->names, "OUTPUT"); 183 183 if (name != NULL) { 184 newName = psStringSubstitute (newName, name, "{OUTPUT}");184 psStringSubstitute(&newName, name, "{OUTPUT}"); 185 185 } 186 186 } … … 190 190 char *name = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 191 191 if (name != NULL) { 192 newName = psStringSubstitute (newName, name, "{CHIP.NAME}");192 psStringSubstitute(&newName, name, "{CHIP.NAME}"); 193 193 } 194 194 } … … 201 201 psStringAppend (&name, "%02d", view->chip); 202 202 } 203 newName = psStringSubstitute (newName, name, "{CHIP.N}");203 psStringSubstitute(&newName, name, "{CHIP.N}"); 204 204 psFree (name); 205 205 } … … 209 209 char *name = psMetadataLookupStr (NULL, cell->concepts, "CELL.NAME"); 210 210 if (name != NULL) { 211 newName = psStringSubstitute (newName, name, "{CELL.NAME}");211 psStringSubstitute(&newName, name, "{CELL.NAME}"); 212 212 } 213 213 } … … 220 220 psStringAppend (&name, "%02d", view->cell); 221 221 } 222 newName = psStringSubstitute (newName, name, "{CELL.N}");222 psStringSubstitute(&newName, name, "{CELL.N}"); 223 223 } 224 224 if (strstr (newName, "{EXTNAME}") != NULL) { 225 225 pmHDU *hdu = pmFPAviewThisHDU (view, file->fpa); 226 226 if (hdu->extname && *hdu->extname) { 227 newName = psStringSubstitute (newName, hdu->extname, "{EXTNAME}");227 psStringSubstitute(&newName, hdu->extname, "{EXTNAME}"); 228 228 } 229 229 } … … 232 232 char *name = psMetadataLookupStr (NULL, file->fpa->concepts, "FPA.FILTER"); 233 233 if (name && *name) { 234 newName = psStringSubstitute (newName, name, "{FILTER}");234 psStringSubstitute(&newName, name, "{FILTER}"); 235 235 } 236 236 } … … 242 242 char *name = psStringCopy ("isp"); 243 243 if (name && *name) { 244 newName = psStringSubstitute (newName, name, "{CAMERA}");244 psStringSubstitute(&newName, name, "{CAMERA}"); 245 245 } 246 246 psFree (name); … … 254 254 char *ID = psMetadataLookupStr (NULL, filterTable, filterName); 255 255 if (ID && *ID) { 256 newName = psStringSubstitute (newName, ID, "{FILTER.ID}");256 psStringSubstitute(&newName, ID, "{FILTER.ID}"); 257 257 } 258 258 }
Note:
See TracChangeset
for help on using the changeset viewer.
