IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2008, 2:13:59 PM (18 years ago)
Author:
eugene
Message:

adding multithread capability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarp.h

    r18558 r18839  
    1010#include <psmodules.h>
    1111#include <psphot.h>
     12
     13#define THREADED 1
    1214
    1315#include "pswarpErrorCodes.h"
     
    3335    int nXpts, nYpts;                   // number of x,y samples in the grid
    3436    int nXpix, nYpix;                   // x,y spacing in src image pixels of grid samples
    35     int xMin,  yMin;                    // coordinate of first grid sample
     37    double xMin,  yMin;                 // coordinate of first grid sample
    3638} pswarpMapGrid;
     39
     40typedef struct {
     41    // values which are common to all tiles
     42    pmReadout *input;
     43    pmReadout *output;
     44    pswarpMapGrid *grid;
     45    psImageInterpolateOptions *interp;
     46    psImage *region;
     47
     48    // input values for this tile
     49    int gridX;
     50    int gridY;
     51
     52    // output values for this tile
     53    long goodPixels;
     54} pswarpTransformTileArgs;
     55
     56pswarpTransformTileArgs *pswarpTransformTileArgsAlloc();
     57bool pswarpTransformTile (pswarpTransformTileArgs *args);
    3758
    3859pmConfig *pswarpArguments (int argc, char **argv);
     
    4465void pswarpCleanup (pmConfig *config);
    4566bool pswarpTransformReadout (pmReadout *output, pmReadout *input, pmConfig *config);
    46 bool pswarpTransformReadout_Opt (pmReadout *output, pmReadout *input, pmConfig *config);
     67bool pswarpTransformSources(pmReadout *output, pmReadout *input, pmConfig *config);
    4768
    4869bool pswarpMatchRange (int *minX, int *minY, int *maxX, int *maxY, pmReadout *dest, pmReadout *src);
     
    5374pswarpMapGrid *pswarpMapGridFromImage (pmReadout *dest, pmReadout *src, int nXpix, int nYpix);
    5475bool pswarpMapGridSetGrid (pswarpMapGrid *grid, int ix, int iy, int *gridX, int *gridY);
     76bool pswarpMapGridCoordRange (pswarpMapGrid *grid, int gridX, int gridY, psPlane *min, psPlane *max);
    5577int pswarpMapGridNextGrid_X (pswarpMapGrid *grid, int gridX);
    5678int pswarpMapGridNextGrid_Y (pswarpMapGrid *grid, int gridY);
     
    6890    );
    6991
     92// define threads for this program
     93bool pswarpSetThreads ();
Note: See TracChangeset for help on using the changeset viewer.