Changeset 12834 for trunk/ppSim/src/ppSimCreate.c
- Timestamp:
- Apr 16, 2007, 10:13:57 AM (19 years ago)
- Location:
- trunk/ppSim
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppSimCreate.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim
- Property svn:ignore
-
old new 13 13 Makefile.in 14 14 missing 15 test
-
- Property svn:ignore
-
trunk/ppSim/src/ppSimCreate.c
r12833 r12834 9 9 #include "ppSim.h" 10 10 11 pmFPAfile *ppSimCreate( constpmConfig *config)11 pmFPAfile *ppSimCreate(pmConfig *config) 12 12 { 13 13 PS_ASSERT_PTR_NON_NULL(config, NULL); 14 14 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); 16 17 17 18 psMetadata *formats = psMetadataLookupMetadata(NULL, config->camera, "FORMATS"); // The camera formats … … 20 21 return NULL; 21 22 } 22 psMetadata *format = psMetadataLookupMetadata(NULL, formats, config->formatName); // The format of interest23 psMetadata *format = psMetadataLookupMetadata(NULL, formats, formatName); // Format of interest 23 24 if (!format) { 24 25 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.
