Changeset 8232 for trunk/psLib/src/imageops/psImageStructManip.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
imageops/psImageStructManip.c (modified) (12 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/psImageStructManip.c
r7524 r8232 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 6-12 20:44:04$10 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-08-08 23:32:23 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #include "psError.h" 22 22 23 #include "psErrorText.h" 23 24 24 25 25 static psImage* imageSubset(psImage* out, … … 35 35 if (image == NULL || image->data.V == NULL) { 36 36 psError(PS_ERR_BAD_PARAMETER_NULL, true, 37 PS_ERRORTEXT_psImage_IMAGE_NULL);37 _("Can not operate on a NULL psImage.")); 38 38 return NULL; 39 39 } … … 41 41 if ( col0 < image->col0 || row0 < image->row0 ) { 42 42 // psError(PS_ERR_BAD_PARAMETER_VALUE, true, 43 // PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID);43 // _("Specified subset range, [%d:%d,%d:%d], is invalid or outside input psImage's boundaries, [0:%d,0:%d].")); 44 44 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 45 PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID,45 _("Specified subset range, [%d:%d,%d:%d], is invalid or outside input psImage's boundaries, [0:%d,0:%d]."), 46 46 col0, col1-1, row0, row1-1, 47 47 image->numCols-1, image->numRows-1); … … 51 51 if (image->type.dimen != PS_DIMEN_IMAGE) { 52 52 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 53 PS_ERRORTEXT_psImage_NOT_AN_IMAGE);53 _("The input psImage must have a PS_DIMEN_IMAGE dimension type.")); 54 54 return NULL; 55 55 } … … 69 69 row1 > image->row0 + image->numRows ) { 70 70 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 71 PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID,71 _("Specified subset range, [%d:%d,%d:%d], is invalid or outside input psImage's boundaries, [0:%d,0:%d]."), 72 72 col0, col1-1, row0, row1-1, 73 73 image->numCols-1, image->numRows-1); … … 153 153 if (input == NULL || input->data.V == NULL) { 154 154 psError(PS_ERR_BAD_PARAMETER_NULL, true, 155 PS_ERRORTEXT_psImage_IMAGE_NULL);155 _("Can not operate on a NULL psImage.")); 156 156 psFree(output); 157 157 return NULL; … … 160 160 if (input == output) { 161 161 psError(PS_ERR_BAD_PARAMETER_NULL, true, 162 PS_ERRORTEXT_psImage_INPLACE_NOTSUPPORTED);162 _("Specified input and output psImage can not reference the same psImage.")); 163 163 psFree(output); 164 164 return NULL; … … 167 167 if (input->type.dimen != PS_DIMEN_IMAGE) { 168 168 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 169 PS_ERRORTEXT_psImage_NOT_AN_IMAGE);169 _("The input psImage must have a PS_DIMEN_IMAGE dimension type.")); 170 170 psFree(output); 171 171 return NULL; … … 287 287 PS_TYPE_NAME(typeStr,type); 288 288 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 289 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,289 _("Specified psImage type, %s, is not supported."), 290 290 typeStr); 291 291 psFree(output); … … 302 302 if (image == NULL || image->data.V == NULL) { 303 303 psError(PS_ERR_BAD_PARAMETER_NULL, true, 304 PS_ERRORTEXT_psImage_IMAGE_NULL);304 _("Can not operate on a NULL psImage.")); 305 305 return NULL; 306 306 } … … 335 335 row0 >= row1 ) { 336 336 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 337 PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID,337 _("Specified subset range, [%d:%d,%d:%d], is invalid or outside input psImage's boundaries, [0:%d,0:%d]."), 338 338 col0, col1-1, row0, row1-1, 339 339 image->numCols-1, image->numRows-1);
Note:
See TracChangeset
for help on using the changeset viewer.
