blob: 8c2311c947799a50e71d7aff4b21bf7448ee0399 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy45ef08f2012-12-07 13:13:34 +00002 Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
8 http://www.imagemagick.org/script/license.php
9
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.
15
16 MagickCore cache methods.
17*/
18#ifndef _MAGICKCORE_CACHE_H
19#define _MAGICKCORE_CACHE_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
cristy4c08aed2011-07-01 19:47:50 +000025#include "MagickCore/blob.h"
cristy3ed852e2009-09-05 21:47:34 +000026
cristyce1fe792012-05-16 15:58:37 +000027typedef enum
28{
29 UndefinedCache,
cristyce1fe792012-05-16 15:58:37 +000030 DiskCache,
cristy57343c42013-01-06 23:41:05 +000031 DistributedCache,
32 MapCache,
33 MemoryCache,
cristyce1fe792012-05-16 15:58:37 +000034 PingCache
35} CacheType;
36
cristy5bef4cd2012-05-17 18:08:56 +000037extern MagickExport CacheType
cristyce1fe792012-05-16 15:58:37 +000038 GetImagePixelCacheType(const Image *);
39
cristy4c08aed2011-07-01 19:47:50 +000040extern MagickExport const Quantum
cristybb503372010-05-27 20:51:26 +000041 *GetVirtualPixels(const Image *,const ssize_t,const ssize_t,const size_t,
cristyf7836bf2012-02-20 16:32:47 +000042 const size_t,ExceptionInfo *) magick_hot_spot,
43 *GetVirtualPixelQueue(const Image *) magick_hot_spot;
cristy3ed852e2009-09-05 21:47:34 +000044
cristyd43a46b2010-01-21 02:13:41 +000045extern MagickExport const void
cristy4c08aed2011-07-01 19:47:50 +000046 *GetVirtualMetacontent(const Image *);
cristy3ed852e2009-09-05 21:47:34 +000047
48extern MagickExport MagickBooleanType
cristy2ed42f62011-10-02 19:49:57 +000049 GetOneAuthenticPixel(Image *,const ssize_t,const ssize_t,Quantum *,
cristy3ed852e2009-09-05 21:47:34 +000050 ExceptionInfo *),
cristyf05d4942012-03-17 16:26:09 +000051 GetOneVirtualPixel(const Image *,const ssize_t,const ssize_t,Quantum *,
52 ExceptionInfo *),
53 GetOneVirtualPixelInfo(const Image *,const VirtualPixelMethod,
54 const ssize_t,const ssize_t,PixelInfo *,ExceptionInfo *),
cristy3ed852e2009-09-05 21:47:34 +000055 PersistPixelCache(Image *,const char *,const MagickBooleanType,
56 MagickOffsetType *,ExceptionInfo *),
cristyf7836bf2012-02-20 16:32:47 +000057 SyncAuthenticPixels(Image *,ExceptionInfo *) magick_hot_spot;
cristy3ed852e2009-09-05 21:47:34 +000058
59extern MagickExport MagickSizeType
60 GetImageExtent(const Image *);
61
cristy4c08aed2011-07-01 19:47:50 +000062extern MagickExport Quantum
cristybb503372010-05-27 20:51:26 +000063 *GetAuthenticPixels(Image *,const ssize_t,const ssize_t,const size_t,
cristyf7836bf2012-02-20 16:32:47 +000064 const size_t,ExceptionInfo *) magick_hot_spot,
65 *GetAuthenticPixelQueue(const Image *) magick_hot_spot,
cristybb503372010-05-27 20:51:26 +000066 *QueueAuthenticPixels(Image *,const ssize_t,const ssize_t,const size_t,
cristyf7836bf2012-02-20 16:32:47 +000067 const size_t,ExceptionInfo *) magick_hot_spot;
cristy3ed852e2009-09-05 21:47:34 +000068
cristy3ed852e2009-09-05 21:47:34 +000069extern MagickExport void
cristyd1dd6e42011-09-04 01:46:08 +000070 *GetAuthenticMetacontent(const Image *);
cristy3ed852e2009-09-05 21:47:34 +000071
72#if defined(__cplusplus) || defined(c_plusplus)
73}
74#endif
75
76#endif