blob: 4e3c92fe1c1442bfdd78c2c408438f6df060db0d [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy1454be72011-12-19 01:52:48 +00002 Copyright 1999-2012 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,
30 MemoryCache,
31 MapCache,
32 DiskCache,
33 PingCache
34} CacheType;
35
cristy5bef4cd2012-05-17 18:08:56 +000036extern MagickExport CacheType
cristyce1fe792012-05-16 15:58:37 +000037 GetImagePixelCacheType(const Image *);
38
cristy4c08aed2011-07-01 19:47:50 +000039extern MagickExport const Quantum
cristybb503372010-05-27 20:51:26 +000040 *GetVirtualPixels(const Image *,const ssize_t,const ssize_t,const size_t,
cristyf7836bf2012-02-20 16:32:47 +000041 const size_t,ExceptionInfo *) magick_hot_spot,
42 *GetVirtualPixelQueue(const Image *) magick_hot_spot;
cristy3ed852e2009-09-05 21:47:34 +000043
cristyd43a46b2010-01-21 02:13:41 +000044extern MagickExport const void
cristy4c08aed2011-07-01 19:47:50 +000045 *GetVirtualMetacontent(const Image *);
cristy3ed852e2009-09-05 21:47:34 +000046
47extern MagickExport MagickBooleanType
cristy2ed42f62011-10-02 19:49:57 +000048 GetOneAuthenticPixel(Image *,const ssize_t,const ssize_t,Quantum *,
cristy3ed852e2009-09-05 21:47:34 +000049 ExceptionInfo *),
cristyf05d4942012-03-17 16:26:09 +000050 GetOneVirtualPixel(const Image *,const ssize_t,const ssize_t,Quantum *,
51 ExceptionInfo *),
52 GetOneVirtualPixelInfo(const Image *,const VirtualPixelMethod,
53 const ssize_t,const ssize_t,PixelInfo *,ExceptionInfo *),
cristy3ed852e2009-09-05 21:47:34 +000054 PersistPixelCache(Image *,const char *,const MagickBooleanType,
55 MagickOffsetType *,ExceptionInfo *),
cristyf7836bf2012-02-20 16:32:47 +000056 SyncAuthenticPixels(Image *,ExceptionInfo *) magick_hot_spot;
cristy3ed852e2009-09-05 21:47:34 +000057
58extern MagickExport MagickSizeType
59 GetImageExtent(const Image *);
60
cristy4c08aed2011-07-01 19:47:50 +000061extern MagickExport Quantum
cristybb503372010-05-27 20:51:26 +000062 *GetAuthenticPixels(Image *,const ssize_t,const ssize_t,const size_t,
cristyf7836bf2012-02-20 16:32:47 +000063 const size_t,ExceptionInfo *) magick_hot_spot,
64 *GetAuthenticPixelQueue(const Image *) magick_hot_spot,
cristybb503372010-05-27 20:51:26 +000065 *QueueAuthenticPixels(Image *,const ssize_t,const ssize_t,const size_t,
cristyf7836bf2012-02-20 16:32:47 +000066 const size_t,ExceptionInfo *) magick_hot_spot;
cristy3ed852e2009-09-05 21:47:34 +000067
cristy3ed852e2009-09-05 21:47:34 +000068extern MagickExport void
cristyd1dd6e42011-09-04 01:46:08 +000069 *GetAuthenticMetacontent(const Image *);
cristy3ed852e2009-09-05 21:47:34 +000070
71#if defined(__cplusplus) || defined(c_plusplus)
72}
73#endif
74
75#endif