MagickCore  6.9.7
image-private.h File Reference
#include <errno.h>
#include <limits.h>
#include <stdint.h>
Include dependency graph for image-private.h:

Go to the source code of this file.

Macros

#define MagickAbsoluteValue(x)   ((x) < 0 ? -(x) : (x))
 
#define MagickMax(x, y)   (((x) > (y)) ? (x) : (y))
 
#define MagickMin(x, y)   (((x) < (y)) ? (x) : (y))
 
#define MAGICK_INT_MAX   (INT_MAX)
 
#define MagickPI   3.14159265358979323846264338327950288419716939937510
 
#define Magick2PI   6.28318530717958647692528676655900576839433879875020
 
#define MagickPHI   1.61803398874989484820458683436563811772030917980576
 
#define MagickPI2   1.57079632679489661923132169163975144209858469968755
 
#define MAGICK_PTRDIFF_MAX   (PTRDIFF_MAX)
 
#define MAGICK_PTRDIFF_MIN   (-PTRDIFF_MAX-1)
 
#define MagickSQ1_2   0.70710678118654752440084436210484903928483593768847
 
#define MagickSQ2   1.41421356237309504880168872420969807856967187537695
 
#define MagickSQ2PI   2.50662827463100024161235523934010416269302368164062
 
#define MAGICK_SIZE_MAX   (SIZE_MAX)
 
#define MAGICK_SSIZE_MAX   (SSIZE_MAX)
 
#define MAGICK_SSIZE_MIN   (-(SSIZE_MAX)-1)
 
#define MAGICK_UCHAR_MAX   (UCHAR_MAX)
 
#define MAGICK_USHORT_MAX   (USHRT_MAX)
 
#define UndefinedTicksPerSecond   100L
 
#define UndefinedCompressionQuality   0UL
 

Functions

static int CastDoubleToInt (const double x)
 
static ssize_t CastDoubleToLong (const double x)
 
static QuantumAny CastDoubleToQuantumAny (const double x)
 
static size_t CastDoubleToSizeT (const double x)
 
static ssize_t CastDoubleToSsizeT (const double x)
 
static unsigned char CastDoubleToUChar (const double x)
 
static unsigned short CastDoubleToUShort (const double x)
 
static size_t CastDoubleToUnsigned (const double x)
 
static double DegreesToRadians (const double degrees)
 
static MagickRealType RadiansToDegrees (const MagickRealType radians)
 
static unsigned char ScaleColor5to8 (const unsigned int color)
 
static unsigned char ScaleColor6to8 (const unsigned int color)
 
static unsigned int ScaleColor8to5 (const unsigned char color)
 
static unsigned int ScaleColor8to6 (const unsigned char color)
 

Variables

MagickExport const char BackgroundColor []
 
MagickExport const char BorderColor []
 
MagickExport const char DefaultTileFrame []
 
MagickExport const char DefaultTileGeometry []
 
MagickExport const char DefaultTileLabel []
 
MagickExport const char ForegroundColor []
 
MagickExport const char MatteColor []
 
MagickExport const char LoadImageTag []
 
MagickExport const char LoadImagesTag []
 
MagickExport const char PSDensityGeometry []
 
MagickExport const char PSPageGeometry []
 
MagickExport const char SaveImageTag []
 
MagickExport const char SaveImagesTag []
 
MagickExport const double DefaultResolution
 

Macro Definition Documentation

◆ Magick2PI

#define Magick2PI   6.28318530717958647692528676655900576839433879875020

◆ MAGICK_INT_MAX

#define MAGICK_INT_MAX   (INT_MAX)

Referenced by CastDoubleToInt().

◆ MAGICK_PTRDIFF_MAX

#define MAGICK_PTRDIFF_MAX   (PTRDIFF_MAX)

◆ MAGICK_PTRDIFF_MIN

#define MAGICK_PTRDIFF_MIN   (-PTRDIFF_MAX-1)

◆ MAGICK_SIZE_MAX

#define MAGICK_SIZE_MAX   (SIZE_MAX)

◆ MAGICK_SSIZE_MAX

#define MAGICK_SSIZE_MAX   (SSIZE_MAX)

◆ MAGICK_SSIZE_MIN

#define MAGICK_SSIZE_MIN   (-(SSIZE_MAX)-1)

◆ MAGICK_UCHAR_MAX

#define MAGICK_UCHAR_MAX   (UCHAR_MAX)

Referenced by CastDoubleToUChar().

◆ MAGICK_USHORT_MAX

#define MAGICK_USHORT_MAX   (USHRT_MAX)

Referenced by CastDoubleToUShort().

◆ MagickAbsoluteValue

#define MagickAbsoluteValue (   x)    ((x) < 0 ? -(x) : (x))

◆ MagickMax

◆ MagickMin

#define MagickMin (   x,
 
)    (((x) < (y)) ? (x) : (y))

◆ MagickPHI

#define MagickPHI   1.61803398874989484820458683436563811772030917980576

Referenced by FxEvaluateSubexpression().

◆ MagickPI

◆ MagickPI2

#define MagickPI2   1.57079632679489661923132169163975144209858469968755

◆ MagickSQ1_2

#define MagickSQ1_2   0.70710678118654752440084436210484903928483593768847

◆ MagickSQ2

#define MagickSQ2   1.41421356237309504880168872420969807856967187537695

Referenced by AcquireKernelBuiltIn().

◆ MagickSQ2PI

#define MagickSQ2PI   2.50662827463100024161235523934010416269302368164062

◆ UndefinedCompressionQuality

#define UndefinedCompressionQuality   0UL

◆ UndefinedTicksPerSecond

#define UndefinedTicksPerSecond   100L

Referenced by AcquireImage().

Function Documentation

◆ CastDoubleToInt()

static int CastDoubleToInt ( const double  x)
inlinestatic

References IsNaN, and MAGICK_INT_MAX.

◆ CastDoubleToLong()

static ssize_t CastDoubleToLong ( const double  x)
inlinestatic

◆ CastDoubleToQuantumAny()

static QuantumAny CastDoubleToQuantumAny ( const double  x)
inlinestatic

References IsNaN.

◆ CastDoubleToSizeT()

static size_t CastDoubleToSizeT ( const double  x)
inlinestatic

◆ CastDoubleToSsizeT()

static ssize_t CastDoubleToSsizeT ( const double  x)
inlinestatic

◆ CastDoubleToUChar()

static unsigned char CastDoubleToUChar ( const double  x)
inlinestatic

References IsNaN, and MAGICK_UCHAR_MAX.

◆ CastDoubleToUnsigned()

static size_t CastDoubleToUnsigned ( const double  x)
inlinestatic

◆ CastDoubleToUShort()

static unsigned short CastDoubleToUShort ( const double  x)
inlinestatic

References IsNaN, and MAGICK_USHORT_MAX.

◆ DegreesToRadians()

◆ RadiansToDegrees()

static MagickRealType RadiansToDegrees ( const MagickRealType  radians)
inlinestatic

◆ ScaleColor5to8()

static unsigned char ScaleColor5to8 ( const unsigned int  color)
inlinestatic

◆ ScaleColor6to8()

static unsigned char ScaleColor6to8 ( const unsigned int  color)
inlinestatic

◆ ScaleColor8to5()

static unsigned int ScaleColor8to5 ( const unsigned char  color)
inlinestatic

◆ ScaleColor8to6()

static unsigned int ScaleColor8to6 ( const unsigned char  color)
inlinestatic

Variable Documentation

◆ BackgroundColor

MagickExport const char BackgroundColor[]

◆ BorderColor

MagickExport const char BorderColor[]

Referenced by AcquireImage(), and GetImageInfo().

◆ DefaultResolution

MagickExport const double DefaultResolution

◆ DefaultTileFrame

MagickExport const char DefaultTileFrame[]

Referenced by PreviewImage().

◆ DefaultTileGeometry

MagickExport const char DefaultTileGeometry[]

Referenced by GetMontageInfo().

◆ DefaultTileLabel

MagickExport const char DefaultTileLabel[]

Referenced by PreviewImage().

◆ ForegroundColor

MagickExport const char ForegroundColor[]

◆ LoadImagesTag

MagickExport const char LoadImagesTag[]

◆ LoadImageTag

MagickExport const char LoadImageTag[]

◆ MatteColor

MagickExport const char MatteColor[]

Referenced by AcquireImage(), and GetImageInfo().

◆ PSDensityGeometry

MagickExport const char PSDensityGeometry[]

◆ PSPageGeometry

MagickExport const char PSPageGeometry[]

◆ SaveImagesTag

MagickExport const char SaveImagesTag[]

◆ SaveImageTag

MagickExport const char SaveImageTag[]