cache-view.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore cache view methods.
00017 */
00018 #ifndef MAGICKCORE_CACHE_VIEW_H
00019 #define MAGICKCORE_CACHE_VIEW_H
00020 
00021 #include "MagickCore/pixel.h"
00022 
00023 #if defined(__cplusplus) || defined(c_plusplus)
00024 extern "C" {
00025 #endif
00026 
00027 typedef enum
00028 {
00029   UndefinedVirtualPixelMethod,
00030   BackgroundVirtualPixelMethod,
00031   DitherVirtualPixelMethod,
00032   EdgeVirtualPixelMethod,
00033   MirrorVirtualPixelMethod,
00034   RandomVirtualPixelMethod,
00035   TileVirtualPixelMethod,
00036   TransparentVirtualPixelMethod,
00037   MaskVirtualPixelMethod,
00038   BlackVirtualPixelMethod,
00039   GrayVirtualPixelMethod,
00040   WhiteVirtualPixelMethod,
00041   HorizontalTileVirtualPixelMethod,
00042   VerticalTileVirtualPixelMethod,
00043   HorizontalTileEdgeVirtualPixelMethod,
00044   VerticalTileEdgeVirtualPixelMethod,
00045   CheckerTileVirtualPixelMethod
00046 } VirtualPixelMethod;
00047 
00048 typedef struct _CacheView
00049   CacheView;
00050 
00051 extern MagickExport CacheView
00052   *AcquireAuthenticCacheView(const Image *,ExceptionInfo *),
00053   *AcquireVirtualCacheView(const Image *,ExceptionInfo *),
00054   *CloneCacheView(const CacheView *),
00055   *DestroyCacheView(CacheView *);
00056 
00057 extern MagickExport ClassType
00058   GetCacheViewStorageClass(const CacheView *) magick_attribute((__pure__));
00059 
00060 extern MagickExport ColorspaceType
00061   GetCacheViewColorspace(const CacheView *) magick_attribute((__pure__));
00062 
00063 extern MagickExport const Image
00064   *GetCacheViewImage(const CacheView *) magick_attribute((__pure__));
00065 
00066 extern MagickExport const Quantum
00067   *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t,
00068     const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
00069   *GetCacheViewVirtualPixelQueue(const CacheView *) magick_hot_spot;
00070 
00071 extern MagickExport const void
00072   *GetCacheViewVirtualMetacontent(const CacheView *)
00073     magick_attribute((__pure__));
00074 
00075 extern MagickExport MagickBooleanType
00076   GetOneCacheViewAuthenticPixel(const CacheView *,const ssize_t,const ssize_t,
00077     Quantum *,ExceptionInfo *),
00078   GetOneCacheViewVirtualMethodPixel(const CacheView *,const VirtualPixelMethod,
00079     const ssize_t,const ssize_t,Quantum *,ExceptionInfo *),
00080   GetOneCacheViewVirtualPixel(const CacheView *,const ssize_t,const ssize_t,
00081     Quantum *,ExceptionInfo *),
00082   GetOneCacheViewVirtualPixelInfo(const CacheView *,const ssize_t,const ssize_t,
00083     PixelInfo *,ExceptionInfo *),
00084   SetCacheViewStorageClass(CacheView *,const ClassType,ExceptionInfo *),
00085   SetCacheViewVirtualPixelMethod(CacheView *magick_restrict,
00086     const VirtualPixelMethod),
00087   SyncCacheViewAuthenticPixels(CacheView *magick_restrict,ExceptionInfo *)
00088     magick_hot_spot;
00089 
00090 extern MagickExport MagickSizeType
00091   GetCacheViewExtent(const CacheView *) magick_attribute((__pure__));
00092 
00093 extern MagickExport Quantum
00094   *GetCacheViewAuthenticPixelQueue(CacheView *) magick_hot_spot,
00095   *GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
00096     const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
00097   *QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
00098     const size_t,const size_t,ExceptionInfo *) magick_hot_spot;
00099 
00100 extern MagickExport void
00101   *GetCacheViewAuthenticMetacontent(CacheView *);
00102 
00103 #if defined(__cplusplus) || defined(c_plusplus)
00104 }
00105 #endif
00106 
00107 #endif

Generated on 21 Sep 2020 for MagickCore by  doxygen 1.6.1