Changeset 34045
- Timestamp:
- Jun 20, 2012, 7:07:44 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120601/psLib/src
- Files:
-
- 6 edited
-
astro/psTime.c (modified) (2 diffs)
-
fits/psFitsTable.c (modified) (2 diffs)
-
imageops/psImageGeomManip.c (modified) (2 diffs)
-
imageops/psImageInterpolate.c (modified) (3 diffs)
-
mathtypes/psVector.c (modified) (1 diff)
-
types/psLookupTable.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/psLib/src/astro/psTime.c
r30724 r34045 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 // XXX unused numLines = psLookupTableRead(table); 393 392 } else { 394 393 psError(PS_ERR_BAD_PARAMETER_VALUE, no_problem, -
branches/eam_branches/ipp-20120601/psLib/src/fits/psFitsTable.c
r31152 r34045 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); -
branches/eam_branches/ipp-20120601/psLib/src/imageops/psImageGeomManip.c
r31446 r34045 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 -
branches/eam_branches/ipp-20120601/psLib/src/imageops/psImageInterpolate.c
r31446 r34045 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 -
branches/eam_branches/ipp-20120601/psLib/src/mathtypes/psVector.c
r26892 r34045 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; -
branches/eam_branches/ipp-20120601/psLib/src/types/psLookupTable.c
r27774 r34045 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
Note:
See TracChangeset
for help on using the changeset viewer.
