cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
Cristy | d842011 | 2021-01-01 14:52:00 -0500 | [diff] [blame] | 2 | Copyright 1999-2021 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 | |
Cristy | 57b308b | 2019-01-19 17:53:40 -0500 | [diff] [blame] | 5 | You may not use this file except in compliance with the License. You may |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6 | obtain a copy of the License at |
| 7 | |
Cristy | 9ddfcca | 2018-09-09 19:46:34 -0400 | [diff] [blame] | 8 | https://imagemagick.org/script/license.php |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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 view methods. |
| 17 | */ |
Cristy | 83bceaa | 2016-06-03 20:39:35 -0400 | [diff] [blame] | 18 | #ifndef MAGICKCORE_CACHE_VIEW_H |
| 19 | #define MAGICKCORE_CACHE_VIEW_H |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20 | |
cristy | 6398ec7 | 2013-11-28 02:00:27 +0000 | [diff] [blame] | 21 | #include "MagickCore/pixel.h" |
| 22 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23 | #if defined(__cplusplus) || defined(c_plusplus) |
| 24 | extern "C" { |
| 25 | #endif |
| 26 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27 | typedef enum |
| 28 | { |
| 29 | UndefinedVirtualPixelMethod, |
| 30 | BackgroundVirtualPixelMethod, |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31 | DitherVirtualPixelMethod, |
| 32 | EdgeVirtualPixelMethod, |
| 33 | MirrorVirtualPixelMethod, |
| 34 | RandomVirtualPixelMethod, |
| 35 | TileVirtualPixelMethod, |
| 36 | TransparentVirtualPixelMethod, |
| 37 | MaskVirtualPixelMethod, |
| 38 | BlackVirtualPixelMethod, |
| 39 | GrayVirtualPixelMethod, |
| 40 | WhiteVirtualPixelMethod, |
| 41 | HorizontalTileVirtualPixelMethod, |
| 42 | VerticalTileVirtualPixelMethod, |
| 43 | HorizontalTileEdgeVirtualPixelMethod, |
| 44 | VerticalTileEdgeVirtualPixelMethod, |
| 45 | CheckerTileVirtualPixelMethod |
| 46 | } VirtualPixelMethod; |
| 47 | |
| 48 | typedef struct _CacheView |
| 49 | CacheView; |
| 50 | |
cristy | 0d26717 | 2011-04-25 20:13:48 +0000 | [diff] [blame] | 51 | extern MagickExport CacheView |
cristy | 46ff267 | 2012-12-14 15:32:26 +0000 | [diff] [blame] | 52 | *AcquireAuthenticCacheView(const Image *,ExceptionInfo *), |
| 53 | *AcquireVirtualCacheView(const Image *,ExceptionInfo *), |
cristy | 0d26717 | 2011-04-25 20:13:48 +0000 | [diff] [blame] | 54 | *CloneCacheView(const CacheView *), |
| 55 | *DestroyCacheView(CacheView *); |
| 56 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 57 | extern MagickExport ClassType |
Cristy | 94eb2ec | 2018-11-11 10:46:30 -0500 | [diff] [blame] | 58 | GetCacheViewStorageClass(const CacheView *) magick_attribute((__pure__)); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 59 | |
| 60 | extern MagickExport ColorspaceType |
Cristy | 94eb2ec | 2018-11-11 10:46:30 -0500 | [diff] [blame] | 61 | GetCacheViewColorspace(const CacheView *) magick_attribute((__pure__)); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 62 | |
cristy | e751662 | 2012-04-29 14:22:45 +0000 | [diff] [blame] | 63 | extern MagickExport const Image |
Cristy | 94eb2ec | 2018-11-11 10:46:30 -0500 | [diff] [blame] | 64 | *GetCacheViewImage(const CacheView *) magick_attribute((__pure__)); |
cristy | e751662 | 2012-04-29 14:22:45 +0000 | [diff] [blame] | 65 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 66 | extern MagickExport const Quantum |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 67 | *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t, |
cristy | 19596d6 | 2012-02-19 00:24:59 +0000 | [diff] [blame] | 68 | const size_t,const size_t,ExceptionInfo *) magick_hot_spot, |
| 69 | *GetCacheViewVirtualPixelQueue(const CacheView *) magick_hot_spot; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 70 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 71 | extern MagickExport const void |
Cristy | 94eb2ec | 2018-11-11 10:46:30 -0500 | [diff] [blame] | 72 | *GetCacheViewVirtualMetacontent(const CacheView *) |
| 73 | magick_attribute((__pure__)); |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 74 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 75 | extern MagickExport MagickBooleanType |
cristy | 99ed669 | 2015-05-31 17:11:33 +0000 | [diff] [blame] | 76 | GetOneCacheViewAuthenticPixel(const CacheView *,const ssize_t,const ssize_t, |
| 77 | Quantum *,ExceptionInfo *), |
cristy | 2ed42f6 | 2011-10-02 19:49:57 +0000 | [diff] [blame] | 78 | GetOneCacheViewVirtualMethodPixel(const CacheView *,const VirtualPixelMethod, |
| 79 | const ssize_t,const ssize_t,Quantum *,ExceptionInfo *), |
cristy | 99ed669 | 2015-05-31 17:11:33 +0000 | [diff] [blame] | 80 | GetOneCacheViewVirtualPixel(const CacheView *,const ssize_t,const ssize_t, |
| 81 | Quantum *,ExceptionInfo *), |
cristy | f05d494 | 2012-03-17 16:26:09 +0000 | [diff] [blame] | 82 | GetOneCacheViewVirtualPixelInfo(const CacheView *,const ssize_t,const ssize_t, |
| 83 | PixelInfo *,ExceptionInfo *), |
cristy | c82a27b | 2011-10-21 01:07:16 +0000 | [diff] [blame] | 84 | SetCacheViewStorageClass(CacheView *,const ClassType,ExceptionInfo *), |
dirk | 05d2ff7 | 2015-11-18 23:13:43 +0100 | [diff] [blame] | 85 | SetCacheViewVirtualPixelMethod(CacheView *magick_restrict, |
| 86 | const VirtualPixelMethod), |
| 87 | SyncCacheViewAuthenticPixels(CacheView *magick_restrict,ExceptionInfo *) |
cristy | a29f2b8 | 2015-05-30 14:10:30 +0000 | [diff] [blame] | 88 | magick_hot_spot; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 89 | |
| 90 | extern MagickExport MagickSizeType |
Cristy | 94eb2ec | 2018-11-11 10:46:30 -0500 | [diff] [blame] | 91 | GetCacheViewExtent(const CacheView *) magick_attribute((__pure__)); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 92 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 93 | extern MagickExport Quantum |
cristy | 19596d6 | 2012-02-19 00:24:59 +0000 | [diff] [blame] | 94 | *GetCacheViewAuthenticPixelQueue(CacheView *) magick_hot_spot, |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 95 | *GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t, |
cristy | 19596d6 | 2012-02-19 00:24:59 +0000 | [diff] [blame] | 96 | const size_t,const size_t,ExceptionInfo *) magick_hot_spot, |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 97 | *QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t, |
cristy | 19596d6 | 2012-02-19 00:24:59 +0000 | [diff] [blame] | 98 | const size_t,const size_t,ExceptionInfo *) magick_hot_spot; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 99 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 100 | extern MagickExport void |
| 101 | *GetCacheViewAuthenticMetacontent(CacheView *); |
| 102 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 103 | #if defined(__cplusplus) || defined(c_plusplus) |
| 104 | } |
| 105 | #endif |
| 106 | |
| 107 | #endif |