]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 17 May 2012 18:16:56 +0000 (18:16 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 17 May 2012 18:16:56 +0000 (18:16 +0000)
MagickCore/cache.c

index 2c9157a4e158b00c4d1f4e6d59eff2196b310cac..8f34945cd2940e1e02a9d7ee3a6d15613df6948a 100644 (file)
@@ -123,9 +123,6 @@ static Cache
   GetImagePixelCache(Image *,const MagickBooleanType,ExceptionInfo *)
     magick_hot_spot;
 
-static CacheType
-  GetPixelCacheType(const Image *);
-
 static const Quantum
   *GetVirtualPixelCache(const Image *,const VirtualPixelMethod,const ssize_t,
     const ssize_t,const size_t,const size_t,ExceptionInfo *),
@@ -2000,7 +1997,15 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
 */
 MagickExport CacheType GetImagePixelCacheType(const Image *image)
 {
-  return(GetPixelCacheType(image));
+  CacheInfo
+    *cache_info;
+
+  assert(image != (Image *) NULL);
+  assert(image->signature == MagickSignature);
+  assert(image->cache != (Cache) NULL);
+  cache_info=(CacheInfo *) image->cache;
+  assert(cache_info->signature == MagickSignature);
+  return(cache_info->type);
 }
 \f
 /*
@@ -2698,7 +2703,7 @@ MagickPrivate void GetPixelCacheTileSize(const Image *image,size_t *width,
   cache_info=(CacheInfo *) image->cache;
   assert(cache_info->signature == MagickSignature);
   *width=2048UL/(cache_info->number_channels*sizeof(Quantum));
-  if (GetPixelCacheType(image) == DiskCache)
+  if (GetImagePixelCacheType(image) == DiskCache)
     *width=8192UL/(cache_info->number_channels*sizeof(Quantum));
   *height=(*width);
 }
@@ -2708,41 +2713,6 @@ MagickPrivate void GetPixelCacheTileSize(const Image *image,size_t *width,
 %                                                                             %
 %                                                                             %
 %                                                                             %
-+   G e t P i x e l C a c h e T y p e                                         %
-%                                                                             %
-%                                                                             %
-%                                                                             %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
-%  GetPixelCacheType() returns the pixel cache type (e.g. memory, disk, etc.).
-%
-%  The format of the GetPixelCacheType() method is:
-%
-%      CacheType GetPixelCacheType(const Image *image)
-%
-%  A description of each parameter follows:
-%
-%    o image: the image.
-%
-*/
-static CacheType GetPixelCacheType(const Image *image)
-{
-  CacheInfo
-    *cache_info;
-
-  assert(image != (Image *) NULL);
-  assert(image->signature == MagickSignature);
-  assert(image->cache != (Cache) NULL);
-  cache_info=(CacheInfo *) image->cache;
-  assert(cache_info->signature == MagickSignature);
-  return(cache_info->type);
-}
-\f
-/*
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%                                                                             %
-%                                                                             %
-%                                                                             %
 +   G e t P i x e l C a c h e V i r t u a l M e t h o d                       %
 %                                                                             %
 %                                                                             %