Changeset 6221
- Timestamp:
- Jan 26, 2006, 4:43:36 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 7 edited
-
chiptool.c (modified) (5 diffs)
-
p2insertPendingFrames.c (modified) (1 diff)
-
p2rawToPending.c (modified) (1 diff)
-
p2searchDoneFrames.c (modified) (1 diff)
-
p2searchRawFrames.c (modified) (2 diffs)
-
pxalloc.c (modified) (2 diffs)
-
pxtools.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r6220 r6221 53 53 psArray *rawFrames = p2searchRawFrames(config); 54 54 if (!rawFrames) { 55 psError(PS_ERR_UNKNOWN, false, "no ppRawFrames found");55 psError(PS_ERR_UNKNOWN, false, "no rawScienceFrames found"); 56 56 return false; 57 57 } … … 74 74 psArray *rawFrames = p2searchRawFrames(config); 75 75 if (!rawFrames) { 76 psError(PS_ERR_UNKNOWN, false, "no ppRawFrames found");76 psError(PS_ERR_UNKNOWN, false, "no rawScienceFrames found"); 77 77 return false; 78 78 } … … 84 84 if (pendingFrames) { 85 85 for (int i = 0; i < rawFrames->n; i++) { 86 ppRawFrame *rawFrame = rawFrames->data[i];86 rawScienceFrame *rawFrame = rawFrames->data[i]; 87 87 for (int j = 0; j < pendingFrames->n; j++) { 88 88 p2PendingFrame *pendingFrame = pendingFrames->data[j]; … … 104 104 if (doneFrames && (rawFrames->n > 0)) { 105 105 for (int i = 0; i < rawFrames->n; i++) { 106 ppRawFrame *rawFrame = rawFrames->data[i];106 rawScienceFrame *rawFrame = rawFrames->data[i]; 107 107 for (int j = 0; j < pendingFrames->n; j++) { 108 108 p2DoneFrame *doneFrame = pendingFrames->data[j]; … … 122 122 123 123 if (!rawFrames->n > 0) { 124 psError(PS_ERR_UNKNOWN, false, "no unprocessed ppRawFrames found");124 psError(PS_ERR_UNKNOWN, false, "no unprocessed rawScienceFrames found"); 125 125 psFree(rawFrames); 126 126 return false; -
trunk/ippTools/src/p2insertPendingFrames.c
r6217 r6221 10 10 // can we use p2rawToPending() here? 11 11 for (int i = 0; i < rawFrames->n; i++) { 12 ppRawFrame *rawFrame = rawFrames->data[i];12 rawScienceFrame *rawFrame = rawFrames->data[i]; 13 13 14 14 // find the next available version numbers -
trunk/ippTools/src/p2rawToPending.c
r6210 r6221 10 10 11 11 for (int i = 0; i < rawFrames->n; i++) { 12 ppRawFrame *rawFrame = rawFrames->data[i];12 rawScienceFrame *rawFrame = rawFrames->data[i]; 13 13 14 14 p2PendingExpRow *pendingExposure = p2PendingExpRowAlloc( -
trunk/ippTools/src/p2searchDoneFrames.c
r6214 r6221 13 13 } 14 14 15 // output array of ppRawFrame15 // output array of rawScienceFrame 16 16 psArray *frames = psArrayAlloc(exposures->n); 17 17 frames->n = 0; -
trunk/ippTools/src/p2searchRawFrames.c
r6214 r6221 13 13 } 14 14 15 // output array of ppRawFrame15 // output array of rawScienceFrame 16 16 psArray *frames = psArrayAlloc(exposures->n); 17 17 frames->n = 0; … … 33 33 } 34 34 35 ppRawFrame *rawFrame = ppRawFrameAlloc(exposure, images);35 rawScienceFrame *rawFrame = rawScienceFrameAlloc(exposure, images); 36 36 psArrayAdd(frames, 100, rawFrame); 37 37 } -
trunk/ippTools/src/pxalloc.c
r6210 r6221 1 1 #include "pxtools.h" 2 2 3 static void ppRawFrameFree(ppRawFrame *ptr);3 static void rawScienceFrameFree(rawScienceFrame *ptr); 4 4 static void p2PendingFrameFree(p2PendingFrame *ptr); 5 5 static void p2DoneFrameFree(p2DoneFrame *ptr); 6 6 7 ppRawFrame *ppRawFrameAlloc(7 rawScienceFrame *rawScienceFrameAlloc( 8 8 rawScienceExpRow *exposure, 9 9 psArray *images 10 10 ) 11 11 { 12 ppRawFrame *frame;12 rawScienceFrame *frame; 13 13 14 14 PS_ASSERT_PTR_NON_NULL(exposure, NULL); 15 15 PS_ASSERT_PTR_NON_NULL(images, NULL); 16 16 17 frame = psAlloc(sizeof( ppRawFrame));18 psMemSetDeallocator(frame, (psFreeFunc) ppRawFrameFree);17 frame = psAlloc(sizeof(rawScienceFrame)); 18 psMemSetDeallocator(frame, (psFreeFunc)rawScienceFrameFree); 19 19 20 20 frame->exposure = exposure; … … 24 24 } 25 25 26 static void ppRawFrameFree(ppRawFrame *ptr)26 static void rawScienceFrameFree(rawScienceFrame *ptr) 27 27 { 28 28 psFree(ptr->exposure); -
trunk/ippTools/src/pxtools.h
r6220 r6221 50 50 rawScienceExpRow *exposure; 51 51 psArray *images; 52 } ppRawFrame;52 } rawScienceFrame; 53 53 54 ppRawFrame *ppRawFrameAlloc(54 rawScienceFrame *rawScienceFrameAlloc( 55 55 rawScienceExpRow *exposure, 56 56 psArray *images … … 81 81 bool pxAdminConfig (pxConfig *config, int argc, char **argv); 82 82 bool p2searchConfig (pxConfig *config, int argc, char **argv); 83 83 84 psArray *p2rawToPending (pxConfig *config, psArray *rawFrames); 84 85 psArray *p2searchRawFrames (pxConfig *config);
Note:
See TracChangeset
for help on using the changeset viewer.
