Changeset 3684 for trunk/psLib/src
- Timestamp:
- Apr 8, 2005, 7:58:58 AM (21 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 28 edited
-
Makefile.am (modified) (3 diffs)
-
astronomy/Makefile.am (modified) (1 diff)
-
astronomy/psMetadata.h (modified) (2 diffs)
-
collections/Makefile.am (modified) (1 diff)
-
collections/psMetadata.h (modified) (2 diffs)
-
collections/psVector.c (modified) (4 diffs)
-
collections/psVector.h (modified) (2 diffs)
-
dataIO/Makefile.am (modified) (2 diffs)
-
dataIO/dataIO.i (modified) (1 diff)
-
dataIO/psFileUtilsErrors.h (modified) (2 diffs)
-
dataIO/psLookupTable.c (modified) (1 diff)
-
dataIO/psLookupTable.h (modified) (1 diff)
-
dataManip/Makefile.am (modified) (1 diff)
-
fileUtils/Makefile.am (modified) (2 diffs)
-
fileUtils/fileUtils.i (modified) (1 diff)
-
fileUtils/psFileUtilsErrors.h (modified) (2 diffs)
-
fileUtils/psLookupTable.c (modified) (1 diff)
-
fileUtils/psLookupTable.h (modified) (1 diff)
-
image/Makefile.am (modified) (1 diff)
-
image/psImageExtraction.c (modified) (2 diffs)
-
image/psImageStats.c (modified) (5 diffs)
-
imageops/psImageStats.c (modified) (5 diffs)
-
mathtypes/psVector.c (modified) (4 diffs)
-
mathtypes/psVector.h (modified) (2 diffs)
-
sysUtils/Makefile.am (modified) (1 diff)
-
types/psLookupTable.c (modified) (1 diff)
-
types/psLookupTable.h (modified) (1 diff)
-
types/psMetadata.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/Makefile.am
r3682 r3684 1 SUBDIRS = astronomy collections dataManip fileUtilsimage sysUtils1 SUBDIRS = astronomy collections dataManip dataIO image sysUtils 2 2 3 3 INCLUDES = \ … … 5 5 -I$(top_srcdir)/src/collections \ 6 6 -I$(top_srcdir)/src/dataManip \ 7 -I$(top_srcdir)/src/ fileUtils\7 -I$(top_srcdir)/src/dataIO \ 8 8 -I$(top_srcdir)/src/image \ 9 9 -I$(top_srcdir)/src/sysUtils \ … … 16 16 $(top_builddir)/src/collections/libpslibcollections.la \ 17 17 $(top_builddir)/src/dataManip/libpslibdataManip.la \ 18 $(top_builddir)/src/ fileUtils/libpslibfileUtils.la \18 $(top_builddir)/src/dataIO/libpslibdataIO.la \ 19 19 $(top_builddir)/src/image/libpslibimage.la \ 20 20 $(top_builddir)/src/sysUtils/libpslibsysUtils.la -
trunk/psLib/src/astronomy/Makefile.am
r3411 r3684 6 6 -I$(top_srcdir)/src/collections \ 7 7 -I$(top_srcdir)/src/dataManip \ 8 -I$(top_srcdir)/src/ fileUtils\8 -I$(top_srcdir)/src/dataIO \ 9 9 -I$(top_srcdir)/src/image \ 10 10 -I$(top_srcdir)/src/sysUtils \ -
trunk/psLib/src/astronomy/psMetadata.h
r3671 r3684 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-04-0 6 01:12:58$13 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-04-08 17:58:57 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 317 317 const char* comment, psPtr value); 318 318 319 320 319 /** Remove an item from metadata collection. 321 320 * -
trunk/psLib/src/collections/Makefile.am
r3127 r3684 4 4 -I$(top_srcdir)/src/astronomy \ 5 5 -I$(top_srcdir)/src/dataManip \ 6 -I$(top_srcdir)/src/ fileUtils\6 -I$(top_srcdir)/src/dataIO \ 7 7 -I$(top_srcdir)/src/image \ 8 8 -I$(top_srcdir)/src/sysUtils \ -
trunk/psLib/src/collections/psMetadata.h
r3671 r3684 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-04-0 6 01:12:58$13 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-04-08 17:58:57 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 317 317 const char* comment, psPtr value); 318 318 319 320 319 /** Remove an item from metadata collection. 321 320 * -
trunk/psLib/src/collections/psVector.c
r3682 r3684 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-04-0 7 20:27:41$11 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-08 17:58:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 55 55 psVec->type.dimen = PS_DIMEN_VECTOR; 56 56 psVec->type.type = elemType; 57 psVec->nalloc = nalloc;57 *(int*)&psVec->nalloc = nalloc; 58 58 psVec->n = nalloc; 59 59 … … 81 81 // Realloc after decrementation to avoid accessing freed array elements 82 82 in->data.U8 = psRealloc(in->data.U8, nalloc * elementSize); 83 in->nalloc = nalloc;83 *(int*)&in->nalloc = nalloc; 84 84 } 85 85 … … 108 108 if (byteSize > in->nalloc*PSELEMTYPE_SIZEOF(in->type.type)) { 109 109 in->data.U8 = psRealloc(in->data.U8, byteSize); 110 in->nalloc = n;110 *(int*)&in->nalloc = n; 111 111 } 112 112 -
trunk/psLib/src/collections/psVector.h
r3476 r3684 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 3-22 21:52:49$13 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-04-08 17:58:57 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 33 33 { 34 34 psType type; ///< Type of data. 35 psU32 nalloc; ///< Total number of elements available.36 psU32 n; ///< Number of elements in use.35 int n; ///< Number of elements in use. 36 const int nalloc; ///< Total number of elements available. 37 37 38 38 union { -
trunk/psLib/src/dataIO/Makefile.am
r3127 r3684 1 #Makefile for fileUtilsfunctions of psLib1 #Makefile for dataIO functions of psLib 2 2 # 3 3 INCLUDES = \ … … 9 9 $(all_includes) 10 10 11 noinst_LTLIBRARIES = libpslib fileUtils.la11 noinst_LTLIBRARIES = libpslibdataIO.la 12 12 13 libpslib fileUtils_la_SOURCES = \13 libpslibdataIO_la_SOURCES = \ 14 14 psLookupTable.c \ 15 15 psFits.c 16 16 17 17 BUILT_SOURCES = psFileUtilsErrors.h 18 EXTRA_DIST = psFileUtilsErrors.dat psFileUtilsErrors.h fileUtils.i18 EXTRA_DIST = psFileUtilsErrors.dat psFileUtilsErrors.h dataIO.i 19 19 20 20 psFileUtilsErrors.h: psFileUtilsErrors.dat -
trunk/psLib/src/dataIO/dataIO.i
r3115 r3684 1 /* fileUtilsheaders */1 /* dataIO headers */ 2 2 %include "psFileUtilsErrors.h" 3 3 %include "psFits.h" -
trunk/psLib/src/dataIO/psFileUtilsErrors.h
r3271 r3684 1 1 /** @file psFileUtilsErrors.h 2 2 * 3 * @brief Contains the error text for the fileUtilsfunctions3 * @brief Contains the error text for the dataIO functions 4 4 * 5 5 * @ingroup ErrorHandling … … 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 21:54:09$9 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-04-08 17:58:57 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/dataIO/psLookupTable.c
r3682 r3684 3 3 * @brief This file defines the structure and functions for table lookups. 4 4 * 5 * @ingroup fileUtils5 * @ingroup dataIO 6 6 * 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-04-0 7 20:27:41$9 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-04-08 17:58:57 $ 11 11 * 12 12 * Copyright 2004-5 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/dataIO/psLookupTable.h
r3271 r3684 3 3 * @brief This file defines the structure and functions for table lookups. 4 4 * 5 * @ingroup fileUtils5 * @ingroup dataIO 6 6 * 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 21:54:09$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-04-08 17:58:57 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/dataManip/Makefile.am
r3182 r3684 4 4 -I$(top_srcdir)/src/astronomy \ 5 5 -I$(top_srcdir)/src/collections \ 6 -I$(top_srcdir)/src/ fileUtils\6 -I$(top_srcdir)/src/dataIO \ 7 7 -I$(top_srcdir)/src/image \ 8 8 -I$(top_srcdir)/src/sysUtils \ -
trunk/psLib/src/fileUtils/Makefile.am
r3127 r3684 1 #Makefile for fileUtilsfunctions of psLib1 #Makefile for dataIO functions of psLib 2 2 # 3 3 INCLUDES = \ … … 9 9 $(all_includes) 10 10 11 noinst_LTLIBRARIES = libpslib fileUtils.la11 noinst_LTLIBRARIES = libpslibdataIO.la 12 12 13 libpslib fileUtils_la_SOURCES = \13 libpslibdataIO_la_SOURCES = \ 14 14 psLookupTable.c \ 15 15 psFits.c 16 16 17 17 BUILT_SOURCES = psFileUtilsErrors.h 18 EXTRA_DIST = psFileUtilsErrors.dat psFileUtilsErrors.h fileUtils.i18 EXTRA_DIST = psFileUtilsErrors.dat psFileUtilsErrors.h dataIO.i 19 19 20 20 psFileUtilsErrors.h: psFileUtilsErrors.dat -
trunk/psLib/src/fileUtils/fileUtils.i
r3115 r3684 1 /* fileUtilsheaders */1 /* dataIO headers */ 2 2 %include "psFileUtilsErrors.h" 3 3 %include "psFits.h" -
trunk/psLib/src/fileUtils/psFileUtilsErrors.h
r3271 r3684 1 1 /** @file psFileUtilsErrors.h 2 2 * 3 * @brief Contains the error text for the fileUtilsfunctions3 * @brief Contains the error text for the dataIO functions 4 4 * 5 5 * @ingroup ErrorHandling … … 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 21:54:09$9 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-04-08 17:58:57 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/fileUtils/psLookupTable.c
r3682 r3684 3 3 * @brief This file defines the structure and functions for table lookups. 4 4 * 5 * @ingroup fileUtils5 * @ingroup dataIO 6 6 * 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-04-0 7 20:27:41$9 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-04-08 17:58:57 $ 11 11 * 12 12 * Copyright 2004-5 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/fileUtils/psLookupTable.h
r3271 r3684 3 3 * @brief This file defines the structure and functions for table lookups. 4 4 * 5 * @ingroup fileUtils5 * @ingroup dataIO 6 6 * 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 21:54:09$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-04-08 17:58:57 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/image/Makefile.am
r3127 r3684 5 5 -I$(top_srcdir)/src/collections \ 6 6 -I$(top_srcdir)/src/dataManip \ 7 -I$(top_srcdir)/src/ fileUtils\7 -I$(top_srcdir)/src/dataIO \ 8 8 -I$(top_srcdir)/src/sysUtils \ 9 9 $(all_includes) -
trunk/psLib/src/image/psImageExtraction.c
r3682 r3684 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-04-0 7 20:27:41$11 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-08 17:58:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 428 428 imgVec = psAlloc(sizeof(psVector)); 429 429 imgVec->type = in->type; 430 imgVec->n = imgVec->nalloc = numCols;430 imgVec->n = *(int*)&imgVec->nalloc = numCols; 431 431 if (mask != NULL) { 432 432 maskVec = psAlloc(sizeof(psVector)); 433 433 maskVec->type = mask->type; 434 maskVec->n = maskVec->nalloc = numCols;434 maskVec->n = *(int*)&maskVec->nalloc = numCols; 435 435 } 436 436 // recycle output to make a proper sized/type output structure -
trunk/psLib/src/image/psImageStats.c
r3493 r3684 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 3-24 19:39:53$11 * @version $Revision: 1.71 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-08 17:58:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 61 61 junkData = (psVector *) psAlloc(sizeof(psVector)); 62 62 junkData->type = in->type; 63 junkData->nalloc = in->numRows * in->numCols;63 *(int*)&junkData->nalloc = in->numRows * in->numCols; 64 64 junkData->n = junkData->nalloc; 65 65 junkData->data.U8 = in->data.V[0]; // since psImage data is contiguous... … … 85 85 junkMask = psAlloc(sizeof(psVector)); 86 86 junkMask->type = mask->type; 87 junkMask->nalloc = mask->numRows * mask->numCols;87 *(int*)&junkMask->nalloc = mask->numRows * mask->numCols; 88 88 junkMask->n = junkMask->nalloc; 89 89 junkMask->data.U8 = mask->data.V[0]; … … 134 134 junkData = (psVector *) psAlloc(sizeof(psVector)); 135 135 junkData->type = in->type; 136 junkData->nalloc = in->numRows * in->numCols;136 *(int*)&junkData->nalloc = in->numRows * in->numCols; 137 137 junkData->n = junkData->nalloc; 138 138 junkData->data.U8 = in->data.V[0]; // since psImage data is contiguous... … … 158 158 junkMask = psAlloc(sizeof(psVector)); 159 159 junkMask->type = mask->type; 160 junkMask->nalloc = mask->numRows * mask->numCols;160 *(int*)&junkMask->nalloc = mask->numRows * mask->numCols; 161 161 junkMask->n = junkMask->nalloc; 162 162 junkMask->data.U8 = mask->data.V[0]; -
trunk/psLib/src/imageops/psImageStats.c
r3493 r3684 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 3-24 19:39:53$11 * @version $Revision: 1.71 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-08 17:58:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 61 61 junkData = (psVector *) psAlloc(sizeof(psVector)); 62 62 junkData->type = in->type; 63 junkData->nalloc = in->numRows * in->numCols;63 *(int*)&junkData->nalloc = in->numRows * in->numCols; 64 64 junkData->n = junkData->nalloc; 65 65 junkData->data.U8 = in->data.V[0]; // since psImage data is contiguous... … … 85 85 junkMask = psAlloc(sizeof(psVector)); 86 86 junkMask->type = mask->type; 87 junkMask->nalloc = mask->numRows * mask->numCols;87 *(int*)&junkMask->nalloc = mask->numRows * mask->numCols; 88 88 junkMask->n = junkMask->nalloc; 89 89 junkMask->data.U8 = mask->data.V[0]; … … 134 134 junkData = (psVector *) psAlloc(sizeof(psVector)); 135 135 junkData->type = in->type; 136 junkData->nalloc = in->numRows * in->numCols;136 *(int*)&junkData->nalloc = in->numRows * in->numCols; 137 137 junkData->n = junkData->nalloc; 138 138 junkData->data.U8 = in->data.V[0]; // since psImage data is contiguous... … … 158 158 junkMask = psAlloc(sizeof(psVector)); 159 159 junkMask->type = mask->type; 160 junkMask->nalloc = mask->numRows * mask->numCols;160 *(int*)&junkMask->nalloc = mask->numRows * mask->numCols; 161 161 junkMask->n = junkMask->nalloc; 162 162 junkMask->data.U8 = mask->data.V[0]; -
trunk/psLib/src/mathtypes/psVector.c
r3682 r3684 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-04-0 7 20:27:41$11 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-04-08 17:58:57 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 55 55 psVec->type.dimen = PS_DIMEN_VECTOR; 56 56 psVec->type.type = elemType; 57 psVec->nalloc = nalloc;57 *(int*)&psVec->nalloc = nalloc; 58 58 psVec->n = nalloc; 59 59 … … 81 81 // Realloc after decrementation to avoid accessing freed array elements 82 82 in->data.U8 = psRealloc(in->data.U8, nalloc * elementSize); 83 in->nalloc = nalloc;83 *(int*)&in->nalloc = nalloc; 84 84 } 85 85 … … 108 108 if (byteSize > in->nalloc*PSELEMTYPE_SIZEOF(in->type.type)) { 109 109 in->data.U8 = psRealloc(in->data.U8, byteSize); 110 in->nalloc = n;110 *(int*)&in->nalloc = n; 111 111 } 112 112 -
trunk/psLib/src/mathtypes/psVector.h
r3476 r3684 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 3-22 21:52:49$13 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-04-08 17:58:57 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 33 33 { 34 34 psType type; ///< Type of data. 35 psU32 nalloc; ///< Total number of elements available.36 psU32 n; ///< Number of elements in use.35 int n; ///< Number of elements in use. 36 const int nalloc; ///< Total number of elements available. 37 37 38 38 union { -
trunk/psLib/src/sysUtils/Makefile.am
r3127 r3684 5 5 -I$(top_srcdir)/src/collections \ 6 6 -I$(top_srcdir)/src/dataManip \ 7 -I$(top_srcdir)/src/ fileUtils\7 -I$(top_srcdir)/src/dataIO \ 8 8 -I$(top_srcdir)/src/image \ 9 9 $(all_includes) -
trunk/psLib/src/types/psLookupTable.c
r3682 r3684 3 3 * @brief This file defines the structure and functions for table lookups. 4 4 * 5 * @ingroup fileUtils5 * @ingroup dataIO 6 6 * 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-04-0 7 20:27:41$9 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-04-08 17:58:57 $ 11 11 * 12 12 * Copyright 2004-5 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/types/psLookupTable.h
r3271 r3684 3 3 * @brief This file defines the structure and functions for table lookups. 4 4 * 5 * @ingroup fileUtils5 * @ingroup dataIO 6 6 * 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 21:54:09$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-04-08 17:58:57 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/types/psMetadata.h
r3671 r3684 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-04-0 6 01:12:58$13 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-04-08 17:58:57 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 317 317 const char* comment, psPtr value); 318 318 319 320 319 /** Remove an item from metadata collection. 321 320 *
Note:
See TracChangeset
for help on using the changeset viewer.
