]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/pixel-accessor.h
(no commit message)
[imagemagick] / MagickCore / pixel-accessor.h
index 257fe4fc2efd6574854760366b5b66d902b70023..d6054083ee1a37ba91a086dba01f89d496f23cad 100644 (file)
 #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"
@@ -30,6 +25,10 @@ extern "C" {
 #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,
@@ -200,7 +199,8 @@ static inline MagickRealType GetPixelInfoIntensity(
 {
   if (pixel_info->colorspace == GRAYColorspace)
     return(pixel_info->red);
-  return(0.212656*pixel_info->red+0.715158*pixel_info->green+0.072186*pixel_info->blue);
+  return(0.212656*pixel_info->red+0.715158*pixel_info->green+0.072186*
+    pixel_info->blue);
 }
 
 static inline MagickRealType GetPixelInfoLuma(const PixelInfo *restrict pixel)