IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18516


Ignore:
Timestamp:
Jul 14, 2008, 2:46:22 PM (18 years ago)
Author:
eugene
Message:

call pmConfigMaskReadHeader when reading a new mask phu

File:
1 edited

Legend:

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

    r18061 r18516  
    489489        psFree(realName);
    490490        return NULL;
     491    }
     492
     493    if (file->type == PM_FPA_FILE_MASK) {
     494        if (!pmConfigMaskReadHeader (config, phu)) {
     495            psError(PS_ERR_IO, false, "error in mask bits");
     496            return NULL;
     497        }
    491498    }
    492499
     
    660667    file->fileLevel = input->fileLevel;
    661668
     669
    662670    // define the rule to identify these files in the file->names data
    663671    psFree (file->filerule);
     
    735743        psMetadataAddStr (file->names, PS_LIST_TAIL, name, 0, "", infiles->data[i]);
    736744
     745        if ((i == 0) && (file->type == PM_FPA_FILE_MASK)) {
     746            if (!pmConfigMaskReadHeader (config, phu)) {
     747                psError(PS_ERR_IO, false, "error in mask bits");
     748                return NULL;
     749            }
     750        }
     751
    737752        psFree(view);
    738753        psFree(name);
     
    806821        psFree(formatName);
    807822        return NULL;
     823    }
     824
     825    if (file->type == PM_FPA_FILE_MASK) {
     826        if (!pmConfigMaskReadHeader (config, phu)) {
     827            psError(PS_ERR_IO, false, "error in mask bits");
     828            return NULL;
     829        }
    808830    }
    809831
Note: See TracChangeset for help on using the changeset viewer.