#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
+#include <time.h>
#if defined(WIN32) || defined(WIN64)
# define MAGICKCORE_WINDOWS_SUPPORT
#ifndef _MAGICKCORE_ANIMATE_PRIVATE_H
#define _MAGICKCORE_ANIMATE_PRIVATE_H
+#if defined(MAGICKCORE_X11_DELEGATE)
+#include "MagickCore/xwindow-private.h"
+#endif
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#if defined(MAGICKCORE_X11_DELEGATE)
-#include "MagickCore/xwindow-private.h"
-
extern MagickExport Image
*XAnimateImages(Display *,XResourceInfo *,char **,const int,Image *,
ExceptionInfo *);
#ifndef _MAGICKCORE_ANNOTATE_H
#define _MAGICKCORE_ANNOTATE_H
+#include "MagickCore/draw.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/draw.h"
-
extern MagickExport MagickBooleanType
AnnotateImage(Image *,const DrawInfo *,ExceptionInfo *),
GetMultilineTypeMetrics(Image *,const DrawInfo *,TypeMetric *,
#ifndef _MAGICKCORE_ATTRIBUTE_H
#define _MAGICKCORE_ATTRIBUTE_H
+#include "MagickCore/image.h"
+#include "MagickCore/exception.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/image.h"
-#include "MagickCore/exception.h"
-
extern MagickExport ImageType
GetImageType(const Image *,ExceptionInfo *);
#ifndef _MAGICKCORE_BLOB_PRIVATE_H
#define _MAGICKCORE_BLOB_PRIVATE_H
+#include "MagickCore/nt-feature.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/nt-feature.h"
-
#define MagickMinBlobExtent 32767L
#if defined(MAGICKCORE_HAVE_FSEEKO)
# define fseek fseeko
#ifndef _MAGICKCORE_BLOB_H
#define _MAGICKCORE_BLOB_H
+#include "MagickCore/image.h"
+#include "MagickCore/stream.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/image.h"
-#include "MagickCore/stream.h"
-
#define MagickMaxBufferExtent (32*8192-2)
typedef enum
#ifndef _MAGICKCORE_CACHE_PRIVATE_H
#define _MAGICKCORE_CACHE_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
-#include <time.h>
#include "MagickCore/cache.h"
#include "MagickCore/distribute-cache.h"
#include "MagickCore/pixel.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/semaphore.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
typedef void
*Cache;
#ifndef _MAGICKCORE_CACHE_VIEW_H
#define _MAGICKCORE_CACHE_VIEW_H
+#include "MagickCore/pixel.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/pixel.h"
-
typedef enum
{
UndefinedVirtualPixelMethod,
#ifndef _MAGICKCORE_CACHE_H
#define _MAGICKCORE_CACHE_H
+#include "MagickCore/blob.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/blob.h"
-
typedef enum
{
UndefinedCache,
return(status);
}
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
MagickExport Image *ChannelFxImage(const Image *image,const char *expression,
ExceptionInfo *exception)
{
}
return(GetFirstImageInList(destination_image));
}
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% o exception: return any errors or warnings in this structure.
%
*/
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
MagickExport Image *CombineImages(const Image *image,
const ColorspaceType colorspace,ExceptionInfo *exception)
{
combine_image=DestroyImage(combine_image);
return(combine_image);
}
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% o exception: return any errors or warnings in this structure.
%
*/
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
MagickExport Image *SeparateImage(const Image *image,
const ChannelType channel_type,ExceptionInfo *exception)
{
separate_image=DestroyImage(separate_image);
return(separate_image);
}
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% o exception: return any errors or warnings in this structure.
%
*/
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
MagickExport Image *SeparateImages(const Image *image,ExceptionInfo *exception)
{
Image
images=SeparateImage(image,UndefinedChannel,exception);
return(images);
}
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
}
}
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
const AlphaChannelOption alpha_type,ExceptionInfo *exception)
{
return(status);
return(SyncImagePixelCache(image,exception));
}
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
#ifndef _MAGICKCORE_CHANNEL_H
#define _MAGICKCORE_CHANNEL_H
+#include <MagickCore/image.h>
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include <MagickCore/image.h>
-
extern MagickExport Image
*ChannelFxImage(const Image *,const char *,ExceptionInfo *),
*CombineImages(const Image *,const ColorspaceType,ExceptionInfo *),
#ifndef _MAGICKCORE_COLOR_PRIVATE_H
#define _MAGICKCORE_COLOR_PRIVATE_H
+#include "MagickCore/image.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/image.h"
-
extern MagickPrivate MagickBooleanType
ColorComponentGenesis(void);
#ifndef _MAGICKCORE_COLOR_H
#define _MAGICKCORE_COLOR_H
+#include "MagickCore/pixel.h"
+#include "MagickCore/exception.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/pixel.h"
-#include "MagickCore/exception.h"
-
typedef enum
{
UndefinedCompliance,
#ifndef _MAGICKCORE_COLORMAP_PRIVATE_H
#define _MAGICKCORE_COLORMAP_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/image.h"
#include "MagickCore/color.h"
#include "MagickCore/exception-private.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
static inline Quantum ConstrainColormapIndex(Image *image,const size_t index,
ExceptionInfo *exception)
{
#ifndef _MAGICKCORE_COLORSPACE_PRIVATE_H
#define _MAGICKCORE_COLORSPACE_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
static inline void ConvertRGBToCMYK(PixelInfo *pixel)
{
MagickRealType
#ifndef _MAGICKCORE_COMPARE_H
#define _MAGICKCORE_COMPARE_H
+#include "MagickCore/image.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/image.h"
-
typedef enum
{
UndefinedErrorMetric,
#ifndef _MAGICKCORE_COMPOSITE_PRIVATE_H
#define _MAGICKCORE_COMPOSITE_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
-/*
- ImageMagick Alpha Composite Inline Methods (special export)
-*/
#include "MagickCore/color.h"
#include "MagickCore/image.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/pixel-private.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+/*
+ ImageMagick Alpha Composite Inline Methods (special export)
+*/
static inline double MagickOver_(const double p,
const double alpha,const double q,const double beta)
{
#ifndef _MAGICKCORE_CONFIGURE_H
#define _MAGICKCORE_CONFIGURE_H
+#include "MagickCore/hashmap.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/hashmap.h"
-
typedef struct _ConfigureInfo
{
char
#ifndef _MAGICKCORE_CONSTITUTE_H
#define _MAGICKCORE_CONSTITUTE_H
+#include "MagickCore/pixel.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/pixel.h"
-
extern MagickExport Image
*ConstituteImage(const size_t,const size_t,const char *,const StorageType,
const void *,ExceptionInfo *),
#ifndef _MAGICKCORE_DECORATE_H
#define _MAGICKCORE_DECORATE_H
+#include "MagickCore/image.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/image.h"
-
typedef struct _FrameInfo
{
size_t
#ifndef _MAGICKCORE_DELEGATE_PRIVATE_H
#define _MAGICKCORE_DELEGATE_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#if defined(MAGICKCORE_GS_DELEGATE)
#include "ghostscript/iapi.h"
#include "ghostscript/ierrors.h"
#endif
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
#ifndef gs_main_instance_DEFINED
# define gs_main_instance_DEFINED
typedef struct gs_main_instance_s
#ifndef _MAGICKCORE_DISPLAY_PRIVATE_H
#define _MAGICKCORE_DISPLAY_PRIVATE_H
+#if defined(MAGICKCORE_X11_DELEGATE)
+#include "MagickCore/xwindow-private.h"
+#endif
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#if defined(MAGICKCORE_X11_DELEGATE)
-#include "MagickCore/xwindow-private.h"
-
extern MagickExport Image
*XDisplayImage(Display *,XResourceInfo *,char **,int,Image **,size_t *,
ExceptionInfo *);
#ifndef _MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
#define _MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
+#include "MagickCore/geometry.h"
+#include "MagickCore/exception.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/geometry.h"
-#include "MagickCore/exception.h"
-
typedef struct _DistributeCacheInfo
{
int
#ifndef _MAGICKCORE_DISTRIBUTE_CACHE_H
#define _MAGICKCORE_DISTRIBUTE_CACHE_H
+#include "MagickCore/exception.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/exception.h"
-
extern MagickExport void
DistributePixelCacheServer(const int,ExceptionInfo *);
#ifndef _MAGICKCORE_DRAW_PRIVATE_H
#define _MAGICKCORE_DRAW_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/cache.h"
#include "MagickCore/image.h"
#include "MagickCore/memory_.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
static inline MagickBooleanType GetFillColor(const DrawInfo *draw_info,
const ssize_t x,const ssize_t y,PixelInfo *fill,ExceptionInfo *exception)
{
#ifndef _MAGICKCORE_DRAW_H
#define _MAGICKCORE_DRAW_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/geometry.h"
#include "MagickCore/image.h"
#include "MagickCore/pixel.h"
#include "MagickCore/type.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
typedef enum
{
UndefinedAlign,
#ifndef _MAGICKCORE_EFFECT_H
#define _MAGICKCORE_EFFECT_H
+#include "MagickCore/morphology.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/morphology.h"
-
typedef enum
{
UndefinedPreview,
#ifndef _MAGICKCORE_ENHANCE_H
#define _MAGICKCORE_ENHANCE_H
+#include "MagickCore/pixel.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/pixel.h"
-
extern MagickExport MagickBooleanType
AutoGammaImage(Image *,ExceptionInfo *),
AutoLevelImage(Image *,ExceptionInfo *),
#ifndef _MAGICKCORE_EXCEPTION_PRIVATE_H
#define _MAGICKCORE_EXCEPTION_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/log.h"
#include "MagickCore/magick.h"
#include "MagickCore/string_.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
#define ThrowBinaryException(severity,tag,context) \
{ \
if (image != (Image *) NULL) \
#ifndef _MAGICKCORE_EXCEPTION_H
#define _MAGICKCORE_EXCEPTION_H
+#include "MagickCore/semaphore.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include <stdarg.h>
-#include "MagickCore/semaphore.h"
-
typedef enum
{
UndefinedException,
#ifndef _MAGICKCORE_FX_H
#define _MAGICKCORE_FX_H
+#include "MagickCore/draw.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/draw.h"
-
typedef enum
{
UndefinedNoise,
#ifndef _MAGICKCORE_GEM_PRIVATE_H
#define _MAGICKCORE_GEM_PRIVATE_H
+#include "MagickCore/pixel-private.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/pixel-private.h"
-
#define D65X 0.950456
#define D65Y 1.0
#define D65Z 1.088754
#ifndef _MAGICKCORE_GEM_H
#define _MAGICKCORE_GEM_H
+#include "MagickCore/fx.h"
+#include "MagickCore/random_.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/fx.h"
-#include "MagickCore/random_.h"
-
extern MagickExport double
ExpandAffine(const AffineMatrix *);
#ifndef _MAGICKCORE_IMAGE_H
#define _MAGICKCORE_IMAGE_H
+#include "MagickCore/color.h"
+#include "MagickCore/pixel.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/color.h"
-#include "MagickCore/pixel.h"
-
#define OpaqueAlpha ((Quantum) QuantumRange)
#define TransparentAlpha ((Quantum) 0)
#ifndef _MAGICKCORE_LAYER_H
#define _MAGICKCORE_LAYER_H
+#include "MagickCore/composite.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/composite.h"
-
typedef enum
{
UnrecognizedDispose,
#ifndef _MAGICKCORE_LOCALE_H
#define _MAGICKCORE_LOCALE_H
+#include "MagickCore/hashmap.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/hashmap.h"
-
typedef struct _LocaleInfo
{
char
#ifndef _MAGICKCORE_LOG_PRIVATE_H
#define _MAGICKCORE_LOG_PRIVATE_H
+#include "MagickCore/exception.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include <stdarg.h>
-#include "MagickCore/exception.h"
-
extern MagickPrivate MagickBooleanType
LogComponentGenesis(void);
#ifndef _MAGICKCORE_LOG_H
#define _MAGICKCORE_LOG_H
+#include "MagickCore/exception.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include <stdarg.h>
-#include "MagickCore/exception.h"
-
#if !defined(GetMagickModule)
# define GetMagickModule() __FILE__,__func__,(unsigned long) __LINE__
#endif
#ifndef _MAGICKCORE_MAC_H
#define _MAGICKCORE_MAC_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include <locale.h>
#include <Errors.h>
#include <Files.h>
#include <errno.h>
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
#if defined(_MAGICKCORE_POSIX_SUPPORT_VERSION)
# include <dirent.h>
# if !defined(DISABLE_SIOUX)
#ifndef _MAGICKCORE_MAGICK_TYPE_H
#define _MAGICKCORE_MAGICK_TYPE_H
+#include "MagickCore/magick-config.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/magick-config.h"
-
#if !defined(MAGICKCORE_QUANTUM_DEPTH)
#define MAGICKCORE_QUANTUM_DEPTH 16
#endif
#ifndef _MAGICKCORE_MODULE_H
#define _MAGICKCORE_MODULE_H
+#include "MagickCore/version.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include <time.h>
-#include "MagickCore/version.h"
-
#define MagickImageCoderSignature ((size_t) \
(((MagickLibVersion) << 8) | MAGICKCORE_QUANTUM_DEPTH))
#define MagickImageFilterSignature ((size_t) \
#ifndef _MAGICK_MONITOR_PRIVATE_H
#define _MAGICK_MONITOR_PRIVATE_H
+#include "MagickCore/image.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/image.h"
-
static inline MagickBooleanType SetImageProgress(const Image *image,
const char *tag,const MagickOffsetType offset,const MagickSizeType extent)
{
#ifndef _MAGICK_MORPHOLOGY_PRIVATE_H
#define _MAGICK_MORPHOLOGY_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
+#include "MagickCore/morphology.h"
#if defined(__cplusplus) || defined(c_plusplus)
-}
+extern "C" {
#endif
-#include "MagickCore/morphology.h"
-
extern MagickPrivate Image
*MorphologyApply(const Image *,const MorphologyMethod,const ssize_t,
const KernelInfo *,const CompositeOperator,const double,ExceptionInfo *);
ShowKernelInfo(const KernelInfo *),
ZeroKernelNans(KernelInfo *);
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
#endif
#ifndef _MAGICKCORE_MORPHOLOGY_H
#define _MAGICKCORE_MORPHOLOGY_H
+#include "MagickCore/geometry.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/geometry.h"
-
typedef enum
{
UndefinedKernel, /* equivalent to UnityKernel */
#ifndef _MAGICKCORE_NT_BASE_PRIVATE_H
#define _MAGICKCORE_NT_BASE_PRIVATE_H
+#include "MagickCore/delegate.h"
+#include "MagickCore/delegate-private.h"
+#include "MagickCore/exception.h"
+#include "MagickCore/splay-tree.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#if defined(MAGICKCORE_WINDOWS_SUPPORT)
-#include "MagickCore/delegate.h"
-#include "MagickCore/delegate-private.h"
-#include "MagickCore/exception.h"
-#include "MagickCore/splay-tree.h"
-
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#define _CRT_SECURE_NO_DEPRECATE 1
#ifndef _MAGICKCORE_NT_BASE_H
#define _MAGICKCORE_NT_BASE_H
+#include "MagickCore/exception.h"
+#include "MagickCore/geometry.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/exception.h"
-#include "MagickCore/geometry.h"
-
#if defined(MAGICKCORE_WINDOWS_SUPPORT)
typedef struct _GhostInfo
GhostInfo_;
#ifndef _MAGICKCORE_NT_FEATURE_H
#define _MAGICKCORE_NT_FEATURE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/exception.h"
#include "MagickCore/geometry.h"
#include "MagickCore/splay-tree.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
extern MagickExport void
*CropImageToHBITMAP(Image *,const RectangleInfo *,ExceptionInfo *),
*ImageToHBITMAP(Image *,ExceptionInfo *);
/*
-Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
-dedicated to making software imaging solutions freely available.
+ Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
+ dedicated to making software imaging solutions freely available.
-You may not use this file except in compliance with the License.
-obtain a copy of the License at
+ You may not use this file except in compliance with the License.
+ obtain a copy of the License at
-http://www.imagemagick.org/script/license.php
+ http://www.imagemagick.org/script/license.php
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
-MagickCore OpenCL private methods.
+ MagickCore OpenCL private methods.
*/
#ifndef _MAGICKCORE_OPENCL_PRIVATE_H
#define _MAGICKCORE_OPENCL_PRIVATE_H
-/*
-Include declarations.
-*/
#include "MagickCore/studio.h"
#include "MagickCore/opencl.h"
#ifndef _MAGICKCORE_PAINT_H
#define _MAGICKCORE_PAINT_H
+#include "MagickCore/color.h"
+#include "MagickCore/draw.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/color.h"
-#include "MagickCore/draw.h"
-
extern MagickExport Image
*OilPaintImage(const Image *,const double,const double,ExceptionInfo *);
#ifndef _MAGICKCORE_PIXEL_ACCESSOR_H
#define _MAGICKCORE_PIXEL_ACCESSOR_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
-#include <math.h>
#include "MagickCore/cache.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/color.h"
#include "MagickCore/gem.h"
#include "MagickCore/image.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
#undef index
static inline Quantum GetPixela(const Image *restrict image,
#ifndef _MAGICKCORE_PIXEL_H
#define _MAGICKCORE_PIXEL_H
+#include "MagickCore/colorspace.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/colorspace.h"
-
#define MaxPixelChannels 32
#undef index
#ifndef _MAGICKCORE_POLICY_H
#define _MAGICKCORE_POLICY_H
+#include "MagickCore/pixel.h"
+#include "MagickCore/exception.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/pixel.h"
-#include "MagickCore/exception.h"
-
typedef enum
{
UndefinedPolicyDomain,
#ifndef _MAGICKCORE_PROFILE_PRIVATE_H
#define _MAGICKCORE_PROFILE_PRIVATE_H
+#include "MagickCore/string_.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/string_.h"
-
extern MagickPrivate MagickBooleanType
SyncImageProfiles(Image *);
#ifndef _MAGICKCORE_PROFILE_H
#define _MAGICKCORE_PROFILE_H
+#include "MagickCore/string_.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/string_.h"
-
typedef struct _ProfileInfo
ProfileInfo;
#ifndef _MAGICKCORE_QUANTIZE_H
#define _MAGICKCORE_QUANTIZE_H
+#include "MagickCore/colorspace.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/colorspace.h"
-
typedef enum
{
UndefinedDitherMethod,
#ifndef _MAGICKCORE_QUANTUM_PRIVATE_H
#define _MAGICKCORE_QUANTUM_PRIVATE_H
+#include "MagickCore/cache.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/cache.h"
-
typedef struct _QuantumState
{
double
#ifndef _MAGICKCORE_QUANTUM_H
#define _MAGICKCORE_QUANTUM_H
+#include "MagickCore/image.h"
+#include "MagickCore/semaphore.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/image.h"
-#include "MagickCore/semaphore.h"
-
typedef enum
{
UndefinedEndian,
#ifndef _MAGICKCORE_RANDOM_PRIVATE_H
#define _MAGICKCORE_RANDOM_PRIVATE_H
+#include "MagickCore/thread-private.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/thread-private.h"
-
extern MagickPrivate double
GetRandomInfoNormalize(RandomInfo *);
#ifndef _MAGICKCORE_RANDOM__H
#define _MAGICKCORE_RANDOM__H
+#include "MagickCore/string_.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/string_.h"
-
/*
Typedef declarations.
*/
#ifndef _MAGICKCORE_RESAMPLE_PRIVATE_H
#define _MAGICKCORE_RESAMPLE_PRIVATE_H
+#include "MagickCore/thread-private.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/thread-private.h"
-
static inline ResampleFilter **DestroyResampleFilterThreadSet(
ResampleFilter **filter)
{
#ifndef _MAGICKCORE_RESAMPLE_H
#define _MAGICKCORE_RESAMPLE_H
+#include "MagickCore/cache-view.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/cache-view.h"
-
/*
WARNING: The order of this table must also match the order of a table
located in AcquireResizeFilter() in "resize.c" otherwise the users filter
#ifndef _MAGICKCORE_SIGNATURE_PRIVATE_H
#define _MAGICKCORE_SIGNATURE_PRIVATE_H
+#include "MagickCore/string_.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#define MagickSignatureSize 64
-#include "MagickCore/string_.h"
-
typedef struct _SignatureInfo
SignatureInfo;
#ifndef _MAGICKCORE_STRING_PRIVATE_H
#define _MAGICKCORE_STRING_PRIVATE_H
+#include "MagickCore/locale_.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/locale_.h"
-
static inline double SiPrefixToDoubleInterval(const char *string,
const double interval)
{
#ifndef _MAGICKCORE_STRING_H_
#define _MAGICKCORE_STRING_H_
+#include "MagickCore/exception.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/exception.h"
-
typedef struct _StringInfo
{
char
#ifndef _MAGICKCORE_THREAD_PRIVATE_H
#define _MAGICKCORE_THREAD_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/cache.h"
#include "MagickCore/resource_.h"
#include "MagickCore/thread_.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
/*
Single threaded unless workload justifies the threading overhead.
*/
#ifndef _MAGICKCORE_UTILITY_PRIVATE_H
#define _MAGICKCORE_UTILITY_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/memory_.h"
#include "MagickCore/nt-base.h"
#include "MagickCore/nt-base-private.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
extern MagickPrivate char
**GetPathComponents(const char *,size_t *),
**ListFiles(const char *,const char *,size_t *);
#ifndef _MAGICKCORE_VERSION_PRIVATE_H
#define _MAGICKCORE_VERSION_PRIVATE_H
+#include "MagickCore/string_.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/string_.h"
-
extern MagickExport unsigned int
GetMagickSignature(const StringInfo *);
return(crc ^ 0xFFFFFFFF);
}
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
MagickExport unsigned int GetMagickSignature(const StringInfo *nonce)
{
register unsigned char
version=DestroyStringInfo(version);
return(signature);
}
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#ifndef _MAGICKCORE_WIDGET_PRIVATE_H
#define _MAGICKCORE_WIDGET_PRIVATE_H
+#include "MagickCore/xwindow-private.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#if defined(MAGICKCORE_X11_DELEGATE)
-
-#include "MagickCore/xwindow-private.h"
-
extern MagickPrivate int
XCommandWidget(Display *,XWindows *,const char **,XEvent *),
XConfirmWidget(Display *,XWindows *,const char *,const char *),
#ifndef _MAGICKCORE_XML_TREE_PRIVATE_H
#define _MAGICKCORE_XML_TREE_PRIVATE_H
+#include "MagickCore/exception.h"
+#include "MagickCore/splay-tree.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/exception.h"
-#include "MagickCore/splay-tree.h"
-
extern MagickPrivate char
*CanonicalXMLContent(const char *,const MagickBooleanType);
#ifndef _MAGICKCORE_XWINDOW_PRIVATE_H
#define _MAGICKCORE_XWINDOW_PRIVATE_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
#include "MagickCore/draw.h"
#include "MagickCore/exception.h"
#include "MagickCore/geometry.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/quantize.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
#if defined(MAGICKCORE_X11_DELEGATE)
#include <X11/Xos.h>
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
+#include <time.h>
#if defined(WIN32) || defined(WIN64)
# define MAGICKWAND_WINDOWS_SUPPORT
if (LocaleCompare("complex",option+1) == 0)
{
ssize_t
- operator;
+ op;
if (*option == '+')
break;
i++;
if (i == (ssize_t) argc)
ThrowConvertException(OptionError,"MissingArgument",option);
- operator=ParseCommandOption(MagickComplexOptions,MagickFalse,
- argv[i]);
- if (operator < 0)
+ op=ParseCommandOption(MagickComplexOptions,MagickFalse,argv[i]);
+ if (op < 0)
ThrowConvertException(OptionError,"UnrecognizedComplexOperator",
argv[i]);
break;
#ifndef _MAGICKWAND_DRAWING_WAND_H
#define _MAGICKWAND_DRAWING_WAND_H
+#include "MagickWand/pixel-wand.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickWand/pixel-wand.h"
-
typedef struct _DrawingWand
DrawingWand;
if (LocaleCompare("complex",option+1) == 0)
{
ComplexOperator
- operator;
+ op;
Image
*complex_images;
(void) SyncImageSettings(mogrify_info,*images,exception);
- operator=(ComplexOperator) ParseCommandOption(MagickComplexOptions,
+ op=(ComplexOperator) ParseCommandOption(MagickComplexOptions,
MagickFalse,argv[i+1]);
- complex_images=ComplexImages(*images,operator,exception);
+ complex_images=ComplexImages(*images,op,exception);
if (complex_images == (Image *) NULL)
{
status=MagickFalse;
/* if new image list generated, replace existing image list */
if (new_images == (Image *) NULL)
- return(status);
+ return(status == 0 ? MagickFalse : MagickTrue);
_images=DestroyImageList(_images);
_images=GetFirstImageInList(new_images);
- return(status);
+ return(status == 0 ? MagickFalse : MagickTrue);
#undef _image_info
#undef _images
#ifndef _MAGICKWAND_PIXEL_ITERATOR_H
#define _MAGICKWAND_PIXEL_ITERATOR_H
+#include "MagickWand/MagickWand.h"
+#include "MagickWand/pixel-wand.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickWand/MagickWand.h"
-#include "MagickWand/pixel-wand.h"
-
typedef struct _PixelIterator
PixelIterator;
data[length*quantum]='\0';
}
else
- if (datum == 0xFFFFFFFF)
+ if (datum == 0xFFFFFFFFL)
{
sequence=MagickTrue;
continue;
codes[6] = 0;
codes[7] = 255;
- for (i=1; i < steps; i++)
+ for (i=1; i < (ssize_t) steps; i++)
codes[i+1] = (unsigned char) (((steps-i)*min + i*max) / steps);
error = 0;
VectorCopy43(points[0],end);
min = max = Dot(points[0],principle);
- for (i=1; i < count; i++)
+ for (i=1; i < (ssize_t) count; i++)
{
val = Dot(points[i],principle);
if (val < min)
codes[3].y = (start->y * (1.0f/3.0f)) + (end->y * (2.0f/3.0f));
codes[3].z = (start->z * (1.0f/3.0f)) + (end->z * (2.0f/3.0f));
- for (i=0; i < count; i++)
+ for (i=0; i < (ssize_t) count; i++)
{
bestDist = 1e+37f;
bestj = 0;
o = order + (16*iteration);
- for (i=0; i < count; i++)
+ for (i=0; i < (ssize_t) count; i++)
{
dps[i] = Dot(points[i],axis);
o[i] = (unsigned char)i;
}
- for (i=0; i < count; i++)
+ for (i=0; i < (ssize_t) count; i++)
{
for (j=i; j > 0 && dps[j] < dps[j - 1]; j--)
{
}
}
- for (i=0; i < iteration; i++)
+ for (i=0; i < (ssize_t) iteration; i++)
{
MagickBooleanType
same;
xSumwSum->z = 0;
xSumwSum->w = 0;
- for (i=0; i < count; i++)
+ for (i=0; i < (ssize_t) count; i++)
{
DDSVector4
v;
alphas[i] = -1;
}
- for (by=0; by < rows; by++)
+ for (by=0; by < (ssize_t) rows; by++)
{
- for (bx=0; bx < columns; bx++)
+ for (bx=0; bx < (ssize_t) columns; bx++)
{
if (compression == FOURCC_DXT5)
alpha = ScaleQuantumToChar(GetPixelAlpha(image,p));
p+=GetPixelChannels(image);
match = MagickFalse;
- for (i=0; i < count; i++)
+ for (i=0; i < (ssize_t) count; i++)
{
if ((points[i].x == point.x) &&
(points[i].y == point.y) &&
}
}
- for (i=0; i < count; i++)
+ for (i=0; i < (ssize_t) count; i++)
points[i].w = sqrt(points[i].w);
if (compression == FOURCC_DXT5)
columns = image->columns;
rows = image->rows;
- for (i=0; i<mipmaps; i++)
+ for (i=0; i< (ssize_t) mipmaps; i++)
{
resize_image = ResizeImage(image,columns/2,rows/2,TriangleFilter,
exception);