JuliaGPU / ArrayFire.jl
1
# Automatically generated using Clang.jl wrap_c, version 0.0.0
2

3
export AF_BACKEND_CPU, AF_BACKEND_CUDA, AF_BACKEND_DEFAULT, AF_BACKEND_OPENCL, AF_BINARY_ADD, AF_BINARY_MAX
4
export AF_BINARY_MIN, AF_BINARY_MUL, AF_CANNY_THRESHOLD_AUTO_OTSU, AF_CANNY_THRESHOLD_MANUAL, AF_COLORMAP_BLUE
5
export AF_COLORMAP_COLORS, AF_COLORMAP_DEFAULT, AF_COLORMAP_HEAT, AF_COLORMAP_INFERNO, AF_COLORMAP_MAGMA
6
export AF_COLORMAP_MOOD, AF_COLORMAP_PLASMA, AF_COLORMAP_RED, AF_COLORMAP_SPECTRUM, AF_COLORMAP_VIRIDIS
7
export AF_CONNECTIVITY_4, AF_CONNECTIVITY_8, AF_CONV_AUTO, AF_CONV_DEFAULT, AF_CONV_EXPAND, AF_CONV_FREQ
8
export AF_CONV_SPATIAL, AF_DIFFUSION_DEFAULT, AF_DIFFUSION_GRAD, AF_DIFFUSION_MCDE, AF_ERR_ARG, AF_ERR_ARR_BKND_MISMATCH
9
export AF_ERR_BATCH, AF_ERR_DEVICE, AF_ERR_DIFF_TYPE, AF_ERR_DRIVER, AF_ERR_INTERNAL, AF_ERR_INVALID_ARRAY
10
export AF_ERR_LOAD_LIB, AF_ERR_LOAD_SYM, AF_ERR_NONFREE, AF_ERR_NOT_CONFIGURED, AF_ERR_NOT_SUPPORTED, AF_ERR_NO_DBL
11
export AF_ERR_NO_GFX, AF_ERR_NO_MEM, AF_ERR_RUNTIME, AF_ERR_SIZE, AF_ERR_TYPE, AF_ERR_UNKNOWN, AF_FIF_BMP
12
export AF_FIF_EXR, AF_FIF_HDR, AF_FIF_ICO, AF_FIF_JNG, AF_FIF_JP2, AF_FIF_JPEG, AF_FIF_PNG, AF_FIF_PPM
13
export AF_FIF_PPMRAW, AF_FIF_PSD, AF_FIF_RAW, AF_FIF_TIFF, AF_FLUX_DEFAULT, AF_FLUX_EXPONENTIAL, AF_FLUX_QUADRATIC
14
export AF_GRAY, AF_HOMOGRAPHY_LMEDS, AF_HOMOGRAPHY_RANSAC, AF_HSV, AF_ID, AF_INTERP_BICUBIC, AF_INTERP_BICUBIC_SPLINE
15
export AF_INTERP_BILINEAR, AF_INTERP_BILINEAR_COSINE, AF_INTERP_CUBIC, AF_INTERP_CUBIC_SPLINE, AF_INTERP_LINEAR
16
export AF_INTERP_LINEAR_COSINE, AF_INTERP_LOWER, AF_INTERP_NEAREST, AF_LSAD, AF_LSSD, AF_MARKER_CIRCLE
17
export AF_MARKER_CROSS, AF_MARKER_NONE, AF_MARKER_PLUS, AF_MARKER_POINT, AF_MARKER_SQUARE, AF_MARKER_STAR
18
export AF_MARKER_TRIANGLE, AF_MAT_BLOCK_DIAG, AF_MAT_CONJ, AF_MAT_CTRANS, AF_MAT_DIAG_UNIT, AF_MAT_LOWER
19
export AF_MAT_NONE, AF_MAT_ORTHOG, AF_MAT_POSDEF, AF_MAT_SYM, AF_MAT_TRANS, AF_MAT_TRI_DIAG, AF_MAT_UPPER
20
export AF_MOMENT_FIRST_ORDER, AF_MOMENT_M00, AF_MOMENT_M01, AF_MOMENT_M10, AF_MOMENT_M11, AF_NCC, AF_NORM_EUCLID
21
export AF_NORM_MATRIX_1, AF_NORM_MATRIX_2, AF_NORM_MATRIX_INF, AF_NORM_MATRIX_L_PQ, AF_NORM_VECTOR_1, AF_NORM_VECTOR_2
22
export AF_NORM_VECTOR_INF, AF_NORM_VECTOR_P, AF_PAD_SYM, AF_PAD_ZERO, AF_RANDOM_ENGINE_DEFAULT, AF_RANDOM_ENGINE_MERSENNE
23
export AF_RANDOM_ENGINE_MERSENNE_GP11213, AF_RANDOM_ENGINE_PHILOX, AF_RANDOM_ENGINE_PHILOX_4X32_10, AF_RANDOM_ENGINE_THREEFRY
24
export AF_RANDOM_ENGINE_THREEFRY_2X32_16, AF_RGB, AF_SAD, AF_SHD, AF_SSD, AF_STORAGE_COO, AF_STORAGE_CSC
25
export AF_STORAGE_CSR, AF_STORAGE_DENSE, AF_SUCCESS, AF_TOPK_DEFAULT, AF_TOPK_MAX, AF_TOPK_MIN, AF_YCC_2020
26
export AF_YCC_601, AF_YCC_709, AF_YCbCr, AF_ZNCC, AF_ZSAD, AF_ZSSD, afDevice, afHost, af_array, af_backend
27
export af_binary_op, af_border_type, af_canny_threshold, af_colormap, af_connectivity, af_conv_domain
28
export af_conv_mode, af_cspace_t, af_diffusion_eq, af_dtype, af_err, af_features, af_flux_function, af_homography_type
29
export af_image_format, af_interp_type, af_marker_type, af_mat_prop, af_match_type, af_moment_type, af_norm_type
30
export af_random_engine, af_random_engine_type, af_someenum_t, af_source, af_storage, af_topk_function
31
export af_window, af_ycc_std, b8, c32, c64, dim_t, f16, f32, f64, intl, s16, s32, s64, u16, u32, u64, u8, uintl
32

33
const dim_t = Clonglong
34
const intl = Clonglong
35
const uintl = Culonglong
36

37
# begin enum af_err
38
const af_err = UInt32
39
const AF_SUCCESS = (UInt32)(0)
40
const AF_ERR_NO_MEM = (UInt32)(101)
41
const AF_ERR_DRIVER = (UInt32)(102)
42
const AF_ERR_RUNTIME = (UInt32)(103)
43
const AF_ERR_INVALID_ARRAY = (UInt32)(201)
44
const AF_ERR_ARG = (UInt32)(202)
45
const AF_ERR_SIZE = (UInt32)(203)
46
const AF_ERR_TYPE = (UInt32)(204)
47
const AF_ERR_DIFF_TYPE = (UInt32)(205)
48
const AF_ERR_BATCH = (UInt32)(207)
49
const AF_ERR_DEVICE = (UInt32)(208)
50
const AF_ERR_NOT_SUPPORTED = (UInt32)(301)
51
const AF_ERR_NOT_CONFIGURED = (UInt32)(302)
52
const AF_ERR_NONFREE = (UInt32)(303)
53
const AF_ERR_NO_DBL = (UInt32)(401)
54
const AF_ERR_NO_GFX = (UInt32)(402)
55
const AF_ERR_LOAD_LIB = (UInt32)(501)
56
const AF_ERR_LOAD_SYM = (UInt32)(502)
57
const AF_ERR_ARR_BKND_MISMATCH = (UInt32)(503)
58
const AF_ERR_INTERNAL = (UInt32)(998)
59
const AF_ERR_UNKNOWN = (UInt32)(999)
60
# end enum af_err
61

62
# begin enum af_dtype
63
const af_dtype = UInt32
64
const f32 = (UInt32)(0)
65
const c32 = (UInt32)(1)
66
const f64 = (UInt32)(2)
67
const c64 = (UInt32)(3)
68
const b8 = (UInt32)(4)
69
const s32 = (UInt32)(5)
70
const u32 = (UInt32)(6)
71
const u8 = (UInt32)(7)
72
const s64 = (UInt32)(8)
73
const u64 = (UInt32)(9)
74
const s16 = (UInt32)(10)
75
const u16 = (UInt32)(11)
76
const f16 = (UInt32)(12)
77
# end enum af_dtype
78

79
# begin enum af_source
80
const af_source = UInt32
81
const afDevice = (UInt32)(0)
82
const afHost = (UInt32)(1)
83
# end enum af_source
84

85
const af_array = Ptr{Nothing}
86

87
# begin enum af_interp_type
88
const af_interp_type = UInt32
89
const AF_INTERP_NEAREST = (UInt32)(0)
90
const AF_INTERP_LINEAR = (UInt32)(1)
91
const AF_INTERP_BILINEAR = (UInt32)(2)
92
const AF_INTERP_CUBIC = (UInt32)(3)
93
const AF_INTERP_LOWER = (UInt32)(4)
94
const AF_INTERP_LINEAR_COSINE = (UInt32)(5)
95
const AF_INTERP_BILINEAR_COSINE = (UInt32)(6)
96
const AF_INTERP_BICUBIC = (UInt32)(7)
97
const AF_INTERP_CUBIC_SPLINE = (UInt32)(8)
98
const AF_INTERP_BICUBIC_SPLINE = (UInt32)(9)
99
# end enum af_interp_type
100

101
# begin enum af_border_type
102
const af_border_type = UInt32
103
const AF_PAD_ZERO = (UInt32)(0)
104
const AF_PAD_SYM = (UInt32)(1)
105
# end enum af_border_type
106

107
# begin enum af_connectivity
108
const af_connectivity = UInt32
109
const AF_CONNECTIVITY_4 = (UInt32)(4)
110
const AF_CONNECTIVITY_8 = (UInt32)(8)
111
# end enum af_connectivity
112

113
# begin enum af_conv_mode
114
const af_conv_mode = UInt32
115
const AF_CONV_DEFAULT = (UInt32)(0)
116
const AF_CONV_EXPAND = (UInt32)(1)
117
# end enum af_conv_mode
118

119
# begin enum af_conv_domain
120
const af_conv_domain = UInt32
121
const AF_CONV_AUTO = (UInt32)(0)
122
const AF_CONV_SPATIAL = (UInt32)(1)
123
const AF_CONV_FREQ = (UInt32)(2)
124
# end enum af_conv_domain
125

126
# begin enum af_match_type
127
const af_match_type = UInt32
128
const AF_SAD = (UInt32)(0)
129
const AF_ZSAD = (UInt32)(1)
130
const AF_LSAD = (UInt32)(2)
131
const AF_SSD = (UInt32)(3)
132
const AF_ZSSD = (UInt32)(4)
133
const AF_LSSD = (UInt32)(5)
134
const AF_NCC = (UInt32)(6)
135
const AF_ZNCC = (UInt32)(7)
136
const AF_SHD = (UInt32)(8)
137
# end enum af_match_type
138

139
# begin enum af_ycc_std
140
const af_ycc_std = UInt32
141
const AF_YCC_601 = (UInt32)(601)
142
const AF_YCC_709 = (UInt32)(709)
143
const AF_YCC_2020 = (UInt32)(2020)
144
# end enum af_ycc_std
145

146
# begin enum af_cspace_t
147
const af_cspace_t = UInt32
148
const AF_GRAY = (UInt32)(0)
149
const AF_RGB = (UInt32)(1)
150
const AF_HSV = (UInt32)(2)
151
const AF_YCbCr = (UInt32)(3)
152
# end enum af_cspace_t
153

154
# begin enum af_mat_prop
155
const af_mat_prop = UInt32
156
const AF_MAT_NONE = (UInt32)(0)
157
const AF_MAT_TRANS = (UInt32)(1)
158
const AF_MAT_CTRANS = (UInt32)(2)
159
const AF_MAT_CONJ = (UInt32)(4)
160
const AF_MAT_UPPER = (UInt32)(32)
161
const AF_MAT_LOWER = (UInt32)(64)
162
const AF_MAT_DIAG_UNIT = (UInt32)(128)
163
const AF_MAT_SYM = (UInt32)(512)
164
const AF_MAT_POSDEF = (UInt32)(1024)
165
const AF_MAT_ORTHOG = (UInt32)(2048)
166
const AF_MAT_TRI_DIAG = (UInt32)(4096)
167
const AF_MAT_BLOCK_DIAG = (UInt32)(8192)
168
# end enum af_mat_prop
169

170
# begin enum af_norm_type
171
const af_norm_type = UInt32
172
const AF_NORM_VECTOR_1 = (UInt32)(0)
173
const AF_NORM_VECTOR_INF = (UInt32)(1)
174
const AF_NORM_VECTOR_2 = (UInt32)(2)
175
const AF_NORM_VECTOR_P = (UInt32)(3)
176
const AF_NORM_MATRIX_1 = (UInt32)(4)
177
const AF_NORM_MATRIX_INF = (UInt32)(5)
178
const AF_NORM_MATRIX_2 = (UInt32)(6)
179
const AF_NORM_MATRIX_L_PQ = (UInt32)(7)
180
const AF_NORM_EUCLID = (UInt32)(2)
181
# end enum af_norm_type
182

183
# begin enum af_image_format
184
const af_image_format = UInt32
185
const AF_FIF_BMP = (UInt32)(0)
186
const AF_FIF_ICO = (UInt32)(1)
187
const AF_FIF_JPEG = (UInt32)(2)
188
const AF_FIF_JNG = (UInt32)(3)
189
const AF_FIF_PNG = (UInt32)(13)
190
const AF_FIF_PPM = (UInt32)(14)
191
const AF_FIF_PPMRAW = (UInt32)(15)
192
const AF_FIF_TIFF = (UInt32)(18)
193
const AF_FIF_PSD = (UInt32)(20)
194
const AF_FIF_HDR = (UInt32)(26)
195
const AF_FIF_EXR = (UInt32)(29)
196
const AF_FIF_JP2 = (UInt32)(31)
197
const AF_FIF_RAW = (UInt32)(34)
198
# end enum af_image_format
199

200
# begin enum af_moment_type
201
const af_moment_type = UInt32
202
const AF_MOMENT_M00 = (UInt32)(1)
203
const AF_MOMENT_M01 = (UInt32)(2)
204
const AF_MOMENT_M10 = (UInt32)(4)
205
const AF_MOMENT_M11 = (UInt32)(8)
206
const AF_MOMENT_FIRST_ORDER = (UInt32)(15)
207
# end enum af_moment_type
208

209
# begin enum af_homography_type
210
const af_homography_type = UInt32
211
const AF_HOMOGRAPHY_RANSAC = (UInt32)(0)
212
const AF_HOMOGRAPHY_LMEDS = (UInt32)(1)
213
# end enum af_homography_type
214

215
# begin enum af_backend
216
const af_backend = UInt32
217
const AF_BACKEND_DEFAULT = (UInt32)(0)
218
const AF_BACKEND_CPU = (UInt32)(1)
219
const AF_BACKEND_CUDA = (UInt32)(2)
220
const AF_BACKEND_OPENCL = (UInt32)(4)
221
# end enum af_backend
222

223
# begin enum af_someenum_t
224
const af_someenum_t = UInt32
225
const AF_ID = (UInt32)(0)
226
# end enum af_someenum_t
227

228
# begin enum af_binary_op
229
const af_binary_op = UInt32
230
const AF_BINARY_ADD = (UInt32)(0)
231
const AF_BINARY_MUL = (UInt32)(1)
232
const AF_BINARY_MIN = (UInt32)(2)
233
const AF_BINARY_MAX = (UInt32)(3)
234
# end enum af_binary_op
235

236
# begin enum af_random_engine_type
237
const af_random_engine_type = UInt32
238
const AF_RANDOM_ENGINE_PHILOX_4X32_10 = (UInt32)(100)
239
const AF_RANDOM_ENGINE_THREEFRY_2X32_16 = (UInt32)(200)
240
const AF_RANDOM_ENGINE_MERSENNE_GP11213 = (UInt32)(300)
241
const AF_RANDOM_ENGINE_PHILOX = (UInt32)(100)
242
const AF_RANDOM_ENGINE_THREEFRY = (UInt32)(200)
243
const AF_RANDOM_ENGINE_MERSENNE = (UInt32)(300)
244
const AF_RANDOM_ENGINE_DEFAULT = (UInt32)(100)
245
# end enum af_random_engine_type
246

247
# begin enum af_colormap
248
const af_colormap = UInt32
249
const AF_COLORMAP_DEFAULT = (UInt32)(0)
250
const AF_COLORMAP_SPECTRUM = (UInt32)(1)
251
const AF_COLORMAP_COLORS = (UInt32)(2)
252
const AF_COLORMAP_RED = (UInt32)(3)
253
const AF_COLORMAP_MOOD = (UInt32)(4)
254
const AF_COLORMAP_HEAT = (UInt32)(5)
255
const AF_COLORMAP_BLUE = (UInt32)(6)
256
const AF_COLORMAP_INFERNO = (UInt32)(7)
257
const AF_COLORMAP_MAGMA = (UInt32)(8)
258
const AF_COLORMAP_PLASMA = (UInt32)(9)
259
const AF_COLORMAP_VIRIDIS = (UInt32)(10)
260
# end enum af_colormap
261

262
# begin enum af_marker_type
263
const af_marker_type = UInt32
264
const AF_MARKER_NONE = (UInt32)(0)
265
const AF_MARKER_POINT = (UInt32)(1)
266
const AF_MARKER_CIRCLE = (UInt32)(2)
267
const AF_MARKER_SQUARE = (UInt32)(3)
268
const AF_MARKER_TRIANGLE = (UInt32)(4)
269
const AF_MARKER_CROSS = (UInt32)(5)
270
const AF_MARKER_PLUS = (UInt32)(6)
271
const AF_MARKER_STAR = (UInt32)(7)
272
# end enum af_marker_type
273

274
# begin enum af_canny_threshold
275
const af_canny_threshold = UInt32
276
const AF_CANNY_THRESHOLD_MANUAL = (UInt32)(0)
277
const AF_CANNY_THRESHOLD_AUTO_OTSU = (UInt32)(1)
278
# end enum af_canny_threshold
279

280
# begin enum af_storage
281
const af_storage = UInt32
282
const AF_STORAGE_DENSE = (UInt32)(0)
283
const AF_STORAGE_CSR = (UInt32)(1)
284
const AF_STORAGE_CSC = (UInt32)(2)
285
const AF_STORAGE_COO = (UInt32)(3)
286
# end enum af_storage
287

288
# begin enum af_flux_function
289
const af_flux_function = UInt32
290
const AF_FLUX_QUADRATIC = (UInt32)(1)
291
const AF_FLUX_EXPONENTIAL = (UInt32)(2)
292
const AF_FLUX_DEFAULT = (UInt32)(0)
293
# end enum af_flux_function
294

295
# begin enum af_diffusion_eq
296
const af_diffusion_eq = UInt32
297
const AF_DIFFUSION_GRAD = (UInt32)(1)
298
const AF_DIFFUSION_MCDE = (UInt32)(2)
299
const AF_DIFFUSION_DEFAULT = (UInt32)(0)
300
# end enum af_diffusion_eq
301

302
# begin enum af_topk_function
303
const af_topk_function = UInt32
304
const AF_TOPK_MIN = (UInt32)(1)
305
const AF_TOPK_MAX = (UInt32)(2)
306
const AF_TOPK_DEFAULT = (UInt32)(0)
307
# end enum af_topk_function
308

309
struct af_seq
310 4
    _begin::Cdouble
311
    _end::Cdouble
312
    step::Cdouble
313
end
314

315
struct af_index_t
316
    idx::Nothing
317
    isSeq::Bool
318
    isBatch::Bool
319
end
320

321
struct af_cfloat
322
    real::Cfloat
323
    imag::Cfloat
324
end
325

326
struct af_cdouble
327
    real::Cdouble
328
    imag::Cdouble
329
end
330

331
const af_features = Ptr{Nothing}
332
const af_window = Culonglong
333

334
struct af_cell
335
    row::Cint
336
    col::Cint
337
    title::Cstring
338
    cmap::af_colormap
339
end
340

341
const af_random_engine = Ptr{Nothing}

Read our documentation on viewing source code .

Loading