IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2005, 11:22:22 AM (21 years ago)
Author:
drobbin
Message:

Minor changes from new SDRS, prototype code for psArguments

Location:
trunk/psLib/src/mathtypes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r4980 r5057  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-09-09 02:02:54 $
     11 *  @version $Revision: 1.82 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-09-15 21:22:22 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4444    psImageFreeChildren(image);
    4545
    46     psFree(image->rawDataBuffer);
     46    psFree(image->p_rawDataBuffer);
    4747    psFree(image->data.V);
    4848}
     
    7171    image->data.V = psAlloc(sizeof(psPtr ) * numRows);
    7272
    73     image->rawDataBuffer = psAlloc(area * elementSize);
     73    image->p_rawDataBuffer = psAlloc(area * elementSize);
    7474
    7575    // set the row pointers.
    76     image->data.V[0] = image->rawDataBuffer;
     76    image->data.V[0] = image->p_rawDataBuffer;
    7777    for (psS32 i = 1; i < numRows; i++) {
    7878        image->data.V[i] = (psPtr )((int8_t *) image->data.V[i - 1] + rowSize);
     
    293293    }
    294294    // Resize the image buffer
    295     old->rawDataBuffer = psRealloc(old->data.V[0],
    296                                    numCols * numRows * elementSize);
     295    old->p_rawDataBuffer = psRealloc(old->data.V[0],
     296                                     numCols * numRows * elementSize);
    297297    old->data.V = (psPtr *)psRealloc(old->data.V, numRows * sizeof(psPtr ));
    298298
    299299    // recreate the row pointers
    300     old->data.V[0] = old->rawDataBuffer;
     300    old->data.V[0] = old->p_rawDataBuffer;
    301301    for (psS32 i = 1; i < numRows; i++) {
    302302        old->data.V[i] = (psPtr )((int8_t *) old->data.V[i - 1] + rowSize);
  • trunk/psLib/src/mathtypes/psImage.h

    r4985 r5057  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.67 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-09-10 00:16:58 $
     13 *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-09-15 21:22:22 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5959
    6060    union {
     61        psS8**  S8;                    ///< Signed 8-bit integer data.
     62        psS16** S16;                   ///< Signed 16-bit integer data.
     63        psS32** S32;                   ///< Signed 32-bit integer data.
     64        psS64** S64;                   ///< Signed 64-bit integer data.
    6165        psU8**  U8;                    ///< Unsigned 8-bit integer data.
    6266        psU16** U16;                   ///< Unsigned 16-bit integer data.
    6367        psU32** U32;                   ///< Unsigned 32-bit integer data.
    6468        psU64** U64;                   ///< Unsigned 64-bit integer data.
    65         psS8**  S8;                    ///< Signed 8-bit integer data.
    66         psS16** S16;                   ///< Signed 16-bit integer data.
    67         psS32** S32;                   ///< Signed 32-bit integer data.
    68         psS64** S64;                   ///< Signed 64-bit integer data.
    6969        psF32** F32;                   ///< Single-precision float data.
    7070        psF64** F64;                   ///< Double-precision float data.
    7171        psC32** C32;                   ///< Single-precision complex data.
    7272        psC64** C64;                   ///< Double-precision complex data.
    73         //        psPtr** PTR;                   ///< Void pointers.
    7473        psPtr*  V;                     ///< Pointer to data.
    7574    } data;                            ///< Union for data types.
    7675    const struct psImage* parent;      ///< Parent, if a subimage.
     76    psPtr p_rawDataBuffer;             ///< Raw data buffer for Allocating/Freeing Images; private
    7777    psArray* children;                 ///< Children of this region.
    78 
    79     psPtr rawDataBuffer;               ///< Raw data buffer for Allocating/Freeing Images
    8078    void *lock;                        ///< Optional lock for thread safety
    8179}
  • trunk/psLib/src/mathtypes/psScalar.h

    r4935 r5057  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-08-31 22:00:10 $
     13 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-09-15 21:22:22 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3535
    3636    union {
     37        psS8 S8;                ///< Signed 8-bit integer data.
     38        psS16 S16;              ///< Signed 16-bit integer data.
     39        psS32 S32;              ///< Signed 32-bit integer data.
     40        psS64 S64;              ///< Signed 64-bit integer data.
    3741        psU8 U8;                ///< Unsigned 8-bit integer data.
    3842        psU16 U16;              ///< Unsigned 16-bit integer data.
    3943        psU32 U32;              ///< Unsigned 32-bit integer data.
    4044        psU64 U64;              ///< Unsigned 64-bit integer data.
    41         psS8 S8;                ///< Signed 8-bit integer data.
    42         psS16 S16;              ///< Signed 16-bit integer data.
    43         psS32 S32;              ///< Signed 32-bit integer data.
    44         psS64 S64;              ///< Signed 64-bit integer data.
    4545        psF32 F32;              ///< Single-precision float data.
    4646        psF64 F64;              ///< Double-precision float data.
  • trunk/psLib/src/mathtypes/psVector.h

    r4944 r5057  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-09-02 21:32:06 $
     13 *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-09-15 21:22:22 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3838    const long nalloc;                 ///< Total number of elements available.
    3939    union {
     40        psS8* S8;                      ///< Signed 8-bit integer data.
     41        psS16* S16;                    ///< Signed 16-bit integer data.
     42        psS32* S32;                    ///< Signed 32-bit integer data.
     43        psS64* S64;                    ///< Signed 64-bit integer data.
    4044        psU8* U8;                      ///< Unsigned 8-bit integer data.
    4145        psU16* U16;                    ///< Unsigned 16-bit integer data.
    4246        psU32* U32;                    ///< Unsigned 32-bit integer data.
    4347        psU64* U64;                    ///< Unsigned 64-bit integer data.
    44         psS8* S8;                      ///< Signed 8-bit integer data.
    45         psS16* S16;                    ///< Signed 16-bit integer data.
    46         psS32* S32;                    ///< Signed 32-bit integer data.
    47         psS64* S64;                    ///< Signed 64-bit integer data.
    4848        psF32* F32;                    ///< Single-precision float data.
    4949        psF64* F64;                    ///< Double-precision float data.
Note: See TracChangeset for help on using the changeset viewer.