IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2009, 2:45:31 PM (17 years ago)
Author:
Paul Price
Message:

Reorganised the concepts files, moving the Write functions into pmConceptsWrite, and the Read functions into pmConceptsRead, which sort of makes sense. Added new type of concept property: copy. Most concepts use the default copy method (which is to simply copy the item), but for the TIMESYS concepts, we want to ensure that the target is of the correct type --- if it's already set (e.g., via the DEFAULTS), then we don't copy it. This will allow us to set the target TIMESYS using the DEFAULTS in the camera format, and have the output time be adjusted appropriately. Without this, the TIMESYS is simply copied, and specifying the TIMESYS in the DEFAULTS results in a warning ('values don't match'). Removed pmFPACopyConcepts, since it is pretty much the same as pmConceptsCopyFPA.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r22683 r22699  
    13501350
    13511351
     1352psMetadataItem *p_pmConceptCopy_TIMESYS(const psMetadataItem *target,
     1353                                        const psMetadataItem *source,
     1354                                        const psMetadata *cameraFormat,
     1355                                        const pmFPA *fpa,
     1356                                        const pmChip *chip,
     1357                                        const pmCell *cell)
     1358{
     1359    if (!target || target->data.S32 == -1) {
     1360        // Replace
     1361        return psMetadataItemCopy(source);
     1362    }
     1363    // Keep what we've got --- it's been mandated by use of the DEFAULTS
     1364    return psMemIncrRefCounter((psMetadataItem*)target);
     1365}
Note: See TracChangeset for help on using the changeset viewer.