MagickWand  6.9.12-67
Convert, Edit, Or Compose Bitmap Images
 All Data Structures
magick-wand-private.h
1 /*
2  Copyright 1999-2021 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. You may
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
56  name[MaxTextExtent];
57 
58  ExceptionInfo
59  *exception;
60 
61  ImageInfo
62  *image_info;
63 
64  QuantizeInfo
65  *quantize_info;
66 
67  Image
68  *images;
69 
70  MagickBooleanType
71  insert_before,
72  image_pending,
73  debug;
74 
75  size_t
76  signature;
77 };
78 
79 #if defined(__cplusplus) || defined(c_plusplus)
80 }
81 #endif
82 
83 #endif