MagickWand 6.9.13-50
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
magick-wand-private.h
1/*
2 Copyright 1999 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/license/
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)
22extern "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 *fatal_exception = AcquireExceptionInfo(); \
39 char *message = GetExceptionMessage(errno); \
40 (void) ThrowMagickException(fatal_exception,GetMagickModule(),severity,tag, \
41 "`%s'",context == (char *) NULL ? message : context); \
42 message=DestroyString(message); \
43 CatchException(fatal_exception); \
44 (void) DestroyExceptionInfo(fatal_exception); \
45 MagickWandTerminus(); \
46 _exit((int) (severity-FatalErrorException)+1); \
47}
48
50{
51 size_t
52 id;
53
54 char
55 name[MaxTextExtent];
56
57 ExceptionInfo
58 *exception;
59
60 ImageInfo
61 *image_info;
62
63 QuantizeInfo
64 *quantize_info;
65
66 Image
67 *images;
68
69 MagickBooleanType
70 insert_before,
71 image_pending,
72 debug;
73
74 size_t
75 signature;
76};
77
78#if defined(__cplusplus) || defined(c_plusplus)
79}
80#endif
81
82#endif