cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
cristy | 45ef08f | 2012-12-07 13:13:34 +0000 | [diff] [blame] | 2 | Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3 | 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) |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 25 | #include "MagickCore/blob.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26 | |
cristy | ce1fe79 | 2012-05-16 15:58:37 +0000 | [diff] [blame] | 27 | typedef enum |
| 28 | { |
| 29 | UndefinedCache, |
cristy | ce1fe79 | 2012-05-16 15:58:37 +0000 | [diff] [blame] | 30 | DiskCache, |
cristy | 57343c4 | 2013-01-06 23:41:05 +0000 | [diff] [blame] | 31 | DistributedCache, |
| 32 | MapCache, |
| 33 | MemoryCache, |
cristy | ce1fe79 | 2012-05-16 15:58:37 +0000 | [diff] [blame] | 34 | PingCache |
| 35 | } CacheType; |
| 36 | |
cristy | 5bef4cd | 2012-05-17 18:08:56 +0000 | [diff] [blame] | 37 | extern MagickExport CacheType |
cristy | ce1fe79 | 2012-05-16 15:58:37 +0000 | [diff] [blame] | 38 | GetImagePixelCacheType(const Image *); |
| 39 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 40 | extern MagickExport const Quantum |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 41 | *GetVirtualPixels(const Image *,const ssize_t,const ssize_t,const size_t, |
cristy | f7836bf | 2012-02-20 16:32:47 +0000 | [diff] [blame] | 42 | const size_t,ExceptionInfo *) magick_hot_spot, |
| 43 | *GetVirtualPixelQueue(const Image *) magick_hot_spot; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 44 | |
cristy | d43a46b | 2010-01-21 02:13:41 +0000 | [diff] [blame] | 45 | extern MagickExport const void |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 46 | *GetVirtualMetacontent(const Image *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 47 | |
| 48 | extern MagickExport MagickBooleanType |
cristy | 2ed42f6 | 2011-10-02 19:49:57 +0000 | [diff] [blame] | 49 | GetOneAuthenticPixel(Image *,const ssize_t,const ssize_t,Quantum *, |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 50 | ExceptionInfo *), |
cristy | f05d494 | 2012-03-17 16:26:09 +0000 | [diff] [blame] | 51 | 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 *), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 55 | PersistPixelCache(Image *,const char *,const MagickBooleanType, |
| 56 | MagickOffsetType *,ExceptionInfo *), |
cristy | f7836bf | 2012-02-20 16:32:47 +0000 | [diff] [blame] | 57 | SyncAuthenticPixels(Image *,ExceptionInfo *) magick_hot_spot; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 58 | |
| 59 | extern MagickExport MagickSizeType |
| 60 | GetImageExtent(const Image *); |
| 61 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 62 | extern MagickExport Quantum |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 63 | *GetAuthenticPixels(Image *,const ssize_t,const ssize_t,const size_t, |
cristy | f7836bf | 2012-02-20 16:32:47 +0000 | [diff] [blame] | 64 | const size_t,ExceptionInfo *) magick_hot_spot, |
| 65 | *GetAuthenticPixelQueue(const Image *) magick_hot_spot, |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 66 | *QueueAuthenticPixels(Image *,const ssize_t,const ssize_t,const size_t, |
cristy | f7836bf | 2012-02-20 16:32:47 +0000 | [diff] [blame] | 67 | const size_t,ExceptionInfo *) magick_hot_spot; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 68 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 69 | extern MagickExport void |
cristy | d1dd6e4 | 2011-09-04 01:46:08 +0000 | [diff] [blame] | 70 | *GetAuthenticMetacontent(const Image *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 71 | |
| 72 | #if defined(__cplusplus) || defined(c_plusplus) |
| 73 | } |
| 74 | #endif |
| 75 | |
| 76 | #endif |