Changeset 15131
- Timestamp:
- Sep 29, 2007, 5:54:09 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
r14954 r15131 141 141 file->mode = PM_FPA_MODE_WRITE; 142 142 file->save = false; 143 144 // XXX we are deprecating the use of FILE.SAVE in the camera config145 # if (0)146 char *save = psMetadataLookupStr (&status, data, "FILE.SAVE");147 if (save != NULL) {148 if (!strcasecmp (save, "TRUE")) {149 file->save = true;150 } else if (!strcasecmp (save, "FALSE")) {151 file->save = false;152 } else {153 psError(PS_ERR_IO, true, "Illegal value \"%s\" for FILE.SAVE for %s", save, name);154 psFree(file);155 return NULL;156 }157 }158 # endif159 143 160 144 // Use the camera we were told to, the camera of the provided FPA, or default to the default camera … … 187 171 file->camera = psMemIncrRefCounter(camera); 188 172 file->cameraName = psMemIncrRefCounter(cameraName); 173 174 // XXX this seems a bit of a hack: use the cameraName to determine the mosaic level... 175 # if (0) 176 if (cameraName) { 177 if (!strcmp(cameraName + strlen(cameraName) - 5, "-CHIP")) { 178 file->mosaicLevel = PM_FPA_LEVEL_CHIP; 179 } 180 if (!strcmp(cameraName + strlen(cameraName) - 5, "-FPA")) { 181 file->mosaicLevel = PM_FPA_LEVEL_FPA; 182 } 183 } 184 # endif 189 185 190 186 // Use the format we were told to, the format specified in the file rule, or default to the default format … … 941 937 942 938 pmFPA *fpa = pmFPAConstruct(src->camera); 939 // XXX should this use DefineOutputForFormat? 943 940 pmFPAfile *file = pmFPAfileDefineOutput (config, fpa, filename); 944 941 if (!file) {
Note:
See TracChangeset
for help on using the changeset viewer.
