IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15131


Ignore:
Timestamp:
Sep 29, 2007, 5:54:09 PM (19 years ago)
Author:
eugene
Message:

why is file.mosaicLevel not being set?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r14954 r15131  
    141141    file->mode = PM_FPA_MODE_WRITE;
    142142    file->save = false;
    143 
    144 // XXX we are deprecating the use of FILE.SAVE in the camera config
    145 # 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 # endif
    159143
    160144    // Use the camera we were told to, the camera of the provided FPA, or default to the default camera
     
    187171    file->camera = psMemIncrRefCounter(camera);
    188172    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
    189185
    190186    // Use the format we were told to, the format specified in the file rule, or default to the default format
     
    941937
    942938    pmFPA *fpa = pmFPAConstruct(src->camera);
     939    // XXX should this use DefineOutputForFormat?
    943940    pmFPAfile *file = pmFPAfileDefineOutput (config, fpa, filename);
    944941    if (!file) {
Note: See TracChangeset for help on using the changeset viewer.