MagickCore  6.9.11-60
Convert, Edit, Or Compose Bitmap Images
cache-view.h
Go to the documentation of this file.
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 "magick/pixel.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 typedef enum
28 {
31  ConstantVirtualPixelMethod, /* deprecated */
48 
49 typedef struct _CacheView
50  CacheView;
51 
54  *AcquireCacheView(const Image *),
56  *CloneCacheView(const CacheView *),
58 
61 
64 
65 extern MagickExport const IndexPacket
67  magick_attribute((__pure__));
68 
69 extern MagickExport const PixelPacket
70  *GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t,
71  const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
73 
75  *GetCacheViewException(const CacheView *) magick_attribute((__pure__));
76 
79 
82  const ssize_t,PixelPacket *magick_restrict,ExceptionInfo *),
84  const VirtualPixelMethod,const ssize_t,const ssize_t,PixelPacket *,
85  ExceptionInfo *),
87  const ssize_t,PixelPacket *magick_restrict,ExceptionInfo *),
90  const VirtualPixelMethod),
93 
96 
97 extern MagickExport size_t
99 
102  *GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
103  const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
104  *QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
105  const size_t,const size_t,ExceptionInfo *) magick_hot_spot;
106 
107 #if defined(__cplusplus) || defined(c_plusplus)
108 }
109 #endif
110 
111 #endif
#define magick_restrict
Definition: MagickCore.h:41
Definition: cache-view.h:44
Definition: cache-view.h:41
MagickExport ClassType GetCacheViewStorageClass(const CacheView *) magick_attribute((__pure__))
Definition: cache-view.c:434
Definition: exception.h:102
MagickExport CacheView * AcquireCacheView(const Image *)
Definition: cache-view.h:33
VirtualPixelMethod
Definition: cache-view.h:27
MagickExport const PixelPacket * GetCacheViewVirtualPixelQueue(const CacheView *) magick_hot_spot
Definition: cache-view.c:677
Definition: cache-view.h:31
Definition: cache-view.h:46
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels(CacheView *magick_restrict, ExceptionInfo *) magick_hot_spot
Definition: cache-view.c:65
Definition: pixel.h:131
MagickExport MagickBooleanType GetOneCacheViewAuthenticPixel(const CacheView *magick_restrict, const ssize_t, const ssize_t, PixelPacket *magick_restrict, ExceptionInfo *)
MagickExport PixelPacket * GetCacheViewAuthenticPixelQueue(CacheView *) magick_hot_spot
MagickExport CacheView * CloneCacheView(const CacheView *)
Definition: image.h:152
MagickExport ExceptionInfo * GetCacheViewException(const CacheView *) magick_attribute((__pure__))
Definition: cache-view.c:361
Definition: cache-view.h:34
MagickExport CacheView * AcquireAuthenticCacheView(const Image *, ExceptionInfo *)
MagickBooleanType
Definition: magick-type.h:202
MagickExport MagickBooleanType GetOneCacheViewVirtualPixel(const CacheView *magick_restrict, const ssize_t, const ssize_t, PixelPacket *magick_restrict, ExceptionInfo *)
ClassType
Definition: magick-type.h:195
MagickExport MagickBooleanType SetCacheViewVirtualPixelMethod(CacheView *magick_restrict, const VirtualPixelMethod)
MagickExport MagickBooleanType GetOneCacheViewVirtualMethodPixel(const CacheView *, const VirtualPixelMethod, const ssize_t, const ssize_t, PixelPacket *, ExceptionInfo *)
Definition: cache-view.h:29
#define magick_hot_spot
Definition: method-attribute.h:122
MagickExport IndexPacket * GetCacheViewAuthenticIndexQueue(CacheView *) magick_attribute((__pure__))
Definition: cache-view.c:564
size_t MagickSizeType
Definition: magick-type.h:140
MagickExport ColorspaceType GetCacheViewColorspace(const CacheView *) magick_attribute((__pure__))
Definition: cache-view.c:328
Definition: cache-view.h:43
MagickExport MagickSizeType GetCacheViewExtent(const CacheView *)
Definition: cache-view.c:395
Definition: cache-view.h:36
MagickExport MagickBooleanType magick_attribute((deprecated))
MagickExport const IndexPacket * GetCacheViewVirtualIndexQueue(const CacheView *) magick_attribute((__pure__))
Definition: cache-view.c:638
Definition: cache-view.h:40
Definition: cache-view.h:45
MagickExport MagickBooleanType SetCacheViewStorageClass(CacheView *, const ClassType)
MagickExport CacheView * AcquireVirtualCacheView(const Image *, ExceptionInfo *)
Definition: cache-view.h:32
ColorspaceType
Definition: colorspace.h:25
MagickExport const PixelPacket * GetCacheViewVirtualPixels(const CacheView *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) magick_hot_spot
Definition: cache-view.h:37
MagickExport CacheView * DestroyCacheView(CacheView *)
Definition: cache-view.c:256
Definition: cache-view.h:38
MagickExport PixelPacket * GetCacheViewAuthenticPixels(CacheView *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) magick_hot_spot
#define MagickExport
Definition: method-attribute.h:80
MagickExport size_t GetCacheViewChannels(const CacheView *)
Definition: cache-view.c:295
Quantum IndexPacket
Definition: pixel.h:129
Definition: cache-view.h:42
Definition: cache-view.h:35
MagickExport PixelPacket * QueueCacheViewAuthenticPixels(CacheView *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) magick_hot_spot
Definition: cache-view.c:883
Definition: cache-view.h:30
Definition: cache-view.h:39