MagickWand 7.1.0
Convert, Edit, Or Compose Bitmap Images
stream.c File Reference
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
#include "MagickCore/stream-private.h"
#include "MagickCore/string-private.h"
Include dependency graph for stream.c:

Go to the source code of this file.

Macros

#define DestroyStream()
 
#define ThrowStreamException(asperity, tag, option)
 
#define ThrowStreamInvalidArgumentException(option, argument)
 

Functions

static MagickBooleanType StreamUsage (void)
 
WandExport MagickBooleanType StreamImageCommand (ImageInfo *image_info, int argc, char **argv, char **metadata, ExceptionInfo *exception)
 

Macro Definition Documentation

◆ DestroyStream

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

◆ ThrowStreamException

#define ThrowStreamException (   asperity,
  tag,
  option 
)
Value:
{ \
(void) ThrowMagickException(exception,GetMagickModule(),asperity,tag,"`%s'", \
option); \
DestroyStream(); \
return(MagickFalse); \
}

◆ ThrowStreamInvalidArgumentException

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

Function Documentation

◆ StreamImageCommand()

WandExport MagickBooleanType StreamImageCommand ( ImageInfo *  image_info,
int  argc,
char **  argv,
char **  metadata,
ExceptionInfo *  exception 
)

◆ StreamUsage()

static MagickBooleanType StreamUsage ( void  )
static

Definition at line 87 of file stream.c.

Referenced by StreamImageCommand().