IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2010, 5:08:29 PM (16 years ago)
Author:
eugene
Message:

updates to support psphotStack

Location:
trunk/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r27417 r27657  
    12711271    file->name = psStringCopy (name);
    12721272
     1273    // free a previously existing readout
     1274    psFree(file->readout);
    12731275    file->readout = readout;
    1274     psMetadataAddPtr(files, PS_LIST_TAIL, name, PS_DATA_UNKNOWN, "", file);
     1276
     1277    // allow for multiple entries
     1278    // XXX handle replace vs multiple?
     1279    psMetadataAddPtr(files, PS_LIST_TAIL, name, PS_DATA_UNKNOWN | PS_META_DUPLICATE_OK, "", file);
    12751280    psFree(file);
    12761281    // we free this copy of file, but 'files' still has a copy
     
    13131318                                const char *name, // name of internal/external file
    13141319                                const pmFPA *fpa, // use this fpa to generate
    1315                                 const psImageBinning *binning) {
     1320                                const psImageBinning *binning,
     1321                                int index) {
    13161322  pmReadout *readout = NULL;
    13171323
    1318   bool status = true;
    1319   pmFPAfile *file = psMetadataLookupPtr(&status, config->files, name);
     1324  pmFPAfile *file = pmFPAfileSelectSingle(config->files, name, index);
    13201325
    13211326  // if the file does not exist, it is not being used as an I/O file: define an internal version
    13221327  if (file == NULL) {
    1323     readout = pmFPAfileDefineInternal (config->files, name, binning->nXruff, binning->nYruff, PS_TYPE_F32);
    1324     return readout;
     1328      // XXX currently, we do not guarantee that the defined file lands on entry 'index'
     1329      psAssert (binning, "internal files must be supplied a psImageBinning for the output images size");
     1330      readout = pmFPAfileDefineInternal (config->files, name, binning->nXruff, binning->nYruff, PS_TYPE_F32);
     1331      return readout;
    13251332  }
    13261333
Note: See TracChangeset for help on using the changeset viewer.