MagickCore  7.0.3
cache-view.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2019 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 {
47 
48 typedef struct _CacheView
49  CacheView;
50 
54  *CloneCacheView(const CacheView *),
56 
59 
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 
76  GetOneCacheViewAuthenticPixel(const CacheView *,const ssize_t,const ssize_t,
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 *),
86  const VirtualPixelMethod),
87  SyncCacheViewAuthenticPixels(CacheView *magick_restrict,ExceptionInfo *)
88  magick_hot_spot;
89 
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
#define magick_restrict
Definition: MagickCore.h:41
MagickExport CacheView * DestroyCacheView(CacheView *cache_view)
Definition: cache-view.c:252
MagickExport MagickSizeType GetCacheViewExtent(const CacheView *cache_view)
Definition: cache-view.c:448
MagickExport const Quantum * GetCacheViewVirtualPixelQueue(const CacheView *cache_view)
Definition: cache-view.c:601
MagickExport MagickBooleanType GetOneCacheViewVirtualPixel(const CacheView *cache_view, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
Definition: cache-view.c:773
MagickExport MagickBooleanType GetOneCacheViewVirtualPixelInfo(const CacheView *cache_view, const ssize_t x, const ssize_t y, PixelInfo *pixel, ExceptionInfo *exception)
Definition: cache-view.c:846
VirtualPixelMethod
Definition: cache-view.h:27
MagickExport ClassType GetCacheViewStorageClass(const CacheView *cache_view)
Definition: cache-view.c:523
MagickExport const Quantum * GetCacheViewVirtualPixels(const CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
Definition: cache-view.c:651
Definition: image.h:151
#define magick_attribute(x)
MagickExport Quantum * GetCacheViewAuthenticPixels(CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
Definition: cache-view.c:299
MagickBooleanType
Definition: magick-type.h:158
ClassType
Definition: magick-type.h:151
MagickExport void * GetCacheViewAuthenticMetacontent(CacheView *cache_view)
Definition: cache-view.c:342
MagickExport const void * GetCacheViewVirtualMetacontent(const CacheView *cache_view)
Definition: cache-view.c:558
size_t MagickSizeType
Definition: magick-type.h:130
MagickExport const Image * GetCacheViewImage(const CacheView *cache_view)
Definition: cache-view.c:490
MagickExport Quantum * QueueCacheViewAuthenticPixels(CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
Definition: cache-view.c:977
MagickExport CacheView * CloneCacheView(const CacheView *cache_view)
Definition: cache-view.c:205
MagickExport CacheView * AcquireVirtualCacheView(const Image *image, ExceptionInfo *exception)
Definition: cache-view.c:149
MagickExport MagickBooleanType SetCacheViewVirtualPixelMethod(CacheView *magick_restrict cache_view, const VirtualPixelMethod virtual_pixel_method)
Definition: cache-view.c:1060
unsigned short Quantum
Definition: magick-type.h:82
MagickExport Quantum * GetCacheViewAuthenticPixelQueue(CacheView *cache_view)
Definition: cache-view.c:379
ColorspaceType
Definition: colorspace.h:25
MagickExport MagickBooleanType SetCacheViewStorageClass(CacheView *cache_view, const ClassType storage_class, ExceptionInfo *exception)
Definition: cache-view.c:1023
#define MagickExport
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels(CacheView *magick_restrict cache_view, ExceptionInfo *exception)
Definition: cache-view.c:1100
MagickExport CacheView * AcquireAuthenticCacheView(const Image *image, ExceptionInfo *exception)
Definition: cache-view.c:112
MagickExport MagickBooleanType magick_hot_spot
Definition: cache-view.h:88
MagickExport ColorspaceType GetCacheViewColorspace(const CacheView *cache_view)
Definition: cache-view.c:414
MagickExport MagickBooleanType GetOneCacheViewVirtualMethodPixel(const CacheView *cache_view, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
Definition: cache-view.c:905
MagickExport MagickBooleanType GetOneCacheViewAuthenticPixel(const CacheView *cache_view, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
Definition: cache-view.c:701