]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 6 Apr 2012 18:09:16 +0000 (18:09 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 6 Apr 2012 18:09:16 +0000 (18:09 +0000)
MagickCore/draw.h
MagickCore/morphology.h
MagickCore/pixel-accessor.h
MagickCore/quantum.h

index b286df5d7282734d775a84b3e1f0c90583859bfb..4100dde49eea891ec7e9e796d2a675243cfa47e4 100644 (file)
@@ -139,7 +139,7 @@ typedef struct _StopInfo
   PixelInfo
     color;
 
-  MagickRealType
+  double
     offset;
 } StopInfo;
 
@@ -172,7 +172,7 @@ typedef struct _GradientInfo
   PointInfo
     center;
 
-  MagickRealType
+  double
     radius;
 } GradientInfo;
 
index 67d0c5a154eb417c4f18048dd0ddf1d917194bc5..3c942e12a1ece5df8bad6a2e53588eea57e2a4ae 100644 (file)
@@ -111,10 +111,8 @@ typedef struct _KernelInfo
     x,
     y;
 
-  MagickRealType
-    *values;
-
   double
+    *values,
     minimum,
     maximum,
     negative_range,
index bab1ef04b10f069d53ee257244186e2fde06aa92..78d9bcc31f13c12775602145af4f56100abd878d 100644 (file)
@@ -292,23 +292,23 @@ static inline PixelTrait GetPixelRedTraits(const Image *restrict image)
 static inline void GetPixelInfoPixel(const Image *restrict image,
   const Quantum *restrict pixel,PixelInfo *restrict pixel_info)
 {
-  pixel_info->red=(MagickRealType)
+  pixel_info->red=(double)
     pixel[image->channel_map[RedPixelChannel].offset];
-  pixel_info->green=(MagickRealType)
+  pixel_info->green=(double)
     pixel[image->channel_map[GreenPixelChannel].offset];
-  pixel_info->blue=(MagickRealType)
+  pixel_info->blue=(double)
     pixel[image->channel_map[BluePixelChannel].offset];
   pixel_info->black=0;
   if (image->channel_map[BlackPixelChannel].traits != UndefinedPixelTrait)
-    pixel_info->black=(MagickRealType)
+    pixel_info->black=(double)
       pixel[image->channel_map[BlackPixelChannel].offset];
   pixel_info->alpha=OpaqueAlpha;
   if (image->channel_map[AlphaPixelChannel].traits != UndefinedPixelTrait)
-    pixel_info->alpha=(MagickRealType)
+    pixel_info->alpha=(double)
       pixel[image->channel_map[AlphaPixelChannel].offset];
   pixel_info->index=0;
   if (image->channel_map[IndexPixelChannel].traits != UndefinedPixelTrait)
-    pixel_info->index=(MagickRealType)
+    pixel_info->index=(double)
       pixel[image->channel_map[IndexPixelChannel].offset];
 }
 
index 6abfc5a6e5a095df944150ef571e7c34fff1835a..da20ae92d6001572741d58a940a48bd34ff86a79 100644 (file)
@@ -82,14 +82,14 @@ typedef enum
 typedef struct _QuantumInfo
   QuantumInfo;
 
-static inline Quantum ClampToQuantum(const MagickRealType value)
+static inline Quantum ClampToQuantum(const double value)
 {
 #if defined(MAGICKCORE_HDRI_SUPPORT)
   return((Quantum) value);
 #else
   if (value <= 0.0)
     return((Quantum) 0);
-  if (value >= (MagickRealType) QuantumRange)
+  if (value >= (double) QuantumRange)
     return((Quantum) QuantumRange);
   return((Quantum) (value+0.5));
 #endif