"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mogrify_int.c" between
sip-0.5.6.tar.gz and sip-0.12.1.tar.gz

About: SIP (Scilab Image Processing) toolbox to do imaging tasks such as filtering, blurring, edge detection, thresholding, histogram manipulation, segmentation, mathematical morphology, color image processing, etc.

mogrify_int.c  (sip-0.5.6):mogrify_int.c  (sip-0.12.1)
skipping to change at line 44 skipping to change at line 44
* *
* Interface between imagemagick's MogrifyImage and scilab. * Interface between imagemagick's MogrifyImage and scilab.
* TODO * TODO
* - procedurize 2nd part (return Imagemagick -> Scilab) * - procedurize 2nd part (return Imagemagick -> Scilab)
* - upon return of an indexed image, will the user know how * - upon return of an indexed image, will the user know how
* many output variables there are? ImageMagick always returns * many output variables there are? ImageMagick always returns
* DirectClass after its operations?? * DirectClass after its operations??
* *
* $Revision: 1.4 $ $Date: 2009-03-29 21:34:48 $ * $Revision: 1.4 $ $Date: 2009-03-29 21:34:48 $
*-----------------------------------------------------------------*/ *-----------------------------------------------------------------*/
SipExport int SipExport int
mogrify_int(char *fname) mogrify_int(char *fname)
{ {
int mogrify_check_args(char *fname), int mogrify_check_args(char *fname),
rim, cim, pim, rim, cim, pim,
rimout, cimout, rimout, cimout,
rargv, cargv, rargv, cargv,
nv, argc, argtype, nv, argc, argtype,
minlhs=1, maxlhs=2, minrhs=1, maxrhs=3; minlhs=1, maxlhs=2, minrhs=1, maxrhs=3;
char **argv; char **argv;
skipping to change at line 119 skipping to change at line 118
fprintf(stderr,"%s: ",fname); fprintf(stderr,"%s: ",fname);
Scierror(999,""); Scierror(999,"");
sciprint("%s: ",fname); sciprint("%s: ",fname);
GetImageException(image,&exception); GetImageException(image,&exception);
if( (exception.reason != NULL) ) { if( (exception.reason != NULL) ) {
if (strcmp(exception.reason,"UnrecognizedOption") == 0) { if (strcmp(exception.reason,"UnrecognizedOption") == 0) {
sciprint("argv parameter %d unrecognized",argc); sciprint("argv parameter %d unrecognized",argc);
fprintf(stderr,"argv parameter %d unrecognized",argc); fprintf(stderr,"argv parameter %d unrecognized",argc);
} else { } else {
fprintf(stderr,"%s (near argv parameter %d)", fprintf(stderr,"%s (near argv parameter %d)",
GetLocaleExceptionMessage(exception.severity,exception.reason),ar gc); SipGetLocaleExceptionMessage(exception.severity,exception.reason) ,argc);
sciprint("%s (near argv parameter %d)", sciprint("%s (near argv parameter %d)",
GetLocaleExceptionMessage(exception.severity,exception.reason),ar gc); SipGetLocaleExceptionMessage(exception.severity,exception.reason) ,argc);
} }
if (exception.description != NULL) if (exception.description != NULL)
fprintf(stderr,": %s", fprintf(stderr,": %s",
GetLocaleExceptionMessage(exception.severity,exception.descriptio n)); SipGetLocaleExceptionMessage(exception.severity,exception.descrip tion));
sciprint(": %s", sciprint(": %s",
GetLocaleExceptionMessage(exception.severity,exception.descriptio n)); SipGetLocaleExceptionMessage(exception.severity,exception.descrip tion));
fprintf(stderr,".\n"); fprintf(stderr,".\n");
sciprint(".\n\r"); sciprint(".\n\r");
} else { } else {
fprintf(stderr,"unknown reason (near argv parameter %d).\n",argc); fprintf(stderr,"unknown reason (near argv parameter %d).\n",argc);
sciprint("unknown reason (near argv parameter %d).\n\r",argc); sciprint("unknown reason (near argv parameter %d).\n\r",argc);
} }
/* clean up */ /* clean up */
DestroyImageInfo(image_info); DestroyImageInfo(image_info);
DestroyImage(image); DestroyImage(image);
 End of changes. 5 change blocks. 
5 lines changed or deleted 4 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS