Changeset 6258 for trunk/ippTools/src/chiptool.c
- Timestamp:
- Jan 30, 2006, 5:47:19 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r6223 r6258 51 51 static bool quickMode(pxConfig *config) 52 52 { 53 psArray *rawFrames = p2searchRawFrames(config);53 psArray *rawFrames = rawScienceFrameSearch(config); 54 54 if (!rawFrames) { 55 55 psError(PS_ERR_UNKNOWN, false, "no rawScienceFrames found"); … … 67 67 static bool defineMode(pxConfig *config) 68 68 { 69 psArray *rawFrames = p2searchRawFrames(config);69 psArray *rawFrames = rawScienceFrameSearch(config); 70 70 if (!rawFrames) { 71 71 psError(PS_ERR_UNKNOWN, false, "no rawScienceFrames found"); 72 72 return false; 73 73 } 74 psArray *pendingFrames = p2 searchPendingFrames(config);74 psArray *pendingFrames = p2PendingFrameSearch(config); 75 75 // XXX compare raw frames to pending frames and remove duplicate 76 76 // frames from the raw set. This may not be quiet right as it's … … 94 94 95 95 psFree(pendingFrames); 96 } 97 98 psArray *doneFrames = p2searchDoneFrames(config);99 if (doneFrames && (rawFrames->n > 0)) {100 for (int i = 0; i < rawFrames->n; i++) {101 rawScienceFrame *rawFrame = rawFrames->data[i];102 for (int j = 0; j < pendingFrames->n; j++) {103 p2DoneFrame *doneFrame = pendingFrames->data[j];104 if (strcmp(rawFrame->exposure->exp_id,105 doneFrame->exposure->exp_id) == 0) {106 psArrayRemove(rawFrames, rawFrame);107 // dec the counter as the array just got shorter108 // and we don't want to skip elemnts109 i--;110 break;111 } 112 } 113 } 114 115 psFree(doneFrames);96 97 psArray *doneFrames = p2searchDoneFrames(config); 98 if (doneFrames && (rawFrames->n > 0)) { 99 for (int i = 0; i < rawFrames->n; i++) { 100 rawScienceFrame *rawFrame = rawFrames->data[i]; 101 for (int j = 0; j < pendingFrames->n; j++) { 102 p2DoneFrame *doneFrame = pendingFrames->data[j]; 103 if (strcmp(rawFrame->exposure->exp_id, 104 doneFrame->exposure->exp_id) == 0) { 105 psArrayRemove(rawFrames, rawFrame); 106 // dec the counter as the array just got shorter 107 // and we don't want to skip elemnts 108 i--; 109 break; 110 } 111 } 112 } 113 114 psFree(doneFrames); 115 } 116 116 } 117 117 … … 133 133 static bool pendingMode(pxConfig *config) 134 134 { 135 psArray *pendingFrames = p2 searchPendingFrames(config);135 psArray *pendingFrames = p2PendingFrameSearch(config); 136 136 if (!pendingFrames) { 137 137 psError(PS_ERR_UNKNOWN, false, "no p2PendingFrames found");
Note:
See TracChangeset
for help on using the changeset viewer.
