IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2008, 4:08:40 PM (18 years ago)
Author:
Paul Price
Message:

Need strings.h for strcasecmp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/ppstampMakeStamp.c

    r17047 r17052  
    22#include <config.h>
    33#endif
     4#include <strings.h>
    45
    56#include "ppstamp.h"
     
    122123        lastY = image->row0 + image->numRows;
    123124    }
    124        
     125
    125126    int leftBlank = 0;
    126127    int dstX  = 0;
     
    173174// Build the postage stamp output file
    174175
    175 static bool makeStamp(pmConfig *config, ppstampOptions *options, pmFPAfile *input, 
     176static bool makeStamp(pmConfig *config, ppstampOptions *options, pmFPAfile *input,
    176177                pmChip *inChip, pmFPAview *view)
    177178{
     
    194195
    195196    //   psMetadataPrint(stderr, inChip->concepts, 0);
    196    
     197
    197198    // These default to zero. would that be ok?
    198199    psMetadataAddS32(target->concepts, PS_LIST_TAIL, "CELL.XBIN", PS_META_REPLACE, "Binning in x", 1);
     
    236237        if (ppstampMegacamWorkaround) {
    237238            // the coordinates of the mosaic are shifted 32 pixels from the chip
    238             // TODO does this always apply? For example I doubt that applies to 
     239            // TODO does this always apply? For example I doubt that applies to
    239240            // skycells.
    240241            extractRegion.x0 -= 32;
     
    345346    options->roi.y0 = INFINITY;
    346347    options->roi.y1 = -INFINITY;
    347    
     348
    348349    pt->sky->rErr = 0;
    349350    pt->sky->dErr = 0;
     
    422423
    423424        if (regionContainsPoint(chipBounds, center->chip)) {
    424             psLogMsg("ppstampMakeStamp", 2, "Found center (%f %f) on chip: %s\n", 
     425            psLogMsg("ppstampMakeStamp", 2, "Found center (%f %f) on chip: %s\n",
    425426                center->chip->x, center->chip->y, chipName);
    426427            onChip = true;
    427428        }
    428429    } else {
    429         // center specified in pixels. 
     430        // center specified in pixels.
    430431        // If the user specified a name of a chip name wait until we get to that one.
    431432        // If no chip name was specified, select this one (the first one that had data)
     
    499500    pmChip *chip;
    500501    while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) {
    501         bool allDone = false;
     502        bool allDone = false;
    502503
    503504        if (!chip->process || !chip->file_exists) {
     
    518519            break;
    519520        case PPSTAMP_ON:
    520         case PPSTAMP_PARTIALLY_ON:
     521        case PPSTAMP_PARTIALLY_ON:
    521522            returnval = makeStamp(config, options, input, chip, view);
    522523            allDone = true;
     
    532533        }
    533534
    534         pmFPAfileIOChecks(config, view, PM_FPA_AFTER);
     535        pmFPAfileIOChecks(config, view, PM_FPA_AFTER);
    535536
    536537        if (allDone) {
     
    538539            break;
    539540        }
    540     } 
     541    }
    541542    pmFPAfileIOChecks(config, view, PM_FPA_AFTER);
    542543
Note: See TracChangeset for help on using the changeset viewer.