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/camera/pmFPAfile.c

    r21363 r22699  
    1818#include "pmFPAfile.h"
    1919#include "pmFPACopy.h"
    20 #include "pmConcepts.h"
     20#include "pmConceptsCopy.h"
    2121
    2222static void pmFPAfileFree(pmFPAfile *file)
     
    409409    // XXX this should be smarter (ie, only copy concepts from the current chips)
    410410    // but such a call is needed, so re-copy stuff rather than no copy
    411     pmFPACopyConcepts (out, in);
     411    pmConceptsCopyFPA(out, in, true, true);
    412412
    413413    // pmFPAWrite takes care of all PHUs as needed
Note: See TracChangeset for help on using the changeset viewer.