2 Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 MagickCore cache methods.
18 #ifndef _MAGICKCORE_CACHE_H
19 #define _MAGICKCORE_CACHE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include "magick/blob.h"
27 extern MagickExport const IndexPacket
28 *GetVirtualIndexQueue(const Image *);
30 extern MagickExport const PixelPacket
31 *GetVirtualPixels(const Image *,const long,const long,const unsigned long,
32 const unsigned long,ExceptionInfo *),
33 *GetVirtualPixelQueue(const Image *);
35 extern MagickExport IndexPacket
36 *GetAuthenticIndexQueue(const Image *);
38 extern MagickExport MagickBooleanType
39 GetOneVirtualMagickPixel(const Image *,const long,const long,
40 MagickPixelPacket *,ExceptionInfo *),
41 GetOneVirtualPixel(const Image *,const long,const long,PixelPacket *,
43 GetOneVirtualMethodPixel(const Image *,const VirtualPixelMethod,const long,
44 const long,PixelPacket *,ExceptionInfo *),
45 GetOneAuthenticPixel(Image *,const long,const long,PixelPacket *,
47 PersistPixelCache(Image *,const char *,const MagickBooleanType,
48 MagickOffsetType *,ExceptionInfo *),
49 SyncAuthenticPixels(Image *,ExceptionInfo *);
51 extern MagickExport MagickSizeType
52 GetImageExtent(const Image *);
54 extern MagickExport PixelPacket
55 *GetAuthenticPixels(Image *,const long,const long,const unsigned long,
56 const unsigned long,ExceptionInfo *),
57 *GetAuthenticPixelQueue(const Image *),
58 *QueueAuthenticPixels(Image *,const long,const long,const unsigned long,
59 const unsigned long,ExceptionInfo *);
61 extern MagickExport VirtualPixelMethod
62 GetPixelCacheVirtualMethod(const Image *),
63 SetPixelCacheVirtualMethod(const Image *,const VirtualPixelMethod);
65 extern MagickExport void
66 DestroyPixelCacheResources(void);
68 #if defined(__cplusplus) || defined(c_plusplus)