Changeset 8232 for trunk/psLib/src/imageops/psImageGeomManip.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
imageops/psImageGeomManip.c (modified) (30 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/imageops/psImageGeomManip.c
r7999 r8232 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 7-28 00:44:05$12 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-08-08 23:32:23 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 30 30 #include "psMemory.h" 31 31 #include "psAssert.h" 32 #include "psErrorText.h" 32 33 33 #include "psCoord.h" 34 34 … … 51 51 if (in == NULL) { 52 52 psError(PS_ERR_BAD_PARAMETER_NULL, true, 53 PS_ERRORTEXT_psImage_IMAGE_NULL);53 _("Can not operate on a NULL psImage.")); 54 54 psFree(out); 55 55 return NULL; … … 58 58 if (scale < 1) { 59 59 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 60 PS_ERRORTEXT_psImageManip_SCALE_NOT_POSITIVE,60 _("Specified scale value, %d, must be a positive value."), 61 61 scale); 62 62 psFree(out); … … 66 66 if (stats == NULL) { 67 67 psError(PS_ERR_BAD_PARAMETER_NULL, true, 68 PS_ERRORTEXT_psImage_STAT_NULL);68 _("Specified statistic can not be NULL.")); 69 69 psFree(out); 70 70 return NULL; … … 74 74 if (statistic == 0) { 75 75 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 76 PS_ERRORTEXT_psImage_BAD_STAT,76 _("Specified statistic option, %d, is not valid. Must specify one and only one statistic type."), 77 77 stats->options); 78 78 psFree(out); … … 87 87 PS_TYPE_NAME(typeStr,mask->type.type); 88 88 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 89 PS_ERRORTEXT_psImage_IMAGE_MASK_TYPE,89 _("Input psImage mask type, %s, is not the supported mask datatype of %s."), 90 90 typeStr, PS_TYPE_MASK_NAME); 91 91 psFree(out); … … 159 159 PS_TYPE_NAME(typeStr,in->type.type); 160 160 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 161 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,161 _("Specified psImage type, %s, is not supported."), 162 162 typeStr); 163 163 psFree(out); … … 184 184 if (in == NULL) { 185 185 psError(PS_ERR_BAD_PARAMETER_NULL, true, 186 PS_ERRORTEXT_psImage_IMAGE_NULL);186 _("Can not operate on a NULL psImage.")); 187 187 psFree(out); 188 188 return NULL; … … 191 191 if (scale < 1) { 192 192 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 193 PS_ERRORTEXT_psImageManip_SCALE_NOT_POSITIVE,193 _("Specified scale value, %d, must be a positive value."), 194 194 scale); 195 195 psFree(out); … … 199 199 if (mode > PS_INTERPOLATE_LANCZOS4_VARIANCE ) { 200 200 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 201 PS_ERRORTEXT_psImageManip_INTERPOLATION_MODE_UNSUPPORTED,201 _("Specified interpolation mode, %d, is unsupported."), 202 202 mode); 203 203 psFree(out); … … 241 241 PS_TYPE_NAME(typeStr,in->type.type); 242 242 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 243 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,243 _("Specified psImage type, %s, is not supported."), 244 244 typeStr); 245 245 psFree(out); … … 262 262 if (input == NULL) { 263 263 psError(PS_ERR_BAD_PARAMETER_NULL, true, 264 PS_ERRORTEXT_psImage_IMAGE_NULL);264 _("Can not operate on a NULL psImage.")); 265 265 psFree(out); 266 266 return NULL; … … 311 311 if (input == NULL) { 312 312 psError(PS_ERR_BAD_PARAMETER_NULL, true, 313 PS_ERRORTEXT_psImage_IMAGE_NULL);313 _("Can not operate on a NULL psImage.")); 314 314 psFree(out); 315 315 return NULL; … … 357 357 PS_TYPE_NAME(typeStr,type); 358 358 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 359 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,359 _("Specified psImage type, %s, is not supported."), 360 360 typeStr); 361 361 psFree(out); … … 403 403 PS_TYPE_NAME(typeStr,type); 404 404 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 405 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,405 _("Specified psImage type, %s, is not supported."), 406 406 typeStr); 407 407 psFree(out); … … 448 448 PS_TYPE_NAME(typeStr,type); 449 449 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 450 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,450 _("Specified psImage type, %s, is not supported."), 451 451 typeStr); 452 452 psFree(out); … … 503 503 cimag(exposed) > PS_MAX_##TYPE) { \ 504 504 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 505 PS_ERRORTEXT_psImageManip_CLIP_VALUE_INVALID, \505 _("Specified %s value, %g%+gi, is not the the range of input psImage's valid pixel values (%s), i.e. [%g:%g]."), \ 506 506 "exposed", \ 507 507 creal(exposed),cimag(exposed), \ … … 570 570 PS_TYPE_NAME(typeStr,type); \ 571 571 psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ 572 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED, \572 _("Specified psImage type, %s, is not supported."), \ 573 573 typeStr); \ 574 574 psFree(out); \ … … 584 584 default: 585 585 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 586 PS_ERRORTEXT_psImageManip_INTERPOLATION_MODE_UNSUPPORTED,586 _("Specified interpolation mode, %d, is unsupported."), 587 587 mode); 588 588 psFree(out); … … 608 608 if (input == NULL) { 609 609 psError(PS_ERR_BAD_PARAMETER_NULL, true, 610 PS_ERRORTEXT_psImage_IMAGE_NULL);610 _("Can not operate on a NULL psImage.")); 611 611 psFree(out); 612 612 return NULL; … … 627 627 cimag(exposed) > PS_MAX_##TYPE) { \ 628 628 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 629 PS_ERRORTEXT_psImageManip_CLIP_VALUE_INVALID, \629 _("Specified %s value, %g%+gi, is not the the range of input psImage's valid pixel values (%s), i.e. [%g:%g]."), \ 630 630 "exposed", \ 631 631 creal(exposed),cimag(exposed), \ … … 666 666 PS_TYPE_NAME(typeStr,type); \ 667 667 psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ 668 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED, \668 _("Specified psImage type, %s, is not supported."), \ 669 669 typeStr); \ 670 670 psFree(out); \ … … 680 680 default: 681 681 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 682 PS_ERRORTEXT_psImageManip_INTERPOLATION_MODE_UNSUPPORTED,682 _("Specified interpolation mode, %d, is unsupported."), 683 683 mode); 684 684 psFree(out); … … 702 702 if (input == NULL) { 703 703 psError(PS_ERR_BAD_PARAMETER_NULL, true, 704 PS_ERRORTEXT_psImage_IMAGE_NULL);704 _("Can not operate on a NULL psImage.")); 705 705 psFree(output); 706 706 return NULL; … … 715 715 if (input->numRows != inputMask->numRows || input->numCols != inputMask->numCols) { 716 716 psError(PS_ERR_BAD_PARAMETER_SIZE, true, 717 PS_ERRORTEXT_psImage_IMAGE_MASK_SIZE,717 _("Input psImage mask size, %dx%d, does not match psImage input size, %dx%d."), 718 718 input->numCols, input->numRows, 719 719 inputMask->numCols, inputMask->numRows ); … … 725 725 PS_TYPE_NAME(typeStr,inputMask->type.type); 726 726 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 727 PS_ERRORTEXT_psImage_IMAGE_MASK_TYPE,727 _("Input psImage mask type, %s, is not the supported mask datatype of %s."), 728 728 typeStr, PS_TYPE_MASK_NAME); 729 729 psFree(output); … … 734 734 if (outToIn == NULL) { 735 735 psError(PS_ERR_BAD_PARAMETER_NULL, true, 736 PS_ERRORTEXT_psImageManip_TRANSFORM_NULL);736 _("Specified input transform can not be NULL.")); 737 737 return NULL; 738 738 } … … 853 853 PS_TYPE_NAME(typeStr,type); \ 854 854 psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ 855 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED, \855 _("Specified psImage type, %s, is not supported."), \ 856 856 typeStr); \ 857 857 psFree(output); \ … … 867 867 default: 868 868 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 869 PS_ERRORTEXT_psImageManip_INTERPOLATION_MODE_UNSUPPORTED,869 _("Specified interpolation mode, %d, is unsupported."), 870 870 mode); 871 871 psFree(output);
Note:
See TracChangeset
for help on using the changeset viewer.
