Changeset 14462
- Timestamp:
- Aug 9, 2007, 4:25:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAfileDefine.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileDefine.c
r14203 r14462 95 95 // Define an output pmFPAfile 96 96 pmFPAfile *pmFPAfileDefineOutputForFormat(const pmConfig *config, // Configuration 97 pmFPA *fpa, // Optional FPA to bind98 const char *name, // Name of file rule99 const char *cameraName, // Name of camera configuration to use100 const char *formatName // Name of camera format to use97 pmFPA *fpa, // Optional FPA to bind 98 const char *name, // Name of file rule 99 const char *cameraName, // Name of camera configuration to use 100 const char *formatName // Name of camera format to use 101 101 ) 102 102 { … … 1009 1009 pmFPAfile *file; // The new file 1010 1010 if (config->cameraName[0] == '_' && 1011 strcmp(config->cameraName + strlen(config->cameraName) - 5, "-CHIP") == 0) { 1011 (strcmp(config->cameraName + strlen(config->cameraName) - 5, "-CHIP") == 0 || 1012 strcmp(config->cameraName + strlen(config->cameraName) - 8, "-SKYCELL") == 0)) { 1012 1013 // The input camera has already been mosaicked to this level 1013 1014 file = pmFPAfileDefineOutputForFormat(config, NULL, filename, config->cameraName, config->formatName); 1014 1015 } else { 1015 psString cameraName = NULL; // Name of the new (automatically-generated) camera configuration 1016 psStringAppend(&cameraName, "_%s-CHIP", config->cameraName); 1016 psString cameraName = NULL; // Name of the new (automatically-generated) camera configuration 1017 if (config->cameraName[0] == '_' && 1018 strcmp(config->cameraName + strlen(config->cameraName) - 4 , "-FPA") == 0) { 1019 cameraName = psStringNCopy(config->cameraName + 1, strlen(config->cameraName) - 5); 1020 } else { 1021 cameraName = psMemIncrRefCounter(config->cameraName); 1022 } 1023 psString newCameraName = NULL; // Name of the new (automatically-generated) camera configuration 1024 psStringAppend(&newCameraName, "_%s-CHIP", cameraName); 1017 1025 1018 1026 // Find the correct camera configuration … … 1041 1049 pmFPAfile *file; // The new file 1042 1050 if (config->cameraName[0] == '_' && 1043 strcmp(config->cameraName + strlen(config->cameraName) - 4 , "-FPA") == 0) { 1051 (strcmp(config->cameraName + strlen(config->cameraName) - 4 , "-FPA") == 0 || 1052 strcmp(config->cameraName + strlen(config->cameraName) - 8, "-SKYCELL") == 0)) { 1044 1053 // The input camera has already been mosaicked to this level 1045 1054 file = pmFPAfileDefineOutputForFormat(config, NULL, filename, config->cameraName, config->formatName); 1046 1055 } else { 1047 1056 1048 psString original ;// Name of the original camera configuration1057 psString original = NULL; // Name of the original camera configuration 1049 1058 if (config->cameraName[0] == '_' && 1050 1059 strcmp(config->cameraName + strlen(config->cameraName) - 5 , "-CHIP") == 0) { 1051 1060 // It's a chip mosaic; we need to get the original name 1052 1061 original = psStringNCopy(config->cameraName + 1, strlen(config->cameraName) - 6); 1062 } else if (config->cameraName[0] == '_' && 1063 strcmp(config->cameraName + strlen(config->cameraName) - 8, "-SKYCELL") == 0) { 1064 original = psStringNCopy(config->cameraName + 1, strlen(config->cameraName) - 9); 1053 1065 } else { 1054 1066 original = psMemIncrRefCounter(config->cameraName);
Note:
See TracChangeset
for help on using the changeset viewer.
