MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
opencl.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2018 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.
6  obtain a copy of the License at
7 
8  https://www.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 OpenCL public methods.
17 */
18 #ifndef MAGICKCORE_OPENCL_H
19 #define MAGICKCORE_OPENCL_H
20 
21 
22 #if defined(__cplusplus) || defined(c_plusplus)
23 extern "C" {
24 #endif
25 
26 /* OpenCL program modules */
27 typedef enum {
29  MAGICK_OPENCL_NUM_PROGRAMS /* !!! This has to be the last entry !!! */
31 
32 typedef enum {
38 
39 /* Parameter type accepted by SetMagickOpenCLEnvParm and GetMagickOpenCLEnvParm */
40 typedef enum {
41  MAGICK_OPENCL_ENV_PARAM_DEVICE /* cl_device_id (from OpenCL) */
42  , MAGICK_OPENCL_ENV_PARAM_OPENCL_DISABLED /* MagickBooleanType */
45  /* if true, disable the kernel binary cache */
47  /* if true, rerun microbenchmark in auto device selection */
51 
52 typedef struct _MagickCLEnv* MagickCLEnv;
53 
55  GetMagickOpenCLEnvParam(MagickCLEnv,MagickOpenCLEnvParam,size_t,void*,
56  ExceptionInfo*),
58  InitOpenCLEnv(MagickCLEnv,ExceptionInfo*),
59  SetMagickOpenCLEnvParam(MagickCLEnv,MagickOpenCLEnvParam,size_t,void*,
60  ExceptionInfo*);
61 
62 extern MagickExport MagickCLEnv
64 
65 #if defined(__cplusplus) || defined(c_plusplus)
66 }
67 #endif
68 
69 #endif
MagickExport MagickBooleanType InitOpenCLEnv(MagickCLEnv, ExceptionInfo *)
MagickExport MagickBooleanType InitImageMagickOpenCL(ImageMagickOpenCLMode, void *, void *, ExceptionInfo *)
MagickExport MagickCLEnv GetDefaultOpenCLEnv()
Definition: opencl.c:3051
Definition: opencl.h:29
Definition: exception.h:102
MagickExport MagickBooleanType SetMagickOpenCLEnvParam(MagickCLEnv, MagickOpenCLEnvParam, size_t, void *, ExceptionInfo *)
Definition: opencl.h:41
Definition: opencl.h:34
MagickExport MagickBooleanType GetMagickOpenCLEnvParam(MagickCLEnv, MagickOpenCLEnvParam, size_t, void *, ExceptionInfo *)
struct _MagickCLEnv * MagickCLEnv
Definition: opencl.h:52
MagickBooleanType
Definition: magick-type.h:189
MagickOpenCLProgram
Definition: opencl.h:27
MagickOpenCLEnvParam
Definition: opencl.h:40
Definition: opencl.h:28
ImageMagickOpenCLMode
Definition: opencl.h:32
Definition: opencl.h:33
#define MagickExport
Definition: method-attribute.h:98
Definition: opencl.h:35
Definition: opencl.c:3044