IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 10, 2008, 2:04:47 PM (17 years ago)
Author:
eugene
Message:

pmConfigCameraFrmatFromHeader returns camera name as well as format name

File:
1 edited

Legend:

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

    r20400 r20639  
    783783          psMetadata *camera = NULL;
    784784          psString formatName = NULL;
    785           file->format = pmConfigCameraFormatFromHeader (&camera, &formatName, config, phu, true);
     785          psString cameraName = NULL;
     786          file->format = pmConfigCameraFormatFromHeader (&camera, &cameraName, &formatName, config, phu, true);
    786787          if (!file->format) {
    787788            psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", file->filename);
     
    800801          psFree(camera);
    801802          psFree(formatName);
     803          psFree(cameraName);
    802804
    803805          // XXX this is really dangerous...
     
    894896    if (!file->format) {
    895897        // determine the format (camera is already known); do not load the recipe
    896         file->format = pmConfigCameraFormatFromHeader (NULL, &file->formatName, config, phu, false);
     898        file->format = pmConfigCameraFormatFromHeader (NULL, NULL, &file->formatName, config, phu, false);
    897899        if (!file->format) {
    898900            psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", file->filename);
Note: See TracChangeset for help on using the changeset viewer.