Changeset 6260 for trunk/ppImage/src/ppImageLoop.c
- Timestamp:
- Jan 30, 2006, 6:00:06 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageLoop.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageLoop.c
r6148 r6260 1 # include "ppImage.h" 1 #include <stdio.h> 2 #include "pslib.h" 3 #include "pmFPA.h" 4 #include "pmFPARead.h" 5 #include "pmChipMosaic.h" 6 #include "pmFPAWrite.h" 7 #include "ppImageDetrend.h" 8 #include "ppImage.h" 2 9 3 10 #define MEM_LEAKS 1 4 5 psMemId ppMemPrint(const psMemBlock *ptr)6 {7 psLogMsg(__func__, PS_LOG_INFO,8 "Memory block %d (%ld):\n"9 "\tFile %s, line %d, size %d\n"10 "\tPosts: %lx %lx %lx\n",11 ptr->id, ptr->refCounter, ptr->file, ptr->lineno, ptr->userMemorySize, ptr->startblock,12 ptr->endblock, *(void**)((int8_t *)(ptr + 1) + ptr->userMemorySize));13 return 0;14 }15 11 16 12 // Read the entire FPA … … 46 42 47 43 48 bool ppImageLoop(pp Data *data, ppOptions *options, ppConfig *config)44 bool ppImageLoop(ppImageData *data, ppImageOptions *options, ppConfig *config) 49 45 { 50 pp Detrend detrend;46 ppImageDetrend detrend; 51 47 52 48 int processChip = psMetadataLookupS32(NULL, config->arguments, "-chip"); // Chip number to process or -1 … … 83 79 pmChip *flatChip = data->flat->fpa->chips->data[i]; 84 80 85 ppMemPrint((psMemBlock*)inputChip-1);86 87 81 psArray *cells = inputChip->cells; 88 82 for (int j = 0; j < cells->n; j++) { … … 104 98 } 105 99 106 pp DetrendCell(&detrend, options, config);100 ppImageDetrendCell(&detrend, options, config); 107 101 108 102 // Need to free detrend cells here so we have enough memory to do other stuff … … 130 124 #ifndef MEM_LEAKS 131 125 pmChipFreeCells(inputChip); 132 ppMemPrint((psMemBlock*)chips->data[i]-1);133 126 #endif 134 127 }
Note:
See TracChangeset
for help on using the changeset viewer.
