IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2007, 10:13:57 AM (19 years ago)
Author:
Paul Price
Message:

Working, at least for bias images.

Location:
trunk/ppSim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim

    • Property svn:ignore
      •  

        old new  
        1313Makefile.in
        1414missing
         15test
  • trunk/ppSim/src/ppSimCreate.c

    r12833 r12834  
    99#include "ppSim.h"
    1010
    11 pmFPAfile *ppSimCreate(const pmConfig *config)
     11pmFPAfile *ppSimCreate(pmConfig *config)
    1212{
    1313    PS_ASSERT_PTR_NON_NULL(config, NULL);
    1414
    15     const char *formatName = psMetadataLookupStr(NULL, config->arguments, "FORMAT"); // Input format name
     15    psString formatName = psMetadataLookupStr(NULL, config->arguments, "FORMAT"); // Input format name
     16    config->formatName = psMemIncrRefCounter(formatName);
    1617
    1718    psMetadata *formats = psMetadataLookupMetadata(NULL, config->camera, "FORMATS"); // The camera formats
     
    2021        return NULL;
    2122    }
    22     psMetadata *format = psMetadataLookupMetadata(NULL, formats, config->formatName); // The format of interest
     23    psMetadata *format = psMetadataLookupMetadata(NULL, formats, formatName); // Format of interest
    2324    if (!format) {
    2425        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find format %s in camera FORMATS.", formatName);
Note: See TracChangeset for help on using the changeset viewer.