IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 11, 2008, 8:35:04 AM (18 years ago)
Author:
eugene
Message:

total overhaul of mask handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080706/psModules/src/camera/pmHDUUtils.c

    r18431 r18472  
    1212pmHDU *pmHDUGetFirst (const pmFPA *fpa) {
    1313
    14   // XXX we probably should have an indicator in pmFPA about the depths.
     14    // XXX we probably should have an indicator in pmFPA about the depths.
    1515
    16   if (!fpa) return NULL;
    17   if (fpa->hdu) return fpa->hdu;
     16    if (!fpa) return NULL;
     17    if (fpa->hdu) return fpa->hdu;
    1818
    19   for (int i = 0; i < fpa->chips->n; i++) {
    20     pmChip *chip = fpa->chips[i];
    21     if (!chip) continue;
    22     if (chip->hdu) return chip->hdu;
    23     if (!chip->cells) continue;
    24     for (int j = 0; j < chip->cells->n; j++) {
    25       pmCell *cell = chip->cells[j];
    26       if (!cell) continue;
    27       if (cell->hdu) return cell->hdu;
     19    for (int i = 0; i < fpa->chips->n; i++) {
     20        pmChip *chip = fpa->chips->data[i];
     21        if (!chip) continue;
     22        if (chip->hdu) return chip->hdu;
     23        if (!chip->cells) continue;
     24        for (int j = 0; j < chip->cells->n; j++) {
     25            pmCell *cell = chip->cells->data[j];
     26            if (!cell) continue;
     27            if (cell->hdu) return cell->hdu;
     28        }
    2829    }
    29   }
    30   return NULL;
     30    return NULL;
    3131}
    3232
Note: See TracChangeset for help on using the changeset viewer.