Changeset 23667
- Timestamp:
- Apr 1, 2009, 4:47:58 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroExtractFindChip.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroExtractFindChip.c
r23591 r23667 93 93 psPlaneTransformApply (&ptCH, chip->fromFPA, &ptFP); 94 94 95 if (ptCH.x < region->x0) continue; 96 if (ptCH.x >= region->x1) continue; 97 if (ptCH.y < region->y0) continue; 98 if (ptCH.y >= region->y1) continue; 95 if (ptCH.x < region->x0) goto next_chip; 96 if (ptCH.x >= region->x1) goto next_chip; 97 if (ptCH.y < region->y0) goto next_chip; 98 if (ptCH.y >= region->y1) goto next_chip; 99 psFree (region); 99 100 100 101 *xChip = ptCH.x; 101 102 *yChip = ptCH.y; 102 103 return chip; 104 105 next_chip: 106 psFree (region); 103 107 } 104 108 105 109 return NULL; 106 110 } 111 112 bool psastroExtractFreeChipBounds () { 113 114 psFree (chipXmin); 115 psFree (chipXmax); 116 psFree (chipYmin); 117 psFree (chipYmax); 118 return true; 119 }
Note:
See TracChangeset
for help on using the changeset viewer.
