Changeset 34089
- Timestamp:
- Jun 26, 2012, 11:47:13 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 52 edited
-
magic/remove/configure.ac (modified) (1 diff)
-
magic/remove/src/Makefile.am (modified) (1 diff)
-
magic/remove/src/streakscompare.c (modified) (1 diff)
-
magic/remove/src/streaksio.c (modified) (1 diff)
-
magic/remove/src/streaksrelease.c (modified) (1 diff)
-
pedestal/configure.ac (modified) (2 diffs)
-
ppArith/configure.ac (modified) (2 diffs)
-
ppBackground/configure.ac (modified) (2 diffs)
-
ppBackground/src/ppBackgroundExit.c (modified) (1 diff)
-
ppConfigDump/configure.ac (modified) (2 diffs)
-
ppMerge/configure.ac (modified) (2 diffs)
-
ppNoiseMap/configure.ac (modified) (2 diffs)
-
ppNorm/configure.ac (modified) (2 diffs)
-
ppNorm/src/ppNormCalc.c (modified) (1 diff)
-
ppSkycell/configure.ac (modified) (2 diffs)
-
ppSmooth/configure.ac (modified) (2 diffs)
-
ppStack/configure.ac (modified) (2 diffs)
-
ppStack/src/ppStackConvolve.c (modified) (2 diffs)
-
ppStack/src/ppStackFinish.c (modified) (1 diff)
-
ppStack/src/ppStackMatch.c (modified) (1 diff)
-
ppStack/src/ppStackTarget.c (modified) (1 diff)
-
ppSub/configure.ac (modified) (2 diffs)
-
ppSub/src/ppSubExit.c (modified) (1 diff)
-
ppSub/src/ppSubMatchPSFs.c (modified) (3 diffs)
-
ppTranslate/configure.ac (modified) (2 diffs)
-
ppViz/configure.ac (modified) (2 diffs)
-
ppbgrestore/configure.ac (modified) (2 diffs)
-
psLib/configure.ac (modified) (2 diffs)
-
psLib/m4/ipp_stdopts.m4 (modified) (2 diffs)
-
psLib/src/astro/psTime.c (modified) (2 diffs)
-
psLib/src/fits/psFitsTable.c (modified) (2 diffs)
-
psLib/src/imageops/psImageGeomManip.c (modified) (2 diffs)
-
psLib/src/imageops/psImageInterpolate.c (modified) (5 diffs)
-
psLib/src/imageops/psImageStructManip.c (modified) (1 diff)
-
psLib/src/math/psMinimizePowell.c (modified) (2 diffs)
-
psLib/src/mathtypes/psVector.c (modified) (1 diff)
-
psLib/src/types/psLookupTable.c (modified) (2 diffs)
-
psLib/src/types/psMetadata.c (modified) (1 diff)
-
psLib/src/types/psMetadataConfig.c (modified) (1 diff)
-
psLib/src/types/psMetadataItemCompare.c (modified) (2 diffs)
-
psLib/test/tap/src/tap.c (modified) (3 diffs)
-
psastro/configure.ac (modified) (2 diffs)
-
pstamp/configure.ac (modified) (2 diffs)
-
pstamp/scripts (modified) (1 prop)
-
pstamp/src/Makefile.am (modified) (1 diff)
-
pstamp/src/pstamprequest.c (modified) (2 diffs)
-
psvideophot (modified) (1 prop)
-
psvideophot/configure.ac (modified) (2 diffs)
-
pswarp/configure.ac (modified) (2 diffs)
-
pswarp/src/pswarpArguments.c (modified) (2 diffs)
-
pswarp/src/pswarpExit.c (modified) (1 diff)
-
pswarp/src/pswarpTransformReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/configure.ac
r26438 r34089 21 21 22 22 dnl ------------- psLib, psModules --------------- 23 PKG_CHECK_MODULES([PSLIB], [pslib >= 1.0.0]) 24 PKG_CHECK_MODULES([PSMODULE], [psmodules >= 1.0.0]) 23 PKG_CHECK_MODULES([PSLIB], [pslib >= 1.0.0]) 24 PKG_CHECK_MODULES([PSMODULE], [psmodules >= 1.0.0]) 25 PKG_CHECK_MODULES([NEBCLIENT], [nebclient >= 0.17]) 25 26 26 27 dnl Set CFLAGS for build 27 28 IPP_STDOPTS 28 CFLAGS="${CFLAGS=} -Wall -Werror"29 dnl CFLAGS="${CFLAGS=} -Wall -Werror" 29 30 echo "STREAKSREMOVE_CFLAGS: $STREAKSREMOVE_CFLAGS" 30 31 echo "STREAKSREMOVE_LIBS: $STREAKSREMOVE_LIBS" -
trunk/magic/remove/src/Makefile.am
r26890 r34089 24 24 STREAKSREMOVE_CFLAGS=-DSTREAKS_COMPRESS_OUTPUT=1 25 25 26 STREAKSCFLAGS = $(STREAKSREMOVE_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS) 27 STREAKSLDFLAGS = $(STREAKSREMOVE_LIBS) $(PSMODULE_LIBS) $(PSLIB_LIBS) 26 STREAKSCFLAGS = $(STREAKSREMOVE_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS) ${NEBCLIENT_CFLAGS} 27 STREAKSLDFLAGS = $(STREAKSREMOVE_LIBS) $(PSMODULE_LIBS) $(PSLIB_LIBS) ${NEBCLIENT_LIBS} 28 28 29 29 streaksremove_CFLAGS = $(STREAKSCFLAGS) -
trunk/magic/remove/src/streakscompare.c
r30315 r34089 165 165 } 166 166 167 if (nebulousImage) { /* do something? */ } 168 167 169 if (argc != 1) { 168 170 psString unexpectedArguments = NULL; -
trunk/magic/remove/src/streaksio.c
r32687 r34089 659 659 660 660 // Ensure input is of the expected type 661 ps DataType expected = isMask ? PS_TYPE_IMAGE_MASK : PS_TYPE_F32; // Expected type for image661 psElemType expected = isMask ? PS_TYPE_IMAGE_MASK : PS_TYPE_F32; // Expected type for image 662 662 for (int i = 0; i < in->imagecube->n; i++) { 663 663 psImage *image = in->imagecube->data[i]; // Image of interest -
trunk/magic/remove/src/streaksrelease.c
r30315 r34089 288 288 } else { 289 289 // we have an image cube 290 double initValue;290 // double initValue; 291 291 if (exciseImageCube) { 292 292 // copy the entire input image to the recovery image 293 293 writeImageCube(sf->recImage, sf->inImage->imagecube, extname, sf->extnum); 294 initValue = NAN;294 // initValue = NAN; 295 295 } else { 296 296 // otherwise write it to the output 297 297 writeImageCube(sf->outImage, sf->inImage->imagecube, extname, sf->extnum); 298 initValue = 0;298 // initValue = 0; 299 299 } 300 300 -
trunk/pedestal/configure.ac
r19589 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 20 20 21 21 IPP_STDOPTS 22 CFLAGS="${CFLAGS=} -Wall -Werror" 22 IPP_STDCFLAGS 23 23 24 24 AC_CONFIG_FILES([ -
trunk/ppArith/configure.ac
r23795 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 24 24 dnl Set CFLAGS for build 25 25 IPP_STDOPTS 26 CFLAGS="${CFLAGS} -Wall -Werror" 26 IPP_STDCFLAGS 27 27 28 28 IPP_VERSION -
trunk/ppBackground/configure.ac
r28281 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 30 30 dnl Set CFLAGS for build 31 31 IPP_STDOPTS 32 CFLAGS="${CFLAGS} -Wall -Werror" 32 IPP_STDCFLAGS 33 33 34 34 IPP_VERSION -
trunk/ppBackground/src/ppBackgroundExit.c
r28288 r34089 10 10 } 11 11 12 psErrorCode errorCode = psErrorCodeLast(); // Error code 12 // gcc -Wswitch complains here if err is declared as type psErrorCode 13 // the collection of ps*ErrorCode values are enums defined separately for 14 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 15 // not include the possible psphot values 16 17 // for now, to get around this, we just use an int for the switch 18 19 // psErrorCode errorCode = psErrorCodeLast(); // Error code 20 int errorCode = psErrorCodeLast(); // Error code 21 13 22 if (errorCode != PS_ERR_NONE) { 14 23 pmFPAfileFreeSetStrict(false); -
trunk/ppConfigDump/configure.ac
r21038 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 21 21 22 22 IPP_STDOPTS 23 CFLAGS="${CFLAGS=} -Wall -Werror" 23 IPP_STDCFLAGS 24 24 25 25 AC_CONFIG_FILES([ -
trunk/ppMerge/configure.ac
r23800 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 24 24 25 25 IPP_STDOPTS 26 CFLAGS="${CFLAGS=} -Wall -Werror" 26 IPP_STDCFLAGS 27 27 28 28 AC_CONFIG_FILES([ -
trunk/ppNoiseMap/configure.ac
r24458 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 21 21 22 22 IPP_STDOPTS 23 CFLAGS="${CFLAGS=} -Wall -Werror" 23 IPP_STDCFLAGS 24 24 25 25 IPP_VERSION -
trunk/ppNorm/configure.ac
r19585 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 21 21 22 22 IPP_STDOPTS 23 CFLAGS="${CFLAGS=} -Wall -Werror" 23 IPP_STDCFLAGS 24 24 25 25 AC_CONFIG_FILES([ -
trunk/ppNorm/src/ppNormCalc.c
r18071 r34089 86 86 psMetadataItem *compsItem; // Item from iteration 87 87 while ((compsItem = psMetadataGetAndIncrement(compsIter))) { 88 if (compsItem->type != PS_ TYPE_F32) {88 if (compsItem->type != PS_DATA_F32) { 89 89 psLogMsg("ppNormCalc", PS_LOG_WARN, 90 90 "Component %s within exposure %s is not of type F32 --- ignored.\n", -
trunk/ppSkycell/configure.ac
r23982 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 23 23 dnl Set CFLAGS for build 24 24 IPP_STDOPTS 25 CFLAGS="${CFLAGS} -Wall -Werror" 25 IPP_STDCFLAGS 26 26 27 27 IPP_VERSION -
trunk/ppSmooth/configure.ac
r25976 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 21 21 22 22 IPP_STDOPTS 23 CFLAGS="${CFLAGS=} -Wall -Werror" 23 IPP_STDCFLAGS 24 24 25 25 IPP_VERSION -
trunk/ppStack/configure.ac
r27004 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 28 28 29 29 IPP_STDOPTS 30 CFLAGS="${CFLAGS=} -Wall -Werror" 30 IPP_STDCFLAGS 31 31 32 32 IPP_VERSION -
trunk/ppStack/src/ppStackConvolve.c
r32170 r34089 7 7 psMetadataItem *item = psMetadataLookup(SOURCE->concepts, NAME); \ 8 8 psAssert(item, "Concept should be present"); \ 9 psAssert(item->type == PS_ TYPE_F32, "Concept should be F32"); \9 psAssert(item->type == PS_DATA_F32, "Concept should be F32"); \ 10 10 item->data.F32 = VALUE; \ 11 11 } … … 101 101 if (!ppStackMatch(readout, target, options, i, config)) { 102 102 // XXX many things can cause a failure of ppStackMatch -- should some be handled differently? 103 psErrorCode error = psErrorCodeLast(); // Error code 103 104 // gcc -Wswitch complains here if err is declared as type psErrorCode 105 // the collection of ps*ErrorCode values are enums defined separately for 106 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 107 // not include the possible psphot values 108 109 // for now, to get around this, we just use an int for the switch 110 111 // psErrorCode error = psErrorCodeLast(); // Error code 112 int error = psErrorCodeLast(); // Error code 104 113 switch (error) { 105 114 // Fatal errors -
trunk/ppStack/src/ppStackFinish.c
r30620 r34089 45 45 } 46 46 47 psErrorCode errorCode = psErrorCodeLast(); // Error code 47 // gcc -Wswitch complains here if err is declared as type psErrorCode 48 // the collection of ps*ErrorCode values are enums defined separately for 49 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 50 // not include the possible psphot values 51 52 // for now, to get around this, we just use an int for the switch 53 54 // psErrorCode errorCode = psErrorCodeLast(); // Error code 55 int errorCode = psErrorCodeLast(); // Error code 48 56 if (errorCode == PS_ERR_NONE) { 49 57 return exitValue; -
trunk/ppStack/src/ppStackMatch.c
r33426 r34089 460 460 psMetadataItem *item = NULL;// Item from iteration 461 461 while ((item = psMetadataGetAndIncrement(iter))) { 462 assert(item->type == PS_ TYPE_F32);462 assert(item->type == PS_DATA_F32); 463 463 float norm = item->data.F32; // Normalisation 464 464 sum += norm; -
trunk/ppStack/src/ppStackTarget.c
r30620 r34089 191 191 192 192 float norm = powf(10.0, -0.4 * options->norm->data.F32[i]); // Normalisation from stars 193 float meanVariance = bg->robustMedian * PS_SQR(norm); // Mean variance in normalised image193 float meanVariance = mean * PS_SQR(norm); // Mean variance in normalised image 194 194 195 195 if (meanVariance < minVariance) { -
trunk/ppSub/configure.ac
r23803 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 30 30 dnl Set CFLAGS for build 31 31 IPP_STDOPTS 32 CFLAGS="${CFLAGS} -Wall -Werror" 32 IPP_STDCFLAGS 33 33 34 34 IPP_VERSION -
trunk/ppSub/src/ppSubExit.c
r27719 r34089 11 11 } 12 12 13 psErrorCode errorCode = psErrorCodeLast(); // Error code 13 // gcc -Wswitch complains here if err is declared as type psErrorCode 14 // the collection of ps*ErrorCode values are enums defined separately for 15 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 16 // not include the possible psphot values 17 18 // for now, to get around this, we just use an int for the switch 19 20 // psErrorCode errorCode = psErrorCodeLast(); // Error code 21 int errorCode = psErrorCodeLast(); // Error code 14 22 if (errorCode != PS_ERR_NONE) { 15 23 pmFPAfileFreeSetStrict(false); -
trunk/ppSub/src/ppSubMatchPSFs.c
r32676 r34089 266 266 if (!detections->allSources) { 267 267 psFree(detections); 268 psErrorCodeerror = psErrorCodeLast(); // Error code268 int error = psErrorCodeLast(); // Error code 269 269 if (error == PM_ERR_OBJECTS) { 270 270 psErrorStackPrint(stderr, "Unable to match source lists"); … … 439 439 440 440 if (!success) { 441 psErrorCodeerror = psErrorCodeLast(); // Error code441 int error = psErrorCodeLast(); // Error code 442 442 if (error == PM_ERR_STAMPS) { 443 443 psErrorStackPrint(stderr, "Unable to find stamps"); … … 471 471 psRegion *region = regItem->data.V; // Region of interest 472 472 psMetadataItem *modeItem = psMetadataGetAndIncrement(modeIter); // Item with mode 473 psAssert(modeItem && modeItem->type == PS_ TYPE_S32, "Expect subtraction mode");473 psAssert(modeItem && modeItem->type == PS_DATA_S32, "Expect subtraction mode"); 474 474 pmSubtractionMode mode = modeItem->data.S32; // Subtraction mode 475 475 psMetadataItem *normItem = psMetadataGetAndIncrement(normIter); // Item with normalisation 476 psAssert(normItem && normItem->type == PS_ TYPE_F32 && isfinite(normItem->data.F32),476 psAssert(normItem && normItem->type == PS_DATA_F32 && isfinite(normItem->data.F32), 477 477 "Expect normalisation"); 478 478 float norm = normItem->data.F32; // Normalisation -
trunk/ppTranslate/configure.ac
r25923 r34089 10 10 AM_MAINTAINER_MODE 11 11 12 IPP_STD CFLAGS12 IPP_STDLDFLAGS 13 13 14 14 AC_LANG(C) … … 30 30 dnl Set CFLAGS for build 31 31 IPP_STDOPTS 32 CFLAGS="${CFLAGS} -Wall -Werror" 32 IPP_STDCFLAGS 33 33 34 34 IPP_VERSION -
trunk/ppViz/configure.ac
r27404 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 23 23 dnl Set CFLAGS for build 24 24 IPP_STDOPTS 25 CFLAGS="${CFLAGS} -Wall -Werror" 25 IPP_STDCFLAGS 26 26 27 27 IPP_VERSION -
trunk/ppbgrestore/configure.ac
r25973 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 32 32 dnl Set CFLAGS for build 33 33 IPP_STDOPTS 34 CFLAGS="${CFLAGS} -Wall -Werror" 34 IPP_STDCFLAGS 35 35 36 36 IPP_VERSION 37 38 # echo "PPSTAMP_CFLAGS: $PPSTAMP_CFLAGS"39 # echo "PPSTAMP_LIBS: $PPSTAMP_LIBS"40 37 41 38 AC_SUBST([PPSTAMP_CFLAGS]) -
trunk/psLib/configure.ac
r29542 r34089 27 27 AC_SUBST(PSLIB_LT_VERSION,$PSLIB_LT_VERSION) 28 28 29 IPP_STD CFLAGS29 IPP_STDLDFLAGS 30 30 31 31 dnl ------------------- PERL options --------------------- … … 473 473 dnl ------- enable -Werror after all of the probes have run --------- 474 474 IPP_STDOPTS 475 476 CFLAGS="${CFLAGS} -Wall -Werror" 477 dnl enable POSIX/XSI and C99 compliance 475 IPP_STDCFLAGS 478 476 CFLAGS="${CFLAGS=} -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L" 479 477 -
trunk/psLib/m4/ipp_stdopts.m4
r23793 r34089 1 1 2 dnl IPP_STDCFLAGS must go *after* external probes (to avoid Werror confusing things) 2 3 AC_DEFUN([IPP_STDCFLAGS], 3 4 [ 5 dnl this section currently overrides a user-defined CFLAGS 4 6 AC_ARG_ENABLE(optimize, 5 7 [AS_HELP_STRING(--enable-optimize,enable compiler optimization)], … … 12 14 ] 13 15 ) 16 dnl this section accepts a user-defined CFLAGS, and sets CFLAGS to the empty string if not present 17 AC_ARG_ENABLE(debug-build, 18 [AS_HELP_STRING(--enable-debug-build,enable debug build: ie disable Werror)], 19 [AC_MSG_RESULT(debug build enabled) 20 if test x"${CFLAGS}" == x; then 21 CFLAGS="-Wall" 22 else 23 CFLAGS="${CFLAGS=} -Wall" 24 fi 25 ], 26 [AC_MSG_RESULT([compile optimization disabled]) 27 if test x"${CFLAGS}" == x; then 28 CFLAGS="-Wall -Werror" 29 else 30 CFLAGS="${CFLAGS=} -Wall -Werror" 31 fi 32 ] 33 ) 14 34 ]) 35 36 dnl IPP_STDLDFLAGS must go *before* external probes (so linking is done with --no-as-needed if needed) 37 AC_DEFUN([IPP_STDLDFLAGS], 38 [ 39 dnl this section accepts a user-defined LDFLAGS, and sets LDFLAGS to the empty string if not present 40 AC_ARG_ENABLE(no-as-needed, 41 [AS_HELP_STRING(--enable-no-as-needed, prevent as-needed option sometimes supplied to gcc such as Ubuntu after 11.11)], 42 [AC_MSG_RESULT(no-as-needed passed to linker) 43 if test x"${LDFLAGS}" == x; then 44 LDFLAGS="-Wl,--no-as-needed" 45 else 46 LDFLAGS="${LDFLAGS=} -Wl,--no-as-needed" 47 fi 48 ], 49 [AC_MSG_RESULT(as-needed linker flags accepted) 50 if test x"${LDFLAGS}" == x; then 51 LDFLAGS="" 52 fi 53 ] 54 ) 55 ]) 56 dnl 15 57 16 58 AC_DEFUN([IPP_STDOPTS], -
trunk/psLib/src/astro/psTime.c
r30724 r34089 223 223 static bool timeInit(const char *fileName) 224 224 { 225 psS32 numLines = 0;226 225 bool foundTable = false; 227 226 char *tableDir = NULL; … … 390 389 if (i < numTables) { 391 390 table = psLookupTableAlloc(fullTableName, (const char*)tableFormat, tablesIndex->data.S32[i]); 392 numLines =psLookupTableRead(table);391 psLookupTableRead(table); 393 392 } else { 394 393 psError(PS_ERR_BAD_PARAMETER_VALUE, no_problem, -
trunk/psLib/src/fits/psFitsTable.c
r31152 r34089 511 511 colSpec *spec = psAlloc(sizeof(colSpec)); // Specification for this column 512 512 // BOOL type is not a valid vector type, so we translate it to U8 513 spec->type = colItem->type == PS_ TYPE_BOOL ? PS_TYPE_U8 : colItem->type;513 spec->type = colItem->type == PS_DATA_BOOL ? PS_DATA_U8 : colItem->type; 514 514 spec->size = size; 515 515 if (colItem->type == PS_DATA_VECTOR) { … … 526 526 } 527 527 if (colItem->type != spec->type && 528 colItem->type != PS_ TYPE_BOOL && spec->type != PS_TYPE_U8) {528 colItem->type != PS_DATA_BOOL && spec->type != PS_DATA_U8) { 529 529 psWarning("Differing type found for column %s: %x vs %x --- using the first found.\n", 530 530 colSpecItem->name, colItem->type, spec->type); -
trunk/psLib/src/imageops/psImageGeomManip.c
r31446 r34089 580 580 psS32 outRows; 581 581 psS32 outCols; 582 psS32 elementSize;583 582 psElemType type; 584 583 … … 594 593 outCols = input->numCols; 595 594 type = input->type.type; 596 elementSize = PSELEMTYPE_SIZEOF(type);595 // XXX unused psS32 elementSize = PSELEMTYPE_SIZEOF(type); 597 596 out = psImageRecycle(out, outCols, outRows, type); 598 597 -
trunk/psLib/src/imageops/psImageInterpolate.c
r31446 r34089 461 461 } 462 462 463 #define INTERPOLATE_CHECK() \ 464 if (xMin < 0) { /* XXX warn or error? */ } \ 465 if (yMin < 0) { /* XXX warn or error? */ } \ 466 if (xMax >= image->numCols) { /* XXX warn or error? */ } \ 467 if (yMax >= image->numRows) { /* XXX warn or error? */ } \ 468 463 469 // Determine the result of the interpolation after all the math has been done 464 470 static psImageInterpolateStatus interpolateResult(const psImageInterpolation *interp, … … 523 529 } 524 530 INTERPOLATE_RANGE(); 531 INTERPOLATE_CHECK(); 525 532 526 533 // Get the appropriate kernels … … 779 786 } 780 787 INTERPOLATE_RANGE(); 788 INTERPOLATE_CHECK(); 781 789 782 790 // Get the appropriate kernels … … 989 997 INTERPOLATE_SETUP(x, y); 990 998 xExact = yExact = false; 999 if (xExact && yExact) { /* possible alternative */ } 991 1000 992 1001 psF32 xKernel[size], yKernel[size]; // Interpolation kernels … … 1038 1047 INTERPOLATE_SETUP(x, y); 1039 1048 xExact = yExact = false; 1049 if (xExact && yExact) { /* possible alternative */ } 1040 1050 1041 1051 psF32 xKernel[size], yKernel[size]; // Interpolation kernels -
trunk/psLib/src/imageops/psImageStructManip.c
r21347 r34089 212 212 elementSize = PSELEMTYPE_SIZEOF(inDatatype); 213 213 214 if (0) { fprintf (stderr, "%d elements, %d total memory\n", elements, elements * elementSize); } 215 214 216 output = p_psImageRecycle(file, lineno, func, output, numCols, numRows, type); 215 217 P_PSIMAGE_SET_COL0(output, input->col0); -
trunk/psLib/src/math/psMinimizePowell.c
r28998 r34089 367 367 psF32 c = 0.0; 368 368 psF32 n = 0.0; 369 psF32 fa = 0.0;370 psF32 fb = 0.0;371 psF32 fc = 0.0;372 369 psF32 fn = 0.0; 373 370 psF32 mul = 0.0; … … 415 412 PS_VECTOR_ADD_MULTIPLE(params, paramMask, line, tmpb, b); 416 413 PS_VECTOR_ADD_MULTIPLE(params, paramMask, line, tmpc, c); 417 fa = func(tmpa, coords); 418 fb = func(tmpb, coords); 419 fc = func(tmpc, coords); 414 psF32 fb = func(tmpb, coords); 415 # if (PS_TRACE_ON) 416 psF32 fa = func(tmpa, coords); 417 psF32 fc = func(tmpc, coords); 420 418 psTrace("psLib.math", 6, "LineMin: f(%f %f %f) is (%f %f %f)\n", a, b, c, fa, fb, fc); 419 # endif 421 420 422 421 // We determine which is the biggest segment in [a,b,c] then split -
trunk/psLib/src/mathtypes/psVector.c
r26892 r34089 322 322 PSVECTOR_COPY_SAME_CASE(F32); 323 323 PSVECTOR_COPY_SAME_CASE(F64); 324 default: { 325 char* typeStr; 326 PS_TYPE_NAME(typeStr,type); 327 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 328 // _("Input psVector is an unsupported type (0x%x)."), typeStr); 329 "Input psVector is an unsupported type.\n"); 330 psFree(output); 331 return NULL; 332 } 324 default: { 325 psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Input psVector is an unsupported type.\n"); 326 psFree(output); 327 return NULL; 328 } 333 329 } 334 330 return output; -
trunk/psLib/src/types/psLookupTable.c
r27774 r34089 607 607 psU64 loIdx = 0; 608 608 long numRows = 0; 609 long numCols = 0;610 609 psF64 out = 0.0; 611 610 psF64 denom = 0.0; … … 619 618 values = table->values; 620 619 numRows = table->index->n; 621 numCols = table->values->n;622 620 valuesVec = (psVector*)values->data[column]; 623 621 -
trunk/psLib/src/types/psMetadata.c
r30024 r34089 1504 1504 fprintf(fd, "\n"); 1505 1505 break; 1506 case PS_DATA_UNKNOWN:1507 1506 default: 1508 1507 fprintf(fd, "<Unsupported type>\n"); -
trunk/psLib/src/types/psMetadataConfig.c
r31902 r34089 1573 1573 } 1574 1574 break; 1575 case PS_DATA_UNKNOWN:1576 1575 default: 1577 1576 psError(PS_ERR_BAD_PARAMETER_VALUE, true, -
trunk/psLib/src/types/psMetadataItemCompare.c
r20479 r34089 129 129 case PS_TYPE_##COMPARETYPENAME: { \ 130 130 TEMPLATETYPE valueC = (TEMPLATETYPE)compare->data.COMPARENAME; \ 131 TEMPLATETYPE valueT = (TEMPLATETYPE)template->data.TEMPLATENAME; \ 132 /* XXX check the validiy of the type casting? */ \ 133 if (valueC != compare->data.COMPARENAME) { \ 134 return false; \ 135 } \ 136 COMPARE_VALUES(valueT, valueC, (template->type == PS_TYPE_F32 || template->type == PS_TYPE_F64)); \ 131 TEMPLATETYPE valueT = (TEMPLATETYPE)template->data.TEMPLATENAME; \ 132 /* XXX check the validiy of the type casting? */ \ 133 if (valueC != compare->data.COMPARENAME) { \ 134 return false; \ 135 } \ 136 COMPARE_VALUES(valueT, valueC, (template->type == PS_DATA_F32 || template->type == PS_DATA_F64)); \ 137 /* COMPARE_VALUES(valueT, valueC, 1); */ \ 137 138 psAbort("Should never reach here."); \ 138 139 } … … 277 278 return false; 278 279 } 279 double compareValue = compare->type == PS_ TYPE_F32 ? compare->data.F32 : compare->data.F64;280 double compareValue = compare->type == PS_DATA_F32 ? compare->data.F32 : compare->data.F64; 280 281 COMPARE_VALUES(templateValue, compareValue, true); 281 282 } -
trunk/psLib/test/tap/src/tap.c
r8958 r34089 87 87 if(test_name != NULL) { 88 88 va_start(ap, test_name); 89 vasprintf(&local_test_name, test_name, ap); 89 int status = vasprintf(&local_test_name, test_name, ap); 90 if (status) {/* warning? */} 90 91 va_end(ap); 91 92 … … 303 304 304 305 va_start(ap, fmt); 305 asprintf(&skip_msg, fmt, ap); 306 int status = asprintf(&skip_msg, fmt, ap); 307 if (status) {/* warning? */} 306 308 va_end(ap); 307 309 … … 328 330 329 331 va_start(ap, fmt); 330 vasprintf(&todo_msg, fmt, ap); 332 int status = vasprintf(&todo_msg, fmt, ap); 333 if (status) {/* warning? */} 331 334 va_end(ap); 332 335 -
trunk/psastro/configure.ac
r23804 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 189 189 dnl Set CFLAGS for build 190 190 IPP_STDOPTS 191 CFLAGS="${CFLAGS=} -Wall -Werror" 191 IPP_STDCFLAGS 192 192 193 echo "PSASTRO_CFLAGS: $PSASTRO_CFLAGS" 193 194 echo "PSASTRO_LIBS: $PSASTRO_LIBS" -
trunk/pstamp/configure.ac
r28486 r34089 10 10 AM_MAINTAINER_MODE 11 11 12 IPP_STD CFLAGS12 IPP_STDLDFLAGS 13 13 14 14 AC_LANG(C) … … 30 30 PKG_CHECK_MODULES([PSMODULE], [psmodules >= 1.0.0]) 31 31 32 OHANA_CONFIG=`which ohana-config` 33 34 dnl get CFLAGS for ohana 35 AC_MSG_NOTICE([libohana cflags info supplied by ohana-config]) 36 AC_MSG_CHECKING([libohana cflags]) 37 OHANA_CFLAGS="`${OHANA_CONFIG} --cflags`" 38 AC_MSG_RESULT([${OHANA_CFLAGS}]) 39 40 dnl get LDFLAGS for ohana 41 AC_MSG_NOTICE([libohana ldflags info supplied by ohana-config]) 42 AC_MSG_CHECKING([libohana ldflags]) 43 OHANA_LIBS="`${OHANA_CONFIG} --libs`" 44 AC_MSG_RESULT([${OHANA_LIBS}]) 45 32 46 dnl Set CFLAGS for build 33 47 IPP_STDOPTS 34 CFLAGS="${CFLAGS} -Wall -Werror" 35 PPSTAMP_CFLAGS="${PSLIB_CFLAGS=} ${PSMODULES_CFLAGS=}" 36 PPSTAMP_LIBS="${PSLIB_LIBS=} ${PSMODULES_LIBS=}" 48 IPP_STDCFLAGS 49 50 PPSTAMP_CFLAGS="${PSLIB_CFLAGS=} ${PSMODULE_CFLAGS=} ${OHANA_CFLAGS}" 51 PPSTAMP_LIBS="${PSLIB_LIBS=} ${PSMODULE_LIBS=} ${OHANA_LIBS}" 37 52 echo "PPSTAMP_CFLAGS: $PPSTAMP_CFLAGS" 38 53 echo "PPSTAMP_LIBS: $PPSTAMP_LIBS" -
trunk/pstamp/scripts
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120601/pstamp/scripts (added) merged: 34049,34073
- Property svn:mergeinfo changed
-
trunk/pstamp/src/Makefile.am
r25709 r34089 9 9 pstampErrorCodes.h 10 10 11 ppstamp_CPPFLAGS = $(P SLIB_CFLAGS) $(PSMODULE_CFLAGS)12 pstamprequest_CPPFLAGS = $(P SLIB_CFLAGS) $(PSMODULE_CFLAGS)13 pstampdump_CPPFLAGS = $(P SLIB_CFLAGS) $(PSMODULE_CFLAGS)11 ppstamp_CPPFLAGS = $(PPSTAMP_CFLAGS) 12 pstamprequest_CPPFLAGS = $(PPSTAMP_CFLAGS) 13 pstampdump_CPPFLAGS = $(PPSTAMP_CFLAGS) 14 14 15 ppstamp_LDFLAGS = $(P SLIB_LIBS) $(PSMODULE_LIBS)16 pstamprequest_LDFLAGS = $(P SLIB_LIBS) $(PSMODULE_LIBS)17 pstampdump_LDFLAGS = $(P SLIB_LIBS) $(PSMODULE_LIBS)15 ppstamp_LDFLAGS = $(PPSTAMP_LIBS) 16 pstamprequest_LDFLAGS = $(PPSTAMP_LIBS) 17 pstampdump_LDFLAGS = $(PPSTAMP_LIBS) 18 18 19 19 ppstamp_SOURCES = \ -
trunk/pstamp/src/pstamprequest.c
r26289 r34089 191 191 bool gotRange = false; 192 192 bool needROI = false; 193 bool makeStamps= false;193 // bool makeStamps= false; XXX unused 194 194 unsigned optionMask = PSTAMP_SELECT_IMAGE; 195 195 … … 212 212 psMetadataAddStr (md, PS_LIST_TAIL, "JOB_TYPE", PS_META_REPLACE, "", "stamp"); 213 213 needROI = true; 214 makeStamps = true;214 // XXX unused makeStamps = true; 215 215 } 216 216 -
trunk/psvideophot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120601/psvideophot (added) merged: 34002,34049,34073,34076
- Property svn:mergeinfo changed
-
trunk/psvideophot/configure.ac
r31290 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 24 24 25 25 IPP_STDOPTS 26 CFLAGS="${CFLAGS=} -Wall -Werror" 26 IPP_STDCFLAGS 27 27 28 28 IPP_VERSION -
trunk/pswarp/configure.ac
r23806 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 33 33 dnl Set CFLAGS for build 34 34 IPP_STDOPTS 35 CFLAGS="${CFLAGS} -Wall -Werror" 35 IPP_STDCFLAGS 36 36 37 echo "PSWARP_CFLAGS: $PSWARP_CFLAGS" 37 38 echo "PSWARP_LIBS: $PSWARP_LIBS" -
trunk/pswarp/src/pswarpArguments.c
r31159 r34089 28 28 pmConfig *pswarpArguments (int argc, char **argv) { 29 29 30 bool status;31 30 int N; 32 31 … … 101 100 array = psArrayAlloc(1); 102 101 array->data[0] = psStringCopy(argv[2]); 103 status =psMetadataAddPtr(config->arguments, PS_LIST_TAIL, "SKYCELL", PS_DATA_ARRAY, "", array);102 psMetadataAddPtr(config->arguments, PS_LIST_TAIL, "SKYCELL", PS_DATA_ARRAY, "", array); 104 103 psFree(array); 105 104 -
trunk/pswarp/src/pswarpExit.c
r27563 r34089 20 20 } 21 21 22 psErrorCode errorCode = psErrorCodeLast(); // Error code 22 // gcc -Wswitch complains here if err is declared as type psErrorCode 23 // the collection of ps*ErrorCode values are enums defined separately for 24 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 25 // not include the possible psphot values 26 27 // for now, to get around this, we just use an int for the switch 28 29 // psErrorCode errorCode = psErrorCodeLast(); // Error code 30 int errorCode = psErrorCodeLast(); // Error code 31 23 32 if (errorCode != PS_ERR_NONE) { 24 33 pmFPAfileFreeSetStrict(false); -
trunk/pswarp/src/pswarpTransformReadout.c
r33090 r34089 51 51 } 52 52 53 int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); // Number of threads54 if (!mdok) {55 nThreads = 0;56 }53 // XXX unused int nThreads = psMetadataLookupS32(&mdok, config->arguments, "NTHREADS"); // Number of threads 54 // XXX unused if (!mdok) { 55 // XXX unused nThreads = 0; 56 // XXX unused } 57 57 float poorFrac = psMetadataLookupF32(NULL, config->arguments, "POOR.FRAC"); ///< Flux fraction for "poor" 58 58
Note:
See TracChangeset
for help on using the changeset viewer.
