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

index 685594f845a7d43de43bf194b32ab2d7c815494f..71d6768084105b23670093af896e9adfc4bd767e 100644 (file)
@@ -197,9 +197,6 @@ extern MagickPrivate Cache
   DestroyPixelCache(Cache),
   ReferencePixelCache(Cache);
 
-extern MagickPrivate CacheType
-  GetPixelCacheType(const Image *);
-
 extern MagickPrivate ClassType
   GetPixelCacheStorageClass(const Cache);
 
index 050d1880e9ee57c9ef990ba95053972715d15b9f..2c9157a4e158b00c4d1f4e6d59eff2196b310cac 100644 (file)
@@ -123,6 +123,9 @@ 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 *),
@@ -1988,23 +1991,16 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
 %
 %  The format of the GetImagePixelCacheType() method is:
 %
-%      const CacheType GetImagePixelCacheType(const Image *image)
+%      CacheType GetImagePixelCacheType(const Image *image)
 %
 %  A description of each parameter follows:
 %
 %    o image: the image.
 %
 */
-MagickExport const CacheType GetImagePixelCacheType(const Image *image)
+MagickExport CacheType GetImagePixelCacheType(const Image *image)
 {
-  CacheInfo
-    *cache_info;
-
-  assert(image != (Image *) NULL);
-  assert(image->signature == MagickSignature);
-  assert(image->cache != (Cache) NULL);
-  cache_info=(CacheInfo *) image->cache;
-  return(cache_info->type);
+  return(GetPixelCacheType(image));
 }
 \f
 /*
@@ -2729,7 +2725,7 @@ MagickPrivate void GetPixelCacheTileSize(const Image *image,size_t *width,
 %    o image: the image.
 %
 */
-MagickPrivate CacheType GetPixelCacheType(const Image *image)
+static CacheType GetPixelCacheType(const Image *image)
 {
   CacheInfo
     *cache_info;
index b1aa78ead43b05bcdd199976d243c2e7b0898a29..4e3c92fe1c1442bfdd78c2c408438f6df060db0d 100644 (file)
@@ -33,7 +33,7 @@ typedef enum
   PingCache
 } CacheType;
 
-extern MagickExport const CacheType
+extern MagickExport CacheType
   GetImagePixelCacheType(const Image *);
 
 extern MagickExport const Quantum