IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2006, 4:21:03 PM (20 years ago)
Author:
Paul Price
Message:

Documenting pmFPAMaskWeight.[ch]. Moving NOT_U8 and NOT_U16 macros into psLib (and renamed with PS_ prefix). Updating other files that use these macros so that they compile.

File:
1 edited

Legend:

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

    r8815 r9594  
    9494//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    9595
    96 bool pmReadoutSetMask(pmReadout *readout// Readout for which to set mask
    97                      )
     96bool pmReadoutSetMask(pmReadout *readout)
    9897{
    9998    PS_ASSERT_PTR_NON_NULL(readout, false);
     
    143142}
    144143
    145 bool pmReadoutGenerateMask(pmReadout *readout // Readout for which to generate mask
    146                           )
     144bool pmReadoutGenerateMask(pmReadout *readout)
    147145{
    148146    PS_ASSERT_PTR_NON_NULL(readout, false);
     
    190188}
    191189
    192 bool pmReadoutSetWeight(pmReadout *readout // Readout for which to set weight
    193                        )
     190bool pmReadoutSetWeight(pmReadout *readout)
    194191{
    195192    PS_ASSERT_PTR_NON_NULL(readout, false);
     
    219216}
    220217
    221 bool pmReadoutGenerateWeight(pmReadout *readout // Readout for which to generate weight
    222                             )
     218bool pmReadoutGenerateWeight(pmReadout *readout)
    223219{
    224220    PS_ASSERT_PTR_NON_NULL(readout, false);
     
    266262}
    267263
    268 bool pmCellGenerateMaskWeight(pmCell *cell // Cell for which to set weights
    269                              )
     264bool pmReadoutGenerateMaskWeight(pmReadout *readout)
     265{
     266    PS_ASSERT_PTR_NON_NULL(readout, false);
     267
     268    bool success = true;                // Was everything successful?
     269
     270    success |= pmReadoutGenerateMask(readout);
     271    success |= pmReadoutGenerateWeight(readout);
     272
     273    return success;
     274}
     275
     276bool pmCellGenerateMaskWeight(pmCell *cell)
    270277{
    271278    PS_ASSERT_PTR_NON_NULL(cell, false);
     
    275282    for (int i = 0; i < readouts->n; i++) {
    276283        pmReadout *readout = readouts->data[i]; // The readout
    277         success |= pmReadoutGenerateMask(readout);
    278         success |= pmReadoutGenerateWeight(readout);
     284        pmReadoutGenerateMaskWeight(readout);
    279285    }
    280286
     
    282288}
    283289
    284 bool pmReadoutGenerateMaskWeight(pmReadout *readout // Readout for which to set mask and weights
    285                                 )
    286 {
    287     PS_ASSERT_PTR_NON_NULL(readout, false);
    288 
    289     bool success = true;                // Was everything successful?
    290 
    291     success |= pmReadoutGenerateMask(readout);
    292     success |= pmReadoutGenerateWeight(readout);
    293 
    294     return success;
    295 }
Note: See TracChangeset for help on using the changeset viewer.