MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
image-private.h File Reference
#include <errno.h>
#include <stdint.h>
#include <limits.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 MagickPI   3.14159265358979323846264338327950288419716939937510
 
#define Magick2PI   6.28318530717958647692528676655900576839433879875020
 
#define MagickPHI   1.61803398874989484820458683436563811772030917980576
 
#define MagickPI2   1.57079632679489661923132169163975144209858469968755
 
#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 UndefinedTicksPerSecond   100L
 
#define UndefinedCompressionQuality   0UL
 

Functions

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

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

Macro Definition Documentation

◆ Magick2PI

#define Magick2PI   6.28318530717958647692528676655900576839433879875020

◆ 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)

◆ MagickAbsoluteValue

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

◆ MagickMax

#define MagickMax (   x,
 
)    (((x) > (y)) ? (x) : (y))

◆ MagickMin

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

◆ MagickPHI

#define MagickPHI   1.61803398874989484820458683436563811772030917980576

◆ MagickPI

#define MagickPI   3.14159265358979323846264338327950288419716939937510

◆ MagickPI2

#define MagickPI2   1.57079632679489661923132169163975144209858469968755

◆ MagickSQ1_2

#define MagickSQ1_2   0.70710678118654752440084436210484903928483593768847

◆ MagickSQ2

#define MagickSQ2   1.41421356237309504880168872420969807856967187537695

◆ MagickSQ2PI

#define MagickSQ2PI   2.50662827463100024161235523934010416269302368164062

◆ UndefinedCompressionQuality

#define UndefinedCompressionQuality   0UL

◆ UndefinedTicksPerSecond

#define UndefinedTicksPerSecond   100L

Function Documentation

◆ CastDoubleToUnsigned()

static size_t CastDoubleToUnsigned ( const double  x)
inlinestatic

◆ 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

const MagickExport char BackgroundColor[]

◆ BorderColor

const MagickExport char BorderColor[]

◆ DefaultResolution

const MagickExport double DefaultResolution

◆ DefaultTileFrame

const MagickExport char DefaultTileFrame[]

Referenced by PreviewImage().

◆ DefaultTileGeometry

const MagickExport char DefaultTileGeometry[]

Referenced by GetMontageInfo().

◆ DefaultTileLabel

const MagickExport char DefaultTileLabel[]

Referenced by PreviewImage().

◆ ForegroundColor

const MagickExport char ForegroundColor[]

◆ LoadImagesTag

const MagickExport char LoadImagesTag[]

◆ LoadImageTag

const MagickExport char LoadImageTag[]

◆ MatteColor

const MagickExport char MatteColor[]

◆ PSDensityGeometry

const MagickExport char PSDensityGeometry[]

◆ PSPageGeometry

const MagickExport char PSPageGeometry[]

◆ SaveImagesTag

const MagickExport char SaveImagesTag[]

◆ SaveImageTag

const MagickExport char SaveImageTag[]