MagickWand  6.7.5
convert.c File Reference
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
#include "MagickCore/string-private.h"
#include "MagickCore/utility-private.h"
Include dependency graph for convert.c:

Go to the source code of this file.

Defines

#define ThrowFileException(exception, severity, tag, context)
#define NotInitialized   (unsigned int) (~0)
#define DestroyConvert()
#define ThrowConvertException(asperity, tag, option)
#define ThrowConvertInvalidArgumentException(option, argument)

Functions

static MagickBooleanType ConcatenateImages (int argc, char **argv, ExceptionInfo *exception)
static MagickBooleanType ConvertUsage (void)
WandExport MagickBooleanType ConvertImageCommand (ImageInfo *image_info, int argc, char **argv, char **metadata, ExceptionInfo *exception)

Define Documentation

#define DestroyConvert ( )
Value:
{ \
  DestroyImageStack(); \
  for (i=0; i < (ssize_t) argc; i++) \
    argv[i]=DestroyString(argv[i]); \
  argv=(char **) RelinquishMagickMemory(argv); \
}

Referenced by ConvertImageCommand().

#define NotInitialized   (unsigned int) (~0)
#define ThrowConvertException (   asperity,
  tag,
  option 
)
Value:
{ \
  (void) ThrowMagickException(exception,GetMagickModule(),asperity,tag,"`%s'", \
    option); \
  DestroyConvert(); \
  return(MagickFalse); \
}

Referenced by ConvertImageCommand().

#define ThrowConvertInvalidArgumentException (   option,
  argument 
)
Value:
{ \
  (void) ThrowMagickException(exception,GetMagickModule(),OptionError, \
    "InvalidArgument","`%s': %s",option,argument); \
  DestroyConvert(); \
  return(MagickFalse); \
}

Referenced by ConvertImageCommand().

#define ThrowFileException (   exception,
  severity,
  tag,
  context 
)
Value:
{ \
  char \
    *message; \
 \
  message=GetExceptionMessage(errno); \
  (void) ThrowMagickException(exception,GetMagickModule(),severity, \
    tag == (const char *) NULL ? "unknown" : tag,"`%s': %s",context,message); \
  message=DestroyString(message); \
}

Definition at line 53 of file convert.c.

Referenced by ConcatenateImages().


Function Documentation

static MagickBooleanType ConcatenateImages ( int  argc,
char **  argv,
ExceptionInfo *  exception 
) [static]

Definition at line 98 of file convert.c.

References ThrowFileException.

Referenced by ConvertImageCommand().

WandExport MagickBooleanType ConvertImageCommand ( ImageInfo *  image_info,
int  argc,
char **  argv,
char **  metadata,
ExceptionInfo *  exception 
)
static MagickBooleanType ConvertUsage ( void  ) [static]

Definition at line 135 of file convert.c.

Referenced by ConvertImageCommand().