IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27346


Ignore:
Timestamp:
Mar 18, 2010, 4:23:54 PM (16 years ago)
Author:
Paul Price
Message:

We're reading into an existing buffer, so no need to blow away data from the previous read.

File:
1 edited

Legend:

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

    r25754 r27346  
    296296                        psFits *fits,    // FITS file
    297297                        int z,          // Plane number to read
    298                         int *zMax,      // Max plane number in this cell
     298                        int *zMax,      // Max plane number in this cell
    299299                        int numScans,   // Number of scans to read at a time
    300300                        fpaReadType type, // Type of image
     
    314314        return true;
    315315      } else {
    316         return false;
     316        return false;
    317317      }
    318318    }
     
    387387                psFree(regionString);
    388388                psFree(readout);
    389                 psFree(iter);
     389                psFree(iter);
    390390                return false;
    391391            }
     
    486486                             psFits *fits, // FITS file
    487487                             int z,     // Desired image plane
    488                              int *zMax, // Max plane number in this cell
     488                             int *zMax, // Max plane number in this cell
    489489                             int numScans, // Number of scans (row or col depends on CELL.READDIR); 0 for all
    490490                             int overlap, // Number of scans (row/col) to overlap between scans
     
    628628    // Blow away existing data.
    629629    // Do this before returning, so that we're not returning data from a previous read
    630     psFree(*image);
    631     *image = NULL;
     630//    psFree(*image);
     631//    *image = NULL;
    632632    *image = readoutReadComponent(*image, fits, trimsec, readdir, thisScan, lastScan, z, bad, pixelTypes[type]);
    633633
Note: See TracChangeset for help on using the changeset viewer.