MagickWand  7.0.7
Convert, Edit, Or Compose Bitmap Images
mogrify-private.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _ImageStack
 

Macros

#define AppendImageStack(images)
 
#define DestroyImageStack()
 
#define FinalizeImageSettings(image_info, image, advance)
 
#define FireImageStack(postfix, advance, fire)
 
#define MaxImageStackDepth   128
 
#define NewImageStack()
 
#define PushImageStack()
 
#define PopImageStack()
 
#define QuantumTick(i, span)
 
#define RemoveImageStack(images)
 
#define RemoveAllImageStack()
 
#define SetImageStack(image)
 

Typedefs

typedef struct _ImageStack ImageStack
 

Macro Definition Documentation

◆ AppendImageStack

#define AppendImageStack (   images)
Value:
{ \
(void) SyncImagesSettings(image_info,images,exception); \
AppendImageToList(&image_stack[k].image,images); \
image=image_stack[k].image; \
}

Definition at line 25 of file mogrify-private.h.

Referenced by AnimateImageCommand(), CompareImagesCommand(), CompositeImageCommand(), ConvertImageCommand(), DisplayImageCommand(), IdentifyImageCommand(), ImportImageCommand(), MogrifyImageCommand(), MontageImageCommand(), and StreamImageCommand().

◆ DestroyImageStack

#define DestroyImageStack ( )
Value:
{ \
while (k > 0) \
PopImageStack(); \
image_stack[k].image=DestroyImageList(image_stack[k].image); \
image_stack[k].image_info=DestroyImageInfo(image_stack[k].image_info); \
image_info=image_stack[MaxImageStackDepth].image_info; \
}
#define MaxImageStackDepth

Definition at line 31 of file mogrify-private.h.

◆ FinalizeImageSettings

#define FinalizeImageSettings (   image_info,
  image,
  advance 
)
Value:
{ \
FireImageStack(MagickTrue,advance,MagickTrue); \
if (image != (Image *) NULL) \
(void) SyncImagesSettings(image_info,image,exception); \
}

Definition at line 39 of file mogrify-private.h.

Referenced by AnimateImageCommand(), CompareImagesCommand(), CompositeImageCommand(), ConvertImageCommand(), DisplayImageCommand(), IdentifyImageCommand(), ImportImageCommand(), MogrifyImageCommand(), MontageImageCommand(), and StreamImageCommand().

◆ FireImageStack

#define FireImageStack (   postfix,
  advance,
  fire 
)
Value:
if ((j <= i) && (i < (ssize_t) argc)) \
{ \
DisableMSCWarning(4127) \
if (image_stack[k].image == (Image *) NULL) \
status&=MogrifyImageInfo(image_stack[k].image_info,(int) (i-j+1), \
(const char **) (argv+j),exception); \
else \
if ((fire) != MagickFalse) \
{ \
status&=MogrifyImages(image_stack[k].image_info,postfix,(int) \
(i-j+1),(const char **) (argv+j),&image_stack[k].image, \
exception); \
image=image_stack[k].image; \
if ((advance) != MagickFalse) \
j=i+1; \
pend=MagickFalse; \
} \
RestoreMSCWarning \
}
WandExport MagickBooleanType MogrifyImages(ImageInfo *image_info, const MagickBooleanType post, const int argc, const char **argv, Image **images, ExceptionInfo *exception)
Definition: mogrify.c:8881
WandExport MagickBooleanType MogrifyImageInfo(ImageInfo *image_info, const int argc, const char **argv, ExceptionInfo *exception)
Definition: mogrify.c:6574

Definition at line 45 of file mogrify-private.h.

Referenced by AnimateImageCommand(), CompareImagesCommand(), CompositeImageCommand(), ConvertImageCommand(), DisplayImageCommand(), IdentifyImageCommand(), ImportImageCommand(), MogrifyImageCommand(), MontageImageCommand(), and StreamImageCommand().

◆ MaxImageStackDepth

◆ NewImageStack

#define NewImageStack ( )
Value:
{ \
image_stack[MaxImageStackDepth].image_info=image_info; \
image_stack[0].image_info=CloneImageInfo(image_info); \
image_stack[0].image=NewImageList(); \
image_info=image_stack[0].image_info; \
image=image_stack[0].image; \
}
#define MaxImageStackDepth

Definition at line 66 of file mogrify-private.h.

Referenced by AnimateImageCommand(), CompareImagesCommand(), CompositeImageCommand(), ConvertImageCommand(), DisplayImageCommand(), IdentifyImageCommand(), ImportImageCommand(), MogrifyImageCommand(), MontageImageCommand(), and StreamImageCommand().

◆ PopImageStack

#define PopImageStack ( )
Value:
{ \
if (respect_parenthesis == MagickFalse) \
{ \
image_stack[k-1].image_info=DestroyImageInfo(image_stack[k-1].image_info); \
image_stack[k-1].image_info=CloneImageInfo(image_stack[k].image_info); \
} \
image_stack[k].image_info=DestroyImageInfo(image_stack[k].image_info); \
AppendImageToList(&image_stack[k-1].image,image_stack[k].image); \
k--; \
image_info=image_stack[k].image_info; \
image=image_stack[k].image; \
}

Definition at line 82 of file mogrify-private.h.

Referenced by AnimateImageCommand(), CompareImagesCommand(), CompositeImageCommand(), ConvertImageCommand(), DisplayImageCommand(), IdentifyImageCommand(), ImportImageCommand(), MogrifyImageCommand(), MontageImageCommand(), and StreamImageCommand().

◆ PushImageStack

#define PushImageStack ( )
Value:
{ \
k++; \
image_stack[k].image_info=CloneImageInfo(image_stack[k-1].image_info); \
image_stack[k].image=NewImageList(); \
image_info=image_stack[k].image_info; \
image=image_stack[k].image; \
}

Definition at line 74 of file mogrify-private.h.

Referenced by AnimateImageCommand(), CompareImagesCommand(), CompositeImageCommand(), ConvertImageCommand(), DisplayImageCommand(), IdentifyImageCommand(), ImportImageCommand(), MogrifyImageCommand(), MontageImageCommand(), and StreamImageCommand().

◆ QuantumTick

#define QuantumTick (   i,
  span 
)
Value:
((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
(((i) & 0xfff) == 0) || \
((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))

Definition at line 95 of file mogrify-private.h.

◆ RemoveAllImageStack

#define RemoveAllImageStack ( )
Value:
{ \
if (image_stack[k].image != (Image *) NULL) \
image_stack[k].image=DestroyImageList(image_stack[k].image); \
}

Definition at line 103 of file mogrify-private.h.

Referenced by DisplayImageCommand(), IdentifyImageCommand(), and MogrifyImageCommand().

◆ RemoveImageStack

#define RemoveImageStack (   images)
Value:
{ \
images=RemoveFirstImageFromList(&image_stack[k].image); \
image=image_stack[k].image; \
}

Definition at line 98 of file mogrify-private.h.

Referenced by CompositeImageCommand().

◆ SetImageStack

#define SetImageStack (   image)
Value:
{ \
image_stack[k].image=(image); \
}

Definition at line 108 of file mogrify-private.h.

Typedef Documentation

◆ ImageStack

typedef struct _ImageStack ImageStack