Changeset 13029
- Timestamp:
- Apr 25, 2007, 12:53:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_02_branch/psModules/src/camera/pmFPAfile.c
r12890 r13029 17 17 #include "pmFPAfile.h" 18 18 #include "pmFPACopy.h" 19 #include "pmConcepts.h" 19 20 20 21 static void pmFPAfileFree(pmFPAfile *file) … … 326 327 PS_ASSERT_PTR_NON_NULL(view, false); 327 328 329 // XXX this should be smarter (ie, only copy concepts from the current chips) 330 // but such a call is needed, so re-copy stuff rather than no copy 331 pmFPACopyConcepts (out, in); 332 328 333 // pmFPAWrite takes care of all PHUs as needed 329 if ( (view->chip == -1) || in->hdu) {334 if (view->chip == -1) { 330 335 status = pmFPACopyStructure (out, in, xBin, yBin); 331 336 return status; … … 338 343 pmChip *outChip = out->chips->data[view->chip]; 339 344 340 if ( (view->cell == -1) || inChip->hdu) {345 if (view->cell == -1) { 341 346 status = pmChipCopyStructure (outChip, inChip, xBin, yBin); 342 347 return status; 343 } 348 } 344 349 if (view->cell >= inChip->cells->n) { 345 350 psError(PS_ERR_IO, true, "Requested cell == %d>= inChip->cells->n == %ld", … … 350 355 pmCell *outCell = outChip->cells->data[view->cell]; 351 356 352 if ((view->readout == -1) || inCell->hdu) { 353 status = pmCellCopyStructure (outCell, inCell, xBin, yBin); 354 return status; 355 } 356 psError(PS_ERR_UNKNOWN, true, "Returning false"); 357 return false; 357 status = pmCellCopyStructure (outCell, inCell, xBin, yBin); 358 return status; 358 359 } 359 360
Note:
See TracChangeset
for help on using the changeset viewer.
