Changeset 8062
- Timestamp:
- Aug 1, 2006, 6:08:45 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 8 edited
-
chiptool.c (modified) (3 diffs)
-
p2insertPendingFrames.c (modified) (4 diffs)
-
p2pendingToDone.c (modified) (2 diffs)
-
p2rawToPending.c (modified) (2 diffs)
-
p2searchDoneFrames.c (modified) (1 diff)
-
p2searchPendingFrames.c (modified) (1 diff)
-
p2updatePending.c (modified) (1 diff)
-
pxframes.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r8059 r8062 82 82 // dbh prior to /ALL/ of that exposure's Imfiles 83 83 if (pendingFrames) { 84 for ( inti = 0; i < rawFrames->n; i++) {84 for (long i = 0; i < rawFrames->n; i++) { 85 85 rawScienceFrame *rawFrame = rawFrames->data[i]; 86 for ( intj = 0; j < pendingFrames->n; j++) {86 for (long j = 0; j < pendingFrames->n; j++) { 87 87 p2PendingFrame *pendingFrame = pendingFrames->data[j]; 88 88 if (strcmp(rawFrame->exposure->exp_id, … … 101 101 psArray *doneFrames = p2searchDoneFrames(config); 102 102 if (doneFrames && (rawFrames->n > 0)) { 103 for ( inti = 0; i < rawFrames->n; i++) {103 for (long i = 0; i < rawFrames->n; i++) { 104 104 rawScienceFrame *rawFrame = rawFrames->data[i]; 105 for ( intj = 0; j < pendingFrames->n; j++) {105 for (long j = 0; j < pendingFrames->n; j++) { 106 106 p2DoneFrame *doneFrame = pendingFrames->data[j]; 107 107 if (strcmp(rawFrame->exposure->exp_id, … … 251 251 } 252 252 253 for ( inti = 0; i < pendingExps->n; i++) {253 for (long i = 0; i < pendingExps->n; i++) { 254 254 p2PendingExpRow *pendingExp = pendingExps->data[i]; 255 255 -
trunk/ippTools/src/p2insertPendingFrames.c
r6978 r8062 13 13 14 14 // can we use p2rawToPending() here? 15 for ( inti = 0; i < rawFrames->n; i++) {15 for (long i = 0; i < rawFrames->n; i++) { 16 16 rawScienceFrame *rawFrame = rawFrames->data[i]; 17 17 … … 32 32 33 33 int version = -1; 34 for ( intj = 0; j < exposures->n; j++) {34 for (long j = 0; j < exposures->n; j++) { 35 35 p2PendingExpRow *exposure = exposures->data[j]; 36 36 version = PS_MAX(version, exposure->p2_version); … … 56 56 psArray *pendingImages = psArrayAlloc(rawFrame->images->n); 57 57 pendingImages->n = 0; 58 for ( intj = 0; j < rawFrame->images->n; j++) {58 for (long j = 0; j < rawFrame->images->n; j++) { 59 59 rawImfileRow *rawImage = rawFrame->images->data[j]; 60 60 p2PendingImfileRow *pendingImage = p2PendingImfileRowAlloc( … … 76 76 } 77 77 78 for ( inti = 0; i < pendingImages->n; i++) {78 for (long i = 0; i < pendingImages->n; i++) { 79 79 if (!p2PendingImfileInsertObject(config->dbh, 80 80 pendingImages->data[i])) { -
trunk/ippTools/src/p2pendingToDone.c
r8045 r8062 13 13 doneFrames->n = 0; 14 14 15 for ( inti = 0; i < pendingFrames->n; i++) {15 for (long i = 0; i < pendingFrames->n; i++) { 16 16 p2PendingFrame *pendingFrame = pendingFrames->data[i]; 17 17 // if (pendingFrame->exposure->state != P2_STATE_DONE) continue; … … 33 33 psArray *doneImages = psArrayAlloc(pendingFrame->images->n); 34 34 doneImages->n = 0; 35 for ( intj = 0; j < pendingFrame->images->n; j++) {35 for (long j = 0; j < pendingFrame->images->n; j++) { 36 36 p2PendingImfileRow *pendingImage = pendingFrame->images->data[j]; 37 37 -
trunk/ippTools/src/p2rawToPending.c
r6978 r8062 13 13 pendingFrames->n = 0; 14 14 15 for ( inti = 0; i < rawFrames->n; i++) {15 for (long i = 0; i < rawFrames->n; i++) { 16 16 rawScienceFrame *rawFrame = rawFrames->data[i]; 17 17 … … 32 32 psArray *pendingImages = psArrayAlloc(rawFrame->images->n); 33 33 pendingImages->n = 0; 34 for ( intj = 0; j < rawFrame->images->n; j++) {34 for (long j = 0; j < rawFrame->images->n; j++) { 35 35 rawImfileRow *rawImage = rawFrame->images->data[j]; 36 36 p2PendingImfileRow *pendingImage = p2PendingImfileRowAlloc( -
trunk/ippTools/src/p2searchDoneFrames.c
r6978 r8062 21 21 frames->n = 0; 22 22 23 for ( inti = 0; i < exposures->n; i++) {23 for (long i = 0; i < exposures->n; i++) { 24 24 p2DoneExpRow *exposure = exposures->data[i]; 25 25 -
trunk/ippTools/src/p2searchPendingFrames.c
r6978 r8062 23 23 // 'where' to select each exposure 24 24 psMetadata *where = psMetadataAlloc(); 25 for ( inti = 0; i < exposures->n; i++) {25 for (long i = 0; i < exposures->n; i++) { 26 26 p2PendingExpRow *exposure = exposures->data[i]; 27 27 -
trunk/ippTools/src/p2updatePending.c
r6978 r8062 18 18 // we will now select all of the matching images which are done 19 19 psMetadataAddS32 (where, PS_LIST_TAIL, "STATE", PS_META_REPLACE, "==", PX_MODE_DONE); 20 for ( inti = 0; i < exposures->n; i++) {20 for (long i = 0; i < exposures->n; i++) { 21 21 p2PendingExpRow *exposure = exposures->data[i]; 22 22 -
trunk/ippTools/src/pxframes.c
r8024 r8062 51 51 psMetadata *output = psMetadataAlloc(); \ 52 52 \ 53 for ( inti = 0; i < psArrayLength(frames); i++) { \53 for (long i = 0; i < psArrayLength(frames); i++) { \ 54 54 frametype *frame = frames->data[i]; \ 55 55 PS_ASSERT_PTR_NON_NULL(frame, false); \ 56 56 PS_ASSERT_PTR_NON_NULL(frame->images, false); \ 57 57 \ 58 for ( intj = 0; j < psArrayLength(frame->images); j++) { \58 for (long j = 0; j < psArrayLength(frame->images); j++) { \ 59 59 imfiletype##Row *image = frame->images->data[j]; \ 60 60 psMetadata *md = imfiletype##MetadataFromObject(image); \ … … 93 93 psArray *allFrames = psArrayAlloc(psArrayLength(exposures)); \ 94 94 \ 95 for ( inti = 0; i < psArrayLength(exposures); i++) { \95 for (long i = 0; i < psArrayLength(exposures); i++) { \ 96 96 exptype##Row *exposure = exposures->data[i]; \ 97 97 \
Note:
See TracChangeset
for help on using the changeset viewer.
