Changeset 8418
- Timestamp:
- Aug 17, 2006, 5:06:32 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPARead.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPARead.c
r8246 r8418 81 81 82 82 // Read a component of a readout 83 psImage *readoutReadComponent(psFits *fits, // FITS file from which to read 83 psImage *readoutReadComponent(psImage *image, // Image into which to read 84 psFits *fits, // FITS file from which to read 84 85 const psRegion *region, // Region to read 85 86 int readdir, // Read direction (1=rows, 2=cols) … … 128 129 psTrace("psModules.camera", 5, "Reading section [%.0f:%.0f,%.0f:%.0f]\n", 129 130 toRead.x0, toRead.x1, toRead.y0, toRead.y1); 130 psImage *image = psFitsReadImage(fits, toRead, z); // Desired pixels131 image = psFitsReadImageBuffer(image, fits, toRead, z); // Desired pixels 131 132 psTrace("psModules.camera", 7, "Image is %dx%d\n", image->numCols, image->numRows); 132 133 … … 278 279 // Blow away existing data. 279 280 // Do this before returning, so that we're not returning data from a previous read 281 #if 1 280 282 psFree(readout->image); 281 283 readout->image = NULL; 284 #endif 285 282 286 while (readout->bias->n > 0) { 283 287 psListRemove(readout->bias, PS_LIST_HEAD); … … 295 299 296 300 // Get the new the trim section 297 readout->image = readoutReadComponent(fits, trimsec, readdir, offset, upper, z, bad); // The image 301 readout->image = readoutReadComponent(readout->image, fits, trimsec, readdir, 302 offset, upper, z, bad); // The image 298 303 299 304 // Get the new bias sections … … 301 306 psRegion *biassec = NULL; // Bias section from iteration 302 307 while ((biassec = psListGetAndIncrement(biassecsIter))) { 303 psImage *bias = readoutReadComponent( fits, biassec, readdir, offset, upper, z, bad); // The bias308 psImage *bias = readoutReadComponent(NULL, fits, biassec, readdir, offset, upper, z, bad); // The bias 304 309 psListAdd(readout->bias, PS_LIST_TAIL, bias); 305 310 psFree(bias); // Drop reference
Note:
See TracChangeset
for help on using the changeset viewer.
