IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2021, 3:54:37 PM (5 years ago)
Author:
eugene
Message:

add utility command to report on pmFPAfiles; fix typo; add quick combine-by-percentile; remove some old and excessively-verbose test blocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-dev-20210817/psModules/src/camera/pmFPAfileIO.c

    r41535 r41843  
    145145}
    146146
     147// list all defined pmFPAfiles
     148bool pmFPAfileIOList (pmConfig *config)
     149{
     150    PS_ASSERT_PTR_NON_NULL(config, false);
     151    PS_ASSERT_PTR_NON_NULL(config->files, false);
     152
     153    psMetadata *files = config->files;
     154
     155    // attempt to perform all create, read, write, close operations
     156    psMetadataItem *item = NULL;
     157    psMetadataIterator *iter = psMetadataIteratorAlloc (files, PS_LIST_HEAD, NULL);
     158    while ((item = psMetadataGetAndIncrement (iter)) != NULL) {
     159        pmFPAfile *file = item->data.V;
     160       
     161        fprintf (stderr, "%s : %d %d %d : %d %d %d %d\n", file->name, file->type, file->mode, file->state,
     162                 file->fileLevel, file->dataLevel, file->freeLevel, file->mosaicLevel);
     163    }
     164    psFree (iter);
     165    return true;
     166}
     167
    147168// read the file, if necessary and possible
    148169bool pmFPAfileRead(pmFPAfile *file, const pmFPAview *view, pmConfig *config)
     
    359380
    360381    if (file->state & PM_FPA_STATE_INACTIVE) {
    361         psTrace("psModules.camera", 6, "skip write for %s, files is inactive", file->name);
     382        psTrace("psModules.camera", 6, "skip write for %s, file is inactive", file->name);
    362383        return true;
    363384    }
Note: See TracChangeset for help on using the changeset viewer.