IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2006, 6:00:06 PM (20 years ago)
Author:
Paul Price
Message:

Rearranging header files

File:
1 edited

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"
    29
    310#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 }
    1511
    1612// Read the entire FPA
     
    4642
    4743
    48 bool ppImageLoop(ppData *data, ppOptions *options, ppConfig *config)
     44bool ppImageLoop(ppImageData *data, ppImageOptions *options, ppConfig *config)
    4945{
    50     ppDetrend detrend;
     46    ppImageDetrend detrend;
    5147
    5248    int processChip = psMetadataLookupS32(NULL, config->arguments, "-chip"); // Chip number to process or -1
     
    8379        pmChip *flatChip  = data->flat->fpa->chips->data[i];
    8480
    85         ppMemPrint((psMemBlock*)inputChip-1);
    86 
    8781        psArray *cells = inputChip->cells;
    8882        for (int j = 0; j < cells->n; j++) {
     
    10498            }
    10599
    106             ppDetrendCell(&detrend, options, config);
     100            ppImageDetrendCell(&detrend, options, config);
    107101
    108102            // Need to free detrend cells here so we have enough memory to do other stuff
     
    130124#ifndef MEM_LEAKS
    131125        pmChipFreeCells(inputChip);
    132         ppMemPrint((psMemBlock*)chips->data[i]-1);
    133126#endif
    134127    }
Note: See TracChangeset for help on using the changeset viewer.