Changeset 27838 for branches/tap_branches/psLib/src/fits/psFitsImage.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/psLib
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/czw_branch/cleanup/psLib merged eligible /branches/pap/psLib merged eligible /trunk/psLib merged eligible /branches/eam_branches/20090522/psLib 24238-24573 /branches/eam_branches/20090715/psLib 24799-25750 /branches/eam_branches/20090820/psLib 25139-25874 /branches/pap_mops/psLib 25137-25255
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/psLib/src/fits/psFitsImage.c
r25002 r27838 498 498 psImage *inImage; // Image to read in 499 499 if (floatType == PS_FITS_FLOAT_NONE) { 500 inImage = psImageRecycle(outImage, numCols, numRows, info->psDatatype); 501 outImage = psMemIncrRefCounter(inImage); 500 if (!outImage || outImage->type.type == info->psDatatype) { 501 outImage = psImageRecycle(outImage, numCols, numRows, info->psDatatype); 502 inImage = psMemIncrRefCounter(outImage); 503 } else { 504 outImage = psImageRecycle(outImage, numCols, numRows, outImage->type.type); 505 inImage = psImageAlloc(numCols, numRows, info->psDatatype); 506 } 502 507 } else { 503 508 inImage = psImageAlloc(numCols, numRows, info->psDatatype); … … 511 516 return NULL; 512 517 } 513 psFree(info);514 518 515 519 if (floatType != PS_FITS_FLOAT_NONE) { 516 520 outImage = psFitsFloatImageFromDisk(outImage, inImage, floatType); 517 } 521 } else if (outImage->type.type != info->psDatatype) { 522 outImage = psImageCopy(outImage, inImage, outImage->type.type); 523 } 524 psFree(info); 518 525 psFree(inImage); 519 526
Note:
See TracChangeset
for help on using the changeset viewer.
