Changeset 11754 for trunk/psModules/src/config/pmConfigCamera.c
- Timestamp:
- Feb 12, 2007, 1:39:32 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfigCamera.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfigCamera.c
r11687 r11754 30 30 // Remove certain concepts from the list of sources. These concepts are important in the mosaicking process, 31 31 // and are added explicitly to the defaults (elsewhere) so that the user can't get them wrong. 32 static void removeC onceptsSources(psMetadata *source // Source for concepts33 )32 static void removeCellConceptsSources(psMetadata *source // Source for concepts 33 ) 34 34 { 35 35 if (!source) { … … 43 43 removeConcept(source, "CELL.X0"); 44 44 removeConcept(source, "CELL.Y0"); 45 46 return; 47 } 48 49 // Remove certain concepts from the list of sources. These concepts are important in the mosaicking process, 50 // and are added explicitly to the defaults (elsewhere) so that the user can't get them wrong. 51 static void removeChipConceptsSources(psMetadata *source // Source for concepts 52 ) 53 { 54 if (!source) { 55 return; 56 } 57 45 58 removeConcept(source, "CHIP.XPARITY"); 46 59 removeConcept(source, "CHIP.YPARITY"); … … 50 63 return; 51 64 } 52 53 65 54 66 // Generate a mosaicked version of a camera configuration … … 286 298 } 287 299 288 removeC onceptsSources(translation);289 removeC onceptsSources(database);290 removeC onceptsSources(defaults);300 removeCellConceptsSources(translation); 301 removeCellConceptsSources(database); 302 removeCellConceptsSources(defaults); 291 303 292 304 // Add in the positioning concepts 293 psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.XPARITY", 0, NULL, 1);294 psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.YPARITY", 0, NULL, 1);295 305 psMetadataAddS32(defaults, PS_LIST_TAIL, "CELL.XPARITY", 0, NULL, 1); 296 306 psMetadataAddS32(defaults, PS_LIST_TAIL, "CELL.YPARITY", 0, NULL, 1); … … 307 317 308 318 if (level == PM_FPA_LEVEL_FPA) { 319 removeChipConceptsSources(translation); 320 removeChipConceptsSources(database); 321 removeChipConceptsSources(defaults); 322 psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.XPARITY", 0, NULL, 1); 323 psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.YPARITY", 0, NULL, 1); 309 324 psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.X0", 0, NULL, 0); 310 325 psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.Y0", 0, NULL, 0);
Note:
See TracChangeset
for help on using the changeset viewer.
