#if (MAGICKCORE_QUANTUM_DEPTH == 8)
#define MagickEpsilon 1.0e-6
-#define MagickHuge 1.0e6
#define MaxColormapSize 256UL
#define MaxMap 255UL
#endif
#elif (MAGICKCORE_QUANTUM_DEPTH == 16)
#define MagickEpsilon 1.0e-10
-#define MagickHuge 1.0e12
#define MaxColormapSize 65536UL
#define MaxMap 65535UL
#endif
#elif (MAGICKCORE_QUANTUM_DEPTH == 32)
#define MagickEpsilon 1.0e-10
-#define MagickHuge 1.0e12
#define MaxColormapSize 65536UL
#define MaxMap 65535UL
#endif
#elif (MAGICKCORE_QUANTUM_DEPTH == 64) && defined(MAGICKCORE_HAVE_LONG_DOUBLE_WIDER)
#define MagickEpsilon 1.0e-10
-#define MagickHuge 1.0e12
#define MaxColormapSize 65536UL
#define MaxMap 65535UL
# error "MAGICKCORE_QUANTUM_DEPTH must be one of 8, 16, 32, or 64"
#endif
#endif
-#define MagickMaxFloat 3.402823466E+38F
+#define MagickHuge 3.402823466E+38F
#define MagickPI 3.14159265358979323846264338327950288419716939937510L
#define QuantumScale ((double) 1.0/(double) QuantumRange)
% %
% %
% %
-% G e t M a g i c k P i x e l P a c k e t %
+% G e t P i x e l I n f o %
% %
% %
% %
% o pixel: Specifies a pointer to a PixelPacket structure.
%
*/
-MagickExport void GetPixelInfo(const Image *image,
- PixelInfo *pixel)
+MagickExport void GetPixelInfo(const Image *image,PixelInfo *pixel)
{
pixel->storage_class=DirectClass;
pixel->colorspace=RGBColorspace;
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
status=MagickTrue;
- *maxima=(-MagickMaxFloat);
- *minima=MagickMaxFloat;
+ *maxima=(-MagickHuge);
+ *minima=MagickHuge;
image_view=AcquireCacheView(image);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(dynamic) shared(status) omp_throttle(1)
for (i=0; i <= (ssize_t) MaxPixelChannels; i++)
{
channel_statistics[i].depth=1;
- channel_statistics[i].maxima=(-MagickMaxFloat);
- channel_statistics[i].minima=MagickMaxFloat;
+ channel_statistics[i].maxima=(-MagickHuge);
+ channel_statistics[i].minima=MagickHuge;
}
for (y=0; y < (ssize_t) image->rows; y++)
{