IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23275


Ignore:
Timestamp:
Mar 11, 2009, 3:01:54 PM (17 years ago)
Author:
Paul Price
Message:

Move snippet that reads the mask bits to where the PHU is definitely defined.

File:
1 edited

Legend:

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

    r23270 r23275  
    522522    file->filesrc = psStringCopy("{CHIP.NAME}.{CELL.NAME}");
    523523
    524     if (file->type == PM_FPA_FILE_MASK) {
    525         if (!pmConfigMaskReadHeader(config, phu)) {
    526             psError(PS_ERR_IO, false, "Error reading mask bits");
    527             psFree(phu);
    528             return NULL;
    529         }
    530     }
    531 
    532524    // Examine the list of input files and validate their cameras
    533525    // Associate each filename with an element of the FPA
     
    555547            }
    556548            psFree(realName);
     549        }
     550
     551        if (i == 0 && file->type == PM_FPA_FILE_MASK) {
     552            if (!pmConfigMaskReadHeader(config, phu)) {
     553                psError(PS_ERR_IO, false, "Error reading mask bits");
     554                psFree(phu);
     555                return NULL;
     556            }
    557557        }
    558558
Note: See TracChangeset for help on using the changeset viewer.