IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4316


Ignore:
Timestamp:
Jun 17, 2005, 5:13:02 PM (21 years ago)
Author:
drobbin
Message:

* empty log message *

Location:
trunk/psLib
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/pslib.kdevses

    r4298 r4316  
    22<!DOCTYPE KDevPrjSession>
    33<KDevPrjSession>
    4  <DocsAndViews NumberOfDocuments="1" >
    5   <Doc0 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/dataIO/psDB.c" >
    6    <View0 line="0" Type="Source" />
     4 <DocsAndViews NumberOfDocuments="4" >
     5  <Doc0 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/collections/psList.h" >
     6   <View0 line="197" Type="Source" />
    77  </Doc0>
     8  <Doc1 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/collections/psList.c" >
     9   <View0 line="565" Type="Source" />
     10  </Doc1>
     11  <Doc2 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/sysUtils/psLogMsg.h" >
     12   <View0 line="69" Type="Source" />
     13  </Doc2>
     14  <Doc3 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/sysUtils/psLogMsg.c" >
     15   <View0 line="369" Type="Source" />
     16  </Doc3>
    817 </DocsAndViews>
    918 <pluginList>
  • trunk/psLib/src/collections/psList.c

    r4312 r4316  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-06-18 00:53:32 $
     8 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-06-18 03:13:01 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    149149}
    150150
    151 psListIterator* psListIteratorAlloc(psList* list, int location, bool mutable)
     151psListIterator* psListIteratorAlloc(psList* list, long location, bool mutable)
    152152{
    153153    psListIterator* iter = psAlloc(sizeof(psListIterator));
     
    181181}
    182182
    183 psBool psListIteratorSet(psListIterator* iterator,
    184                          int location)
     183bool psListIteratorSet(psListIterator* iterator,
     184                       int location)
    185185{
    186186    if (iterator == NULL) {
     
    247247}
    248248
    249 psBool psListAdd(psList* list, psS32 location, psPtr data)
     249bool psListAdd(psList* list, long location, psPtr data)
    250250{
    251251
     
    433433}
    434434
    435 psBool psListRemove(psList* list,
    436                     psS32 location)
     435bool psListRemove(psList* list,
     436                  long location)
    437437{
    438438    if (list == NULL) {
     
    451451}
    452452
    453 psBool psListRemoveData(psList* list,
    454                         psPtr data)
     453bool psListRemoveData(psList* list,
     454                      psPtr data)
    455455{
    456456    if (list == NULL) {
     
    485485}
    486486
    487 psPtr psListGet(psList* list, psS32 location)
     487psPtr psListGet(psList* list, long location)
    488488{
    489489    if (list == NULL) {
     
    564564 * Convert a psList to/from a psVoidPtrArray
    565565 */
    566 psArray* psListToArray(psList* restrict list)
     566psArray* psListToArray(const psList* restrict list)
    567567{
    568568    psListElem* ptr;
  • trunk/psLib/src/collections/psList.h

    r4312 r4316  
    77 *  @ingroup LinkedList
    88 *
    9  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-18 00:53:32 $
     9 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9999psListIterator* psListIteratorAlloc(
    100100    psList* list,                      ///< the psList to iterate with
    101     int location,                      ///< the initial starting point.
     101    long location,                      ///< the initial starting point.
    102102    ///<  This can be a numeric index, PS_LIST_HEAD, or PS_LIST_TAIL.
    103103    bool mutable                       ///< Is it permissible to modify list?
     
    109109 *  @return psBool        TRUE if iterator successfully set, otherwise FALSE.
    110110 */
    111 psBool psListIteratorSet(
     111bool psListIteratorSet(
    112112    psListIterator* iterator,            ///< list iterator
    113113    int location                         ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
     
    118118 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    119119 */
    120 psBool psListAdd(
     120bool psListAdd(
    121121    psList* list,                      ///< list to add item to
    122     psS32 location,                    ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
     122    long location,                    ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
    123123    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    124124);
     
    128128 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    129129 */
    130 psBool psListAddAfter(
    131     psListIterator* list,              ///< list position to add item to
     130bool psListAddAfter(
     131    psListIterator* iterator,          ///< list position to add item to
    132132    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    133133);
     
    137137 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    138138 */
    139 psBool psListAddBefore(
    140     psListIterator* list,              ///< list position to add item to
     139bool psListAddBefore(
     140    psListIterator* iterator,              ///< list position to add item to
    141141    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    142142);
     
    146146 *  @return psBool        TRUE if element is successfully removed, otherwise FALSE.
    147147 */
    148 psBool psListRemove(
     148bool psListRemove(
    149149    psList* list,                      ///< list to remove element from
    150     psS32 location                     ///< index of item
     150    long location                     ///< index of item
    151151);
    152152
     
    155155 *  @return psBool        TRUE if element is successfully removed, otherwise FALSE.
    156156 */
    157 psBool psListRemoveData(
     157bool psListRemoveData(
    158158    psList* list,                      ///< list to remove element from
    159159    psPtr data                         ///< data item to find and remove
     
    169169psPtr psListGet(
    170170    psList* list,                      ///< list to retrieve element from
    171     psS32 location                     ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
     171    long location                     ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
    172172);
    173173
     
    196196 */
    197197psArray* psListToArray(
    198     psList* dlist                      ///< List to convert
     198    const psList* list                      ///< List to convert
    199199);
    200200
  • trunk/psLib/src/fft/psImageFFT.c

    r4193 r4316  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-06-09 21:17:45 $
     7 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-06-18 03:13:02 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727static psBool p_fftwWisdomImported = false;
    2828
    29 psImage* psImageFFT(psImage* out, const psImage* in, psFFTFlags direction)
     29psImage* psImageFFT(psImage* out, const psImage* image, psFFTFlags direction)
    3030{
    3131    psU32 numCols;
     
    3535
    3636    /* got good image data? */
    37     if (in == NULL) {
     37    if (image == NULL) {
    3838        psFree(out);
    3939        return NULL;
     
    6060    }
    6161
    62     type = in->type.type;
     62    type = image->type.type;
    6363
    6464    /* make sure the system-level wisdom information is imported. */
     
    6868    }
    6969
    70     numRows = in->numRows;
    71     numCols = in->numCols;
     70    numRows = image->numRows;
     71    numCols = image->numCols;
    7272
    7373    // n.b. FFTW can perform a in-place transform at the same rate or faster than out-of-place.
     
    7575
    7676    fftwf_complex* outBuffer = fftwf_malloc(numRows*numCols*sizeof(fftwf_complex));
    77     p_psImageCopyToRawBuffer(outBuffer, in, PS_TYPE_C32);
     77    p_psImageCopyToRawBuffer(outBuffer, image, PS_TYPE_C32);
    7878
    7979    plan = fftwf_plan_dft_2d(numRows, numCols,
  • trunk/psLib/src/fft/psImageFFT.h

    r4162 r4316  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-08 23:40:45 $
     9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3333psImage* psImageFFT(
    3434    psImage* out,                      ///< a psImage to recycle.  If NULL, a new psImage is made.
    35     const psImage* in,                 ///< the psImage to apply transform to
     35    const psImage* image,                 ///< the psImage to apply transform to
    3636    psFFTFlags direction               ///< the direction of the transform
    3737);
  • trunk/psLib/src/image/psImage.c

    r4315 r4316  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-06-18 02:30:49 $
     11 *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-06-18 03:13:02 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    329329
    330330
    331 psS32 psImageFreeChildren(psImage* image)
     331int psImageFreeChildren(psImage* image)
    332332{
    333333    psS32 numFreed = 0;
  • trunk/psLib/src/image/psImage.h

    r4315 r4316  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-06-18 02:30:49 $
     13 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-06-18 03:13:02 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    166166 *
    167167 */
    168 psS32 psImageFreeChildren(
     168int psImageFreeChildren(
    169169    psImage* image                     ///< psImage in which all children shall be deallocated
    170170);
  • trunk/psLib/src/image/psImageConvolve.c

    r4315 r4316  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-06-18 02:30:49 $
     7 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-06-18 03:13:02 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727static void freeKernel(psKernel* ptr);
    2828
    29 psKernel* psKernelAlloc(psS32 xMin, psS32 xMax, psS32 yMin, psS32 yMax)
     29psKernel* psKernelAlloc(int xMin, int xMax, int yMin, int yMax)
    3030{
    3131    psKernel* result;
     
    9090                           const psVector* xShifts,
    9191                           const psVector* yShifts,
    92                            psBool relative)
     92                           bool relative)
    9393{
    9494    psS32 lastX;
  • trunk/psLib/src/image/psImageConvolve.h

    r4315 r4316  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-18 02:30:49 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7171 */
    7272psKernel* psKernelAlloc(
    73     psS32 xMin,                          ///< Most negative x index
    74     psS32 xMax,                          ///< Most positive x index
    75     psS32 yMin,                          ///< Most negative y index
    76     psS32 yMax                           ///< Most positive y index
     73    int xMin,                          ///< Most negative x index
     74    int xMax,                          ///< Most positive x index
     75    int yMin,                          ///< Most negative y index
     76    int yMax                           ///< Most positive y index
    7777);
    7878
     
    9797    const psVector* xShifts,           ///< list of x-axis shifts
    9898    const psVector* yShifts,           ///< list of y-axis shifts
    99     psBool relative
     99    bool relative
    100100    /**< specifies the starting point for the shifts; true=relative to previous shift
    101101     *  false = relative to some other starting point.  */
  • trunk/psLib/src/image/psImageFFT.c

    r4193 r4316  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-06-09 21:17:45 $
     7 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-06-18 03:13:02 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727static psBool p_fftwWisdomImported = false;
    2828
    29 psImage* psImageFFT(psImage* out, const psImage* in, psFFTFlags direction)
     29psImage* psImageFFT(psImage* out, const psImage* image, psFFTFlags direction)
    3030{
    3131    psU32 numCols;
     
    3535
    3636    /* got good image data? */
    37     if (in == NULL) {
     37    if (image == NULL) {
    3838        psFree(out);
    3939        return NULL;
     
    6060    }
    6161
    62     type = in->type.type;
     62    type = image->type.type;
    6363
    6464    /* make sure the system-level wisdom information is imported. */
     
    6868    }
    6969
    70     numRows = in->numRows;
    71     numCols = in->numCols;
     70    numRows = image->numRows;
     71    numCols = image->numCols;
    7272
    7373    // n.b. FFTW can perform a in-place transform at the same rate or faster than out-of-place.
     
    7575
    7676    fftwf_complex* outBuffer = fftwf_malloc(numRows*numCols*sizeof(fftwf_complex));
    77     p_psImageCopyToRawBuffer(outBuffer, in, PS_TYPE_C32);
     77    p_psImageCopyToRawBuffer(outBuffer, image, PS_TYPE_C32);
    7878
    7979    plan = fftwf_plan_dft_2d(numRows, numCols,
  • trunk/psLib/src/image/psImageFFT.h

    r4162 r4316  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-08 23:40:45 $
     9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3333psImage* psImageFFT(
    3434    psImage* out,                      ///< a psImage to recycle.  If NULL, a new psImage is made.
    35     const psImage* in,                 ///< the psImage to apply transform to
     35    const psImage* image,                 ///< the psImage to apply transform to
    3636    psFFTFlags direction               ///< the direction of the transform
    3737);
  • trunk/psLib/src/image/psImageGeomManip.c

    r4308 r4316  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-17 23:44:21 $
     12 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-06-18 03:13:02 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    174174psImage* psImageResample(psImage* out,
    175175                         const psImage* in,
    176                          psS32 scale,
     176                         int scale,
    177177                         psImageInterpolateMode mode)
    178178{
     
    251251
    252252psImage* psImageRoll(psImage* out,
    253                      const psImage* in,
    254                      psS32 dx,
    255                      psS32 dy)
     253                     const psImage* input,
     254                     int dx,
     255                     int dy)
    256256{
    257257    psS32 outRows;
     
    259259    psS32 elementSize;
    260260
    261     if (in == NULL) {
     261    if (input == NULL) {
    262262        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    263263                PS_ERRORTEXT_psImage_IMAGE_NULL);
     
    267267    // create an output image of the same size
    268268    // and type
    269     outRows = in->numRows;
    270     outCols = in->numCols;
    271     elementSize = PSELEMTYPE_SIZEOF(in->type.type);
    272     out = psImageRecycle(out, outCols, outRows, in->type.type);
     269    outRows = input->numRows;
     270    outCols = input->numCols;
     271    elementSize = PSELEMTYPE_SIZEOF(input->type.type);
     272    out = psImageRecycle(out, outCols, outRows, input->type.type);
    273273
    274274    // make dx and dy between 0 and outCols or
     
    292292            inRowNumber -= outRows;
    293293        }
    294         psU8* inRow = in->data.U8[inRowNumber]; // use byte arithmetic for all types
     294        psU8* inRow = input->data.U8[inRowNumber]; // use byte arithmetic for all types
    295295        psU8* outRow = out->data.U8[row];
    296296
  • trunk/psLib/src/image/psImageGeomManip.h

    r4287 r4316  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-06-16 22:07:41 $
     10 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-06-18 03:13:02 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5757    psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    5858    const psImage* in,                 ///< input image
    59     psS32 scale,                       ///< resample scaling factor
     59    int scale,                       ///< resample scaling factor
    6060    psImageInterpolateMode mode        ///< the interpolation mode used in resampling
    6161);
     
    111111psImage* psImageRoll(
    112112    psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    113     const psImage* in,                 ///< input image
    114     psS32 dx,                          ///< number of pixels to roll in the x-dimension
    115     psS32 dy                           ///< number of pixels to roll in the y-dimension
     113    const psImage* input,              ///< input image
     114    int dx,                            ///< number of pixels to roll in the x-dimension
     115    int dy                             ///< number of pixels to roll in the y-dimension
    116116);
    117117
     
    151151    const psRegion region,             ///< the size of the transformed image
    152152    const psPixels* pixels,            /**< if not NULL, consists of psPixelCoords and specifies which pixels in
    153                                                  *  output image shall be transformed; otherwise, entire image generated*/
     153                                                     *  output image shall be transformed; otherwise, entire image generated*/
    154154    psImageInterpolateMode mode,       ///< the interpolation scheme to be used
    155155    int exposedValue                   ///< Exposed value to which non-corresponding pixels are set
  • trunk/psLib/src/imageops/psImageConvolve.c

    r4315 r4316  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-06-18 02:30:49 $
     7 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-06-18 03:13:02 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727static void freeKernel(psKernel* ptr);
    2828
    29 psKernel* psKernelAlloc(psS32 xMin, psS32 xMax, psS32 yMin, psS32 yMax)
     29psKernel* psKernelAlloc(int xMin, int xMax, int yMin, int yMax)
    3030{
    3131    psKernel* result;
     
    9090                           const psVector* xShifts,
    9191                           const psVector* yShifts,
    92                            psBool relative)
     92                           bool relative)
    9393{
    9494    psS32 lastX;
  • trunk/psLib/src/imageops/psImageConvolve.h

    r4315 r4316  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-18 02:30:49 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7171 */
    7272psKernel* psKernelAlloc(
    73     psS32 xMin,                          ///< Most negative x index
    74     psS32 xMax,                          ///< Most positive x index
    75     psS32 yMin,                          ///< Most negative y index
    76     psS32 yMax                           ///< Most positive y index
     73    int xMin,                          ///< Most negative x index
     74    int xMax,                          ///< Most positive x index
     75    int yMin,                          ///< Most negative y index
     76    int yMax                           ///< Most positive y index
    7777);
    7878
     
    9797    const psVector* xShifts,           ///< list of x-axis shifts
    9898    const psVector* yShifts,           ///< list of y-axis shifts
    99     psBool relative
     99    bool relative
    100100    /**< specifies the starting point for the shifts; true=relative to previous shift
    101101     *  false = relative to some other starting point.  */
  • trunk/psLib/src/imageops/psImageGeomManip.c

    r4308 r4316  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-17 23:44:21 $
     12 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-06-18 03:13:02 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    174174psImage* psImageResample(psImage* out,
    175175                         const psImage* in,
    176                          psS32 scale,
     176                         int scale,
    177177                         psImageInterpolateMode mode)
    178178{
     
    251251
    252252psImage* psImageRoll(psImage* out,
    253                      const psImage* in,
    254                      psS32 dx,
    255                      psS32 dy)
     253                     const psImage* input,
     254                     int dx,
     255                     int dy)
    256256{
    257257    psS32 outRows;
     
    259259    psS32 elementSize;
    260260
    261     if (in == NULL) {
     261    if (input == NULL) {
    262262        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    263263                PS_ERRORTEXT_psImage_IMAGE_NULL);
     
    267267    // create an output image of the same size
    268268    // and type
    269     outRows = in->numRows;
    270     outCols = in->numCols;
    271     elementSize = PSELEMTYPE_SIZEOF(in->type.type);
    272     out = psImageRecycle(out, outCols, outRows, in->type.type);
     269    outRows = input->numRows;
     270    outCols = input->numCols;
     271    elementSize = PSELEMTYPE_SIZEOF(input->type.type);
     272    out = psImageRecycle(out, outCols, outRows, input->type.type);
    273273
    274274    // make dx and dy between 0 and outCols or
     
    292292            inRowNumber -= outRows;
    293293        }
    294         psU8* inRow = in->data.U8[inRowNumber]; // use byte arithmetic for all types
     294        psU8* inRow = input->data.U8[inRowNumber]; // use byte arithmetic for all types
    295295        psU8* outRow = out->data.U8[row];
    296296
  • trunk/psLib/src/imageops/psImageGeomManip.h

    r4287 r4316  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-06-16 22:07:41 $
     10 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-06-18 03:13:02 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5757    psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    5858    const psImage* in,                 ///< input image
    59     psS32 scale,                       ///< resample scaling factor
     59    int scale,                       ///< resample scaling factor
    6060    psImageInterpolateMode mode        ///< the interpolation mode used in resampling
    6161);
     
    111111psImage* psImageRoll(
    112112    psImage* out,                      ///< an psImage to recycle.  If NULL, a new image is created
    113     const psImage* in,                 ///< input image
    114     psS32 dx,                          ///< number of pixels to roll in the x-dimension
    115     psS32 dy                           ///< number of pixels to roll in the y-dimension
     113    const psImage* input,              ///< input image
     114    int dx,                            ///< number of pixels to roll in the x-dimension
     115    int dy                             ///< number of pixels to roll in the y-dimension
    116116);
    117117
     
    151151    const psRegion region,             ///< the size of the transformed image
    152152    const psPixels* pixels,            /**< if not NULL, consists of psPixelCoords and specifies which pixels in
    153                                                  *  output image shall be transformed; otherwise, entire image generated*/
     153                                                     *  output image shall be transformed; otherwise, entire image generated*/
    154154    psImageInterpolateMode mode,       ///< the interpolation scheme to be used
    155155    int exposedValue                   ///< Exposed value to which non-corresponding pixels are set
  • trunk/psLib/src/mathtypes/psImage.c

    r4315 r4316  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-06-18 02:30:49 $
     11 *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-06-18 03:13:02 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    329329
    330330
    331 psS32 psImageFreeChildren(psImage* image)
     331int psImageFreeChildren(psImage* image)
    332332{
    333333    psS32 numFreed = 0;
  • trunk/psLib/src/mathtypes/psImage.h

    r4315 r4316  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-06-18 02:30:49 $
     13 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-06-18 03:13:02 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    166166 *
    167167 */
    168 psS32 psImageFreeChildren(
     168int psImageFreeChildren(
    169169    psImage* image                     ///< psImage in which all children shall be deallocated
    170170);
  • trunk/psLib/src/sys/psLogMsg.c

    r4183 r4316  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-09 06:13:14 $
     14 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-18 03:13:02 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    363363   NULL
    364364 *****************************************************************************/
    365 void psLogMsg(const char *name, psS32 level, const char *fmt, ...)
     365void psLogMsg(const char *name, int level, const char *format, ...)
    366366{
    367367    va_list ap;
    368368
    369     va_start(ap, fmt);
    370     psLogMsgV(name, level, fmt, ap);
     369    va_start(ap, format);
     370    psLogMsgV(name, level, format, ap);
    371371    va_end(ap);
    372372}
  • trunk/psLib/src/sys/psLogMsg.h

    r4180 r4316  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-06-09 06:12:31 $
     13 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-06-18 03:13:02 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6767void psLogMsg(
    6868    const char *name,                  ///< name of the log source
    69     psS32 myLevel,                       ///< severity level of this log message
    70     const char *fmt,                   ///< printf-style format command
     69    int level,                       ///< severity level of this log message
     70    const char *format,                   ///< printf-style format command
    7171    ...
    7272);
  • trunk/psLib/src/sysUtils/psLogMsg.c

    r4184 r4316  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-09 06:13:14 $
     14 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-18 03:13:02 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    363363   NULL
    364364 *****************************************************************************/
    365 void psLogMsg(const char *name, psS32 level, const char *fmt, ...)
     365void psLogMsg(const char *name, int level, const char *format, ...)
    366366{
    367367    va_list ap;
    368368
    369     va_start(ap, fmt);
    370     psLogMsgV(name, level, fmt, ap);
     369    va_start(ap, format);
     370    psLogMsgV(name, level, format, ap);
    371371    va_end(ap);
    372372}
  • trunk/psLib/src/sysUtils/psLogMsg.h

    r4181 r4316  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-06-09 06:12:31 $
     13 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-06-18 03:13:02 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6767void psLogMsg(
    6868    const char *name,                  ///< name of the log source
    69     psS32 myLevel,                       ///< severity level of this log message
    70     const char *fmt,                   ///< printf-style format command
     69    int level,                       ///< severity level of this log message
     70    const char *format,                   ///< printf-style format command
    7171    ...
    7272);
  • trunk/psLib/src/types/psList.c

    r4312 r4316  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-06-18 00:53:32 $
     8 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-06-18 03:13:01 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    149149}
    150150
    151 psListIterator* psListIteratorAlloc(psList* list, int location, bool mutable)
     151psListIterator* psListIteratorAlloc(psList* list, long location, bool mutable)
    152152{
    153153    psListIterator* iter = psAlloc(sizeof(psListIterator));
     
    181181}
    182182
    183 psBool psListIteratorSet(psListIterator* iterator,
    184                          int location)
     183bool psListIteratorSet(psListIterator* iterator,
     184                       int location)
    185185{
    186186    if (iterator == NULL) {
     
    247247}
    248248
    249 psBool psListAdd(psList* list, psS32 location, psPtr data)
     249bool psListAdd(psList* list, long location, psPtr data)
    250250{
    251251
     
    433433}
    434434
    435 psBool psListRemove(psList* list,
    436                     psS32 location)
     435bool psListRemove(psList* list,
     436                  long location)
    437437{
    438438    if (list == NULL) {
     
    451451}
    452452
    453 psBool psListRemoveData(psList* list,
    454                         psPtr data)
     453bool psListRemoveData(psList* list,
     454                      psPtr data)
    455455{
    456456    if (list == NULL) {
     
    485485}
    486486
    487 psPtr psListGet(psList* list, psS32 location)
     487psPtr psListGet(psList* list, long location)
    488488{
    489489    if (list == NULL) {
     
    564564 * Convert a psList to/from a psVoidPtrArray
    565565 */
    566 psArray* psListToArray(psList* restrict list)
     566psArray* psListToArray(const psList* restrict list)
    567567{
    568568    psListElem* ptr;
  • trunk/psLib/src/types/psList.h

    r4312 r4316  
    77 *  @ingroup LinkedList
    88 *
    9  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-18 00:53:32 $
     9 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-18 03:13:02 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9999psListIterator* psListIteratorAlloc(
    100100    psList* list,                      ///< the psList to iterate with
    101     int location,                      ///< the initial starting point.
     101    long location,                      ///< the initial starting point.
    102102    ///<  This can be a numeric index, PS_LIST_HEAD, or PS_LIST_TAIL.
    103103    bool mutable                       ///< Is it permissible to modify list?
     
    109109 *  @return psBool        TRUE if iterator successfully set, otherwise FALSE.
    110110 */
    111 psBool psListIteratorSet(
     111bool psListIteratorSet(
    112112    psListIterator* iterator,            ///< list iterator
    113113    int location                         ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
     
    118118 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    119119 */
    120 psBool psListAdd(
     120bool psListAdd(
    121121    psList* list,                      ///< list to add item to
    122     psS32 location,                    ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
     122    long location,                    ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.
    123123    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    124124);
     
    128128 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    129129 */
    130 psBool psListAddAfter(
    131     psListIterator* list,              ///< list position to add item to
     130bool psListAddAfter(
     131    psListIterator* iterator,          ///< list position to add item to
    132132    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    133133);
     
    137137 *  @return psBool        TRUE if item was successfully added, otherwise FALSE.
    138138 */
    139 psBool psListAddBefore(
    140     psListIterator* list,              ///< list position to add item to
     139bool psListAddBefore(
     140    psListIterator* iterator,              ///< list position to add item to
    141141    psPtr data                         ///< data item to add.  If NULL, list is not modified.
    142142);
     
    146146 *  @return psBool        TRUE if element is successfully removed, otherwise FALSE.
    147147 */
    148 psBool psListRemove(
     148bool psListRemove(
    149149    psList* list,                      ///< list to remove element from
    150     psS32 location                     ///< index of item
     150    long location                     ///< index of item
    151151);
    152152
     
    155155 *  @return psBool        TRUE if element is successfully removed, otherwise FALSE.
    156156 */
    157 psBool psListRemoveData(
     157bool psListRemoveData(
    158158    psList* list,                      ///< list to remove element from
    159159    psPtr data                         ///< data item to find and remove
     
    169169psPtr psListGet(
    170170    psList* list,                      ///< list to retrieve element from
    171     psS32 location                     ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
     171    long location                     ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL
    172172);
    173173
     
    196196 */
    197197psArray* psListToArray(
    198     psList* dlist                      ///< List to convert
     198    const psList* list                      ///< List to convert
    199199);
    200200
Note: See TracChangeset for help on using the changeset viewer.