MagickWand  6.9.10
Convert, Edit, Or Compose Bitmap Images
magick-wand-private.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  ImageMagick pixel wand API.
17 */
18 #ifndef MAGICKWAND_MAGICK_WAND_PRIVATE_H
19 #define MAGICKWAND_MAGICK_WAND_PRIVATE_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 #define MagickPI 3.14159265358979323846264338327950288419716939937510
26 #define MagickWandId "MagickWand"
27 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
28  (((i) & 0xfff) == 0) || \
29  ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
30 #define ThrowWandException(severity,tag,context) \
31 { \
32  (void) ThrowMagickException(wand->exception,GetMagickModule(),severity, \
33  tag,"`%s'",context); \
34  return(MagickFalse); \
35 }
36 #define ThrowWandFatalException(severity,tag,context) \
37 { \
38  ExceptionInfo \
39  *exception; \
40  \
41  exception=AcquireExceptionInfo(); \
42  (void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
43  "`%s'",context); \
44  CatchException(exception); \
45  (void) DestroyExceptionInfo(exception); \
46  MagickWandTerminus(); \
47  _exit((int) (severity-FatalErrorException)+1); \
48 }
49 
51 {
52  size_t
53  id;
54 
55  char
57 
58  ExceptionInfo
60 
61  ImageInfo
63 
64  QuantizeInfo
66 
67  Image
69 
70  MagickBooleanType
74 
75  size_t
77 };
78 
79 #if defined(__cplusplus) || defined(c_plusplus)
80 }
81 #endif
82 
83 #endif
_MagickWand::signature
size_t signature
Definition: magick-wand-private.h:76
_MagickWand::name
char name[MaxTextExtent]
Definition: magick-wand-private.h:56
_MagickWand::images
Image * images
Definition: magick-wand-private.h:68
_MagickWand::image_pending
MagickBooleanType image_pending
Definition: magick-wand-private.h:72
_MagickWand::insert_before
MagickBooleanType insert_before
Definition: magick-wand-private.h:71
_MagickWand::debug
MagickBooleanType debug
Definition: magick-wand-private.h:73
_MagickWand::quantize_info
QuantizeInfo * quantize_info
Definition: magick-wand-private.h:65
_MagickWand
Definition: magick-wand-private.h:51
_MagickWand::image_info
ImageInfo * image_info
Definition: magick-wand-private.h:62
_MagickWand::exception
ExceptionInfo * exception
Definition: magick-wand-private.h:59
_MagickWand::id
size_t id
Definition: magick-wand-private.h:53
MaxTextExtent
#define MaxTextExtent
Definition: method-attribute.h:78