IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15946


Ignore:
Timestamp:
Dec 27, 2007, 6:47:53 PM (18 years ago)
Author:
eugene
Message:

adding concept inheritance in some cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r15931 r15946  
    1919#include "pmFPAfile.h"
    2020#include "pmFPAConstruct.h"
     21
     22#include "pmConcepts.h"
    2123
    2224// Parse an option from a metadata, returning the appropriate integer value
     
    10161018    file->xBin = xBin;
    10171019    file->yBin = yBin;
     1020
     1021    // inherit the concepts from the src fpa:
     1022    pmFPACopyConcepts(file->fpa, file->src);
     1023   
    10181024    return file;
    10191025}
     
    11201126    file->src = psMemIncrRefCounter(src); // inherit output elements from this source pmFPA
    11211127
     1128    // inherit the concepts from the src fpa:
     1129    pmFPACopyConcepts(file->fpa, file->src);
     1130
    11221131    file->mosaicLevel = PM_FPA_LEVEL_CHIP; // don't do any I/O on this at a lower level
    11231132
     
    12521261    // XXX we have an inconsistency in this calculation here and in pmFPACopy
    12531262    // XXX use the psImageBinning functions to set the output image size
    1254     pmFPAfileCopyStructureView (file->fpa, fpa, binning->nXbin, binning->nYbin, view);
    1255     readout = pmFPAviewThisReadout (view, file->fpa);
    1256     PS_ASSERT (binning->nXruff == readout->image->numCols, false);
    1257     PS_ASSERT (binning->nYruff == readout->image->numRows, false);
     1263    if (binning == NULL) {
     1264      pmFPAfileCopyStructureView (file->fpa, fpa, 1, 1, view);
     1265      readout = pmFPAviewThisReadout (view, file->fpa);
     1266    } else {
     1267      pmFPAfileCopyStructureView (file->fpa, fpa, binning->nXbin, binning->nYbin, view);
     1268      readout = pmFPAviewThisReadout (view, file->fpa);
     1269      PS_ASSERT (binning->nXruff == readout->image->numCols, false);
     1270      PS_ASSERT (binning->nYruff == readout->image->numRows, false);
     1271    }
    12581272  }
    12591273
Note: See TracChangeset for help on using the changeset viewer.