1 /* 2 Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization 3 dedicated to making software imaging solutions freely available. 4 5 You may not use this file except in compliance with the License. You may 6 obtain a copy of the License at 7 8 https://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 view methods. 17 */ 18 #ifndef MAGICKCORE_CACHE_VIEW_H 19 #define MAGICKCORE_CACHE_VIEW_H 20 21 #include "MagickCore/pixel.h" 22 23 #if defined(__cplusplus) || defined(c_plusplus) 24 extern "C" { 25 #endif 26 27 typedef enum 28 { 29 UndefinedVirtualPixelMethod, 30 BackgroundVirtualPixelMethod, 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 51 extern MagickExport CacheView 52 *AcquireAuthenticCacheView(const Image *,ExceptionInfo *), 53 *AcquireVirtualCacheView(const Image *,ExceptionInfo *), 54 *CloneCacheView(const CacheView *), 55 *DestroyCacheView(CacheView *); 56 57 extern MagickExport ClassType 58 GetCacheViewStorageClass(const CacheView *) magick_attribute((__pure__)); 59 60 extern MagickExport ColorspaceType 61 GetCacheViewColorspace(const CacheView *) magick_attribute((__pure__)); 62 63 extern MagickExport const Image 64 *GetCacheViewImage(const CacheView *) magick_attribute((__pure__)); 65 66 extern MagickExport const Quantum 67 *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t, 68 const size_t,const size_t,ExceptionInfo *) magick_hot_spot, 69 *GetCacheViewVirtualPixelQueue(const CacheView *) magick_hot_spot; 70 71 extern MagickExport const void 72 *GetCacheViewVirtualMetacontent(const CacheView *) 73 magick_attribute((__pure__)); 74 75 extern MagickExport MagickBooleanType 76 GetOneCacheViewAuthenticPixel(const CacheView *,const ssize_t,const ssize_t, 77 Quantum *,ExceptionInfo *), 78 GetOneCacheViewVirtualMethodPixel(const CacheView *,const VirtualPixelMethod, 79 const ssize_t,const ssize_t,Quantum *,ExceptionInfo *), 80 GetOneCacheViewVirtualPixel(const CacheView *,const ssize_t,const ssize_t, 81 Quantum *,ExceptionInfo *), 82 GetOneCacheViewVirtualPixelInfo(const CacheView *,const ssize_t,const ssize_t, 83 PixelInfo *,ExceptionInfo *), 84 SetCacheViewStorageClass(CacheView *,const ClassType,ExceptionInfo *), 85 SetCacheViewVirtualPixelMethod(CacheView *magick_restrict, 86 const VirtualPixelMethod), 87 SyncCacheViewAuthenticPixels(CacheView *magick_restrict,ExceptionInfo *) 88 magick_hot_spot; 89 90 extern MagickExport MagickSizeType 91 GetCacheViewExtent(const CacheView *) magick_attribute((__pure__)); 92 93 extern MagickExport Quantum 94 *GetCacheViewAuthenticPixelQueue(CacheView *) magick_hot_spot, 95 *GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t, 96 const size_t,const size_t,ExceptionInfo *) magick_hot_spot, 97 *QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t, 98 const size_t,const size_t,ExceptionInfo *) magick_hot_spot; 99 100 extern MagickExport void 101 *GetCacheViewAuthenticMetacontent(CacheView *); 102 103 #if defined(__cplusplus) || defined(c_plusplus) 104 } 105 #endif 106 107 #endif 108