1 /*
2 % Copyright (C) 2008 - 2018 GraphicsMagick Group
3 %
4 % This program is covered by multiple licenses, which are described in
5 % Copyright.txt. You should have received a copy of Copyright.txt with this
6 % package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
7 %
8 % Interfaces to convert to and from the string form of enumeration values.
9 %
10 % Written by Bob Friesenhahn, June 2008.
11 %
12 */
13 
14 #ifndef _ENUM_STRINGS_H
15 #define _ENUM_STRINGS_H
16 
17 #include "magick/image.h"
18 #include "magick/blob.h"
19 #include "magick/compare.h"
20 #include "magick/confirm_access.h"
21 #include "magick/constitute.h"
22 #include "magick/operator.h"
23 #include "magick/pixel_cache.h"
24 #include "magick/render.h"
25 #include "magick/resource.h"
26 
27 #if defined(__cplusplus) || defined(c_plusplus)
28 extern "C" {
29 #endif
30 
31 
32   extern MagickExport ChannelType StringToChannelType(const char *option) MAGICK_FUNC_PURE;
33   extern MagickExport ColorspaceType StringToColorspaceType(const char *colorspace_string) MAGICK_FUNC_PURE;
34   extern MagickExport CompositeOperator StringToCompositeOperator(const char *option) MAGICK_FUNC_PURE;
35   extern MagickExport CompressionType StringToCompressionType(const char *option) MAGICK_FUNC_PURE;
36   extern MagickExport EndianType StringToEndianType(const char *option) MAGICK_FUNC_PURE;
37   extern MagickExport FilterTypes StringToFilterTypes(const char *option) MAGICK_FUNC_PURE;
38   extern MagickExport GravityType StringToGravityType(const char *option) MAGICK_FUNC_PURE;
39   extern MagickExport HighlightStyle StringToHighlightStyle(const char *option) MAGICK_FUNC_PURE;
40   extern MagickExport ImageType StringToImageType(const char *option) MAGICK_FUNC_PURE;
41   extern MagickExport InterlaceType StringToInterlaceType(const char *option) MAGICK_FUNC_PURE;
42   extern MagickExport MetricType StringToMetricType(const char *option) MAGICK_FUNC_PURE;
43   extern MagickExport NoiseType StringToNoiseType(const char *option) MAGICK_FUNC_PURE;
44   extern MagickExport OrientationType StringToOrientationType(const char *option) MAGICK_FUNC_PURE;
45   extern MagickExport PreviewType StringToPreviewType(const char *option) MAGICK_FUNC_PURE;
46   extern MagickExport ResolutionType StringToResolutionType(const char *option) MAGICK_FUNC_PURE;
47   extern MagickExport QuantumOperator StringToQuantumOperator(const char *option) MAGICK_FUNC_PURE;
48   extern MagickExport ResourceType StringToResourceType(const char *option) MAGICK_FUNC_PURE;
49   extern MagickExport VirtualPixelMethod StringToVirtualPixelMethod(const char *option) MAGICK_FUNC_PURE;
50   extern MagickExport const char *BlobModeToString(BlobMode blob_mode) MAGICK_FUNC_CONST;
51   extern MagickExport const char *ChannelTypeToString(const ChannelType channel) MAGICK_FUNC_CONST;
52   extern MagickExport const char *ClassTypeToString(const ClassType class_type) MAGICK_FUNC_CONST;
53   extern MagickExport const char *ColorspaceTypeToString(const ColorspaceType colorspace) MAGICK_FUNC_CONST;
54   extern MagickExport const char *CompositeOperatorToString(const CompositeOperator composite_op) MAGICK_FUNC_CONST;
55   extern MagickExport const char *CompressionTypeToString(const CompressionType compression_type) MAGICK_FUNC_CONST;
56   extern MagickExport const char *ConfirmAccessModeToString(const ConfirmAccessMode access_mode) MAGICK_FUNC_CONST;
57   extern MagickExport const char *GravityTypeToString(const GravityType gravity_type) MAGICK_FUNC_CONST;
58   extern MagickExport const char *EndianTypeToString(const EndianType endian_type) MAGICK_FUNC_CONST;
59   extern MagickExport const char *HighlightStyleToString(const HighlightStyle difference_algorithm) MAGICK_FUNC_CONST;
60   extern MagickExport const char *ImageTypeToString(const ImageType image_type) MAGICK_FUNC_CONST;
61   extern MagickExport const char *InterlaceTypeToString(const InterlaceType interlace_type) MAGICK_FUNC_CONST;
62   extern MagickExport const char *MapModeToString(MapMode map_mode) MAGICK_FUNC_CONST;
63   extern MagickExport const char *MetricTypeToString(MetricType metric) MAGICK_FUNC_CONST;
64   extern MagickExport const char *NoiseTypeToString(NoiseType noise_type) MAGICK_FUNC_CONST;
65   extern MagickExport const char *OrientationTypeToString(const OrientationType orientation_type) MAGICK_FUNC_CONST;
66   extern MagickExport const char *QuantumOperatorToString(const QuantumOperator quantum_operator) MAGICK_FUNC_CONST;
67   extern MagickExport const char *QuantumSampleTypeToString(const QuantumSampleType sample_type) MAGICK_FUNC_CONST;
68   extern MagickExport const char *QuantumTypeToString(const QuantumType quantum_type) MAGICK_FUNC_CONST;
69   extern MagickExport const char *ResizeFilterToString(const FilterTypes filter) MAGICK_FUNC_CONST;
70   extern MagickExport const char *ResolutionTypeToString(const ResolutionType resolution_type) MAGICK_FUNC_CONST;
71   extern MagickExport const char *StorageTypeToString(const StorageType storage_type) MAGICK_FUNC_CONST;
72   extern MagickExport const char *StretchTypeToString(StretchType stretch) MAGICK_FUNC_CONST;
73   extern MagickExport const char *StyleTypeToString(StyleType style) MAGICK_FUNC_CONST;
74 
75 #if defined(__cplusplus) || defined(c_plusplus)
76 }
77 #endif
78 
79 #endif /* _ENUM_STRINGS_H */
80 
81 /*
82  * Local Variables:
83  * mode: c
84  * c-basic-offset: 2
85  * fill-column: 78
86  * End:
87  */
88