]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 26 Mar 2011 01:35:35 +0000 (01:35 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 26 Mar 2011 01:35:35 +0000 (01:35 +0000)
magick/pixel.c
magick/pixel.h

index 2bf40c46589ea03d9c33074008ba54ae21475ee7..3ed231901f0a3ddf4ec7d115f044b7265aa06e52 100644 (file)
@@ -3394,7 +3394,7 @@ MagickExport MagickBooleanType ImportImagePixels(Image *image,
 %  The format of the InterpolatePixelPacket method is:
 %
 %      MagickBooleanType InterpolatePixelPacket(const Image *image,
-%        CacheView *image_view,const InterpolatePixelMethod method,
+%        const CacheView *image_view,const InterpolatePixelMethod method,
 %        const double x,const double y,MagickPixelPacket *pixel,
 %        ExceptionInfo *exception)
 %
@@ -3485,7 +3485,7 @@ static inline double MeshInterpolate(const PointInfo *delta,const double p,
   return(delta->x*x+delta->y*y+(1.0-delta->x-delta->y)*p);
 }
 
-static inline ssize_t NearestNeighbor(MagickRealType x)
+static inline ssize_t NearestNeighbor(const MagickRealType x)
 {
   if (x >= 0.0)
     return((ssize_t) (x+0.5));
@@ -3493,8 +3493,9 @@ static inline ssize_t NearestNeighbor(MagickRealType x)
 }
 
 MagickExport MagickBooleanType InterpolatePixelPacket(const Image *image,
-  CacheView *image_view,const InterpolatePixelMethod method,const double x,
-  const double y,MagickPixelPacket *pixel,ExceptionInfo *exception)
+  const CacheView *image_view,const InterpolatePixelMethod method,
+  const double x,const double y,MagickPixelPacket *pixel,
+  ExceptionInfo *exception)
 {
   MagickBooleanType
     status;
index fdf6523bbf4091cd529ca10cf7a446bbda4cf620..861f3f49e3bfdda95ab886e2e30768ab5c79d67c 100644 (file)
@@ -154,7 +154,7 @@ extern MagickExport MagickBooleanType
     const size_t,const char *,const StorageType,void *,ExceptionInfo *),
   ImportImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
     const size_t,const char *,const StorageType,const void *),
-  InterpolatePixelPacket(const Image *,CacheView_ *,
+  InterpolatePixelPacket(const Image *,const CacheView_ *,
     const InterpolatePixelMethod,const double,const double,MagickPixelPacket *,
     ExceptionInfo *);