node-native-win-utils 1.1.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/README.md +144 -27
  2. package/binding.gyp +18 -5
  3. package/dist/index.d.ts +146 -4
  4. package/dist/index.js +107 -3
  5. package/include/opencv2/core/affine.hpp +678 -0
  6. package/include/opencv2/core/async.hpp +105 -0
  7. package/include/opencv2/core/base.hpp +664 -0
  8. package/include/opencv2/core/bindings_utils.hpp +325 -0
  9. package/include/opencv2/core/bufferpool.hpp +40 -0
  10. package/include/opencv2/core/check.hpp +170 -0
  11. package/include/opencv2/core/core.hpp +48 -0
  12. package/include/opencv2/core/core_c.h +3128 -0
  13. package/include/opencv2/core/cuda/block.hpp +211 -0
  14. package/include/opencv2/core/cuda/border_interpolate.hpp +722 -0
  15. package/include/opencv2/core/cuda/color.hpp +309 -0
  16. package/include/opencv2/core/cuda/common.hpp +131 -0
  17. package/include/opencv2/core/cuda/datamov_utils.hpp +113 -0
  18. package/include/opencv2/core/cuda/detail/color_detail.hpp +2018 -0
  19. package/include/opencv2/core/cuda/detail/reduce.hpp +365 -0
  20. package/include/opencv2/core/cuda/detail/reduce_key_val.hpp +502 -0
  21. package/include/opencv2/core/cuda/detail/transform_detail.hpp +392 -0
  22. package/include/opencv2/core/cuda/detail/type_traits_detail.hpp +191 -0
  23. package/include/opencv2/core/cuda/detail/vec_distance_detail.hpp +121 -0
  24. package/include/opencv2/core/cuda/dynamic_smem.hpp +88 -0
  25. package/include/opencv2/core/cuda/emulation.hpp +269 -0
  26. package/include/opencv2/core/cuda/filters.hpp +293 -0
  27. package/include/opencv2/core/cuda/funcattrib.hpp +79 -0
  28. package/include/opencv2/core/cuda/functional.hpp +805 -0
  29. package/include/opencv2/core/cuda/limits.hpp +128 -0
  30. package/include/opencv2/core/cuda/reduce.hpp +209 -0
  31. package/include/opencv2/core/cuda/saturate_cast.hpp +292 -0
  32. package/include/opencv2/core/cuda/scan.hpp +258 -0
  33. package/include/opencv2/core/cuda/simd_functions.hpp +869 -0
  34. package/include/opencv2/core/cuda/transform.hpp +75 -0
  35. package/include/opencv2/core/cuda/type_traits.hpp +90 -0
  36. package/include/opencv2/core/cuda/utility.hpp +230 -0
  37. package/include/opencv2/core/cuda/vec_distance.hpp +232 -0
  38. package/include/opencv2/core/cuda/vec_math.hpp +923 -0
  39. package/include/opencv2/core/cuda/vec_traits.hpp +288 -0
  40. package/include/opencv2/core/cuda/warp.hpp +139 -0
  41. package/include/opencv2/core/cuda/warp_reduce.hpp +76 -0
  42. package/include/opencv2/core/cuda/warp_shuffle.hpp +162 -0
  43. package/include/opencv2/core/cuda.hpp +1279 -0
  44. package/include/opencv2/core/cuda.inl.hpp +763 -0
  45. package/include/opencv2/core/cuda_stream_accessor.hpp +86 -0
  46. package/include/opencv2/core/cuda_types.hpp +144 -0
  47. package/include/opencv2/core/cv_cpu_dispatch.h +381 -0
  48. package/include/opencv2/core/cv_cpu_helper.h +550 -0
  49. package/include/opencv2/core/cvdef.h +973 -0
  50. package/include/opencv2/core/cvstd.hpp +190 -0
  51. package/include/opencv2/core/cvstd.inl.hpp +197 -0
  52. package/include/opencv2/core/cvstd_wrapper.hpp +154 -0
  53. package/include/opencv2/core/detail/async_promise.hpp +71 -0
  54. package/include/opencv2/core/detail/dispatch_helper.impl.hpp +49 -0
  55. package/include/opencv2/core/detail/exception_ptr.hpp +27 -0
  56. package/include/opencv2/core/directx.hpp +184 -0
  57. package/include/opencv2/core/dualquaternion.hpp +979 -0
  58. package/include/opencv2/core/dualquaternion.inl.hpp +487 -0
  59. package/include/opencv2/core/eigen.hpp +402 -0
  60. package/include/opencv2/core/fast_math.hpp +433 -0
  61. package/include/opencv2/core/hal/hal.hpp +256 -0
  62. package/include/opencv2/core/hal/interface.h +190 -0
  63. package/include/opencv2/core/hal/intrin.hpp +939 -0
  64. package/include/opencv2/core/hal/intrin_avx.hpp +3177 -0
  65. package/include/opencv2/core/hal/intrin_avx512.hpp +3090 -0
  66. package/include/opencv2/core/hal/intrin_cpp.hpp +3321 -0
  67. package/include/opencv2/core/hal/intrin_forward.hpp +191 -0
  68. package/include/opencv2/core/hal/intrin_lasx.hpp +3236 -0
  69. package/include/opencv2/core/hal/intrin_msa.hpp +1887 -0
  70. package/include/opencv2/core/hal/intrin_neon.hpp +2610 -0
  71. package/include/opencv2/core/hal/intrin_rvv.hpp +3320 -0
  72. package/include/opencv2/core/hal/intrin_rvv071.hpp +2545 -0
  73. package/include/opencv2/core/hal/intrin_rvv_scalable.hpp +2080 -0
  74. package/include/opencv2/core/hal/intrin_sse.hpp +3467 -0
  75. package/include/opencv2/core/hal/intrin_sse_em.hpp +180 -0
  76. package/include/opencv2/core/hal/intrin_vsx.hpp +1608 -0
  77. package/include/opencv2/core/hal/intrin_wasm.hpp +2782 -0
  78. package/include/opencv2/core/hal/msa_macros.h +1558 -0
  79. package/include/opencv2/core/hal/simd_utils.impl.hpp +186 -0
  80. package/include/opencv2/core/llapi/llapi.h +102 -0
  81. package/include/opencv2/core/mat.hpp +3775 -0
  82. package/include/opencv2/core/mat.inl.hpp +3422 -0
  83. package/include/opencv2/core/matx.hpp +1536 -0
  84. package/include/opencv2/core/neon_utils.hpp +128 -0
  85. package/include/opencv2/core/ocl.hpp +917 -0
  86. package/include/opencv2/core/ocl_genbase.hpp +69 -0
  87. package/include/opencv2/core/opencl/ocl_defs.hpp +82 -0
  88. package/include/opencv2/core/opencl/opencl_info.hpp +212 -0
  89. package/include/opencv2/core/opencl/opencl_svm.hpp +81 -0
  90. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_clblas.hpp +602 -0
  91. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_clfft.hpp +146 -0
  92. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp +371 -0
  93. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_core_wrappers.hpp +272 -0
  94. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp +62 -0
  95. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl_wrappers.hpp +42 -0
  96. package/include/opencv2/core/opencl/runtime/opencl_clblas.hpp +53 -0
  97. package/include/opencv2/core/opencl/runtime/opencl_clfft.hpp +53 -0
  98. package/include/opencv2/core/opencl/runtime/opencl_core.hpp +84 -0
  99. package/include/opencv2/core/opencl/runtime/opencl_core_wrappers.hpp +47 -0
  100. package/include/opencv2/core/opencl/runtime/opencl_gl.hpp +53 -0
  101. package/include/opencv2/core/opencl/runtime/opencl_gl_wrappers.hpp +47 -0
  102. package/include/opencv2/core/opencl/runtime/opencl_svm_20.hpp +48 -0
  103. package/include/opencv2/core/opencl/runtime/opencl_svm_definitions.hpp +42 -0
  104. package/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp +166 -0
  105. package/include/opencv2/core/opengl.hpp +733 -0
  106. package/include/opencv2/core/openvx/ovx_defs.hpp +48 -0
  107. package/include/opencv2/core/operations.hpp +610 -0
  108. package/include/opencv2/core/optim.hpp +302 -0
  109. package/include/opencv2/core/ovx.hpp +28 -0
  110. package/include/opencv2/core/parallel/backend/parallel_for.openmp.hpp +72 -0
  111. package/include/opencv2/core/parallel/backend/parallel_for.tbb.hpp +153 -0
  112. package/include/opencv2/core/parallel/parallel_backend.hpp +90 -0
  113. package/include/opencv2/core/persistence.hpp +1350 -0
  114. package/include/opencv2/core/private/cv_cpu_include_simd_declarations.hpp +30 -0
  115. package/include/opencv2/core/private.cuda.hpp +169 -0
  116. package/include/opencv2/core/private.hpp +896 -0
  117. package/include/opencv2/core/quaternion.hpp +1696 -0
  118. package/include/opencv2/core/quaternion.inl.hpp +1063 -0
  119. package/include/opencv2/core/saturate.hpp +180 -0
  120. package/include/opencv2/core/simd_intrinsics.hpp +87 -0
  121. package/include/opencv2/core/softfloat.hpp +514 -0
  122. package/include/opencv2/core/sse_utils.hpp +652 -0
  123. package/include/opencv2/core/traits.hpp +417 -0
  124. package/include/opencv2/core/types.hpp +2457 -0
  125. package/include/opencv2/core/types_c.h +2126 -0
  126. package/include/opencv2/core/utility.hpp +1229 -0
  127. package/include/opencv2/core/utils/allocator_stats.hpp +29 -0
  128. package/include/opencv2/core/utils/allocator_stats.impl.hpp +158 -0
  129. package/include/opencv2/core/utils/buffer_area.private.hpp +136 -0
  130. package/include/opencv2/core/utils/configuration.private.hpp +22 -0
  131. package/include/opencv2/core/utils/filesystem.hpp +82 -0
  132. package/include/opencv2/core/utils/filesystem.private.hpp +66 -0
  133. package/include/opencv2/core/utils/fp_control.private.hpp +29 -0
  134. package/include/opencv2/core/utils/fp_control_utils.hpp +69 -0
  135. package/include/opencv2/core/utils/instrumentation.hpp +125 -0
  136. package/include/opencv2/core/utils/lock.private.hpp +119 -0
  137. package/include/opencv2/core/utils/logger.defines.hpp +42 -0
  138. package/include/opencv2/core/utils/logger.hpp +218 -0
  139. package/include/opencv2/core/utils/logtag.hpp +28 -0
  140. package/include/opencv2/core/utils/plugin_loader.private.hpp +165 -0
  141. package/include/opencv2/core/utils/tls.hpp +235 -0
  142. package/include/opencv2/core/utils/trace.hpp +252 -0
  143. package/include/opencv2/core/utils/trace.private.hpp +421 -0
  144. package/include/opencv2/core/va_intel.hpp +75 -0
  145. package/include/opencv2/core/version.hpp +26 -0
  146. package/include/opencv2/core/vsx_utils.hpp +1047 -0
  147. package/include/opencv2/core.hpp +3365 -0
  148. package/include/opencv2/imgcodecs/imgcodecs.hpp +48 -0
  149. package/include/opencv2/imgcodecs/imgcodecs_c.h +1 -0
  150. package/include/opencv2/imgcodecs/ios.h +59 -0
  151. package/include/opencv2/imgcodecs/legacy/constants_c.h +54 -0
  152. package/include/opencv2/imgcodecs/macosx.h +20 -0
  153. package/include/opencv2/imgcodecs.hpp +407 -0
  154. package/include/opencv2/imgproc/bindings.hpp +34 -0
  155. package/include/opencv2/imgproc/detail/gcgraph.hpp +395 -0
  156. package/include/opencv2/imgproc/hal/hal.hpp +246 -0
  157. package/include/opencv2/imgproc/hal/interface.h +46 -0
  158. package/include/opencv2/imgproc/imgproc.hpp +48 -0
  159. package/include/opencv2/imgproc/imgproc_c.h +1177 -0
  160. package/include/opencv2/imgproc/segmentation.hpp +141 -0
  161. package/include/opencv2/imgproc/types_c.h +659 -0
  162. package/include/opencv2/imgproc.hpp +5035 -0
  163. package/include/opencv2/opencv_modules.hpp +17 -0
  164. package/libs/libjpeg-turbo.lib +0 -0
  165. package/libs/libpng.lib +0 -0
  166. package/libs/opencv_core470.lib +0 -0
  167. package/libs/opencv_imgcodecs470.lib +0 -0
  168. package/libs/opencv_imgproc470.lib +0 -0
  169. package/libs/zlib.lib +0 -0
  170. package/package.json +8 -2
  171. package/prebuilds/win32-x64/node.napi.node +0 -0
  172. package/src/cpp/capturewindow.cpp +36 -46
  173. package/src/cpp/main.cpp +10 -2
  174. package/src/cpp/opencv.cpp +425 -0
@@ -0,0 +1,272 @@
1
+ //
2
+ // AUTOGENERATED, DO NOT EDIT
3
+ //
4
+ #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_WRAPPERS_HPP
5
+ #error "Invalid usage"
6
+ #endif
7
+
8
+ // generated by parser_cl.py
9
+ #undef clBuildProgram
10
+ #define clBuildProgram clBuildProgram_fn
11
+ inline cl_int clBuildProgram(cl_program p0, cl_uint p1, const cl_device_id* p2, const char* p3, void (CL_CALLBACK*p4) (cl_program, void*), void* p5) { return clBuildProgram_pfn(p0, p1, p2, p3, p4, p5); }
12
+ #undef clCompileProgram
13
+ #define clCompileProgram clCompileProgram_fn
14
+ inline cl_int clCompileProgram(cl_program p0, cl_uint p1, const cl_device_id* p2, const char* p3, cl_uint p4, const cl_program* p5, const char** p6, void (CL_CALLBACK*p7) (cl_program, void*), void* p8) { return clCompileProgram_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
15
+ #undef clCreateBuffer
16
+ #define clCreateBuffer clCreateBuffer_fn
17
+ inline cl_mem clCreateBuffer(cl_context p0, cl_mem_flags p1, size_t p2, void* p3, cl_int* p4) { return clCreateBuffer_pfn(p0, p1, p2, p3, p4); }
18
+ #undef clCreateCommandQueue
19
+ #define clCreateCommandQueue clCreateCommandQueue_fn
20
+ inline cl_command_queue clCreateCommandQueue(cl_context p0, cl_device_id p1, cl_command_queue_properties p2, cl_int* p3) { return clCreateCommandQueue_pfn(p0, p1, p2, p3); }
21
+ #undef clCreateContext
22
+ #define clCreateContext clCreateContext_fn
23
+ inline cl_context clCreateContext(const cl_context_properties* p0, cl_uint p1, const cl_device_id* p2, void (CL_CALLBACK*p3) (const char*, const void*, size_t, void*), void* p4, cl_int* p5) { return clCreateContext_pfn(p0, p1, p2, p3, p4, p5); }
24
+ #undef clCreateContextFromType
25
+ #define clCreateContextFromType clCreateContextFromType_fn
26
+ inline cl_context clCreateContextFromType(const cl_context_properties* p0, cl_device_type p1, void (CL_CALLBACK*p2) (const char*, const void*, size_t, void*), void* p3, cl_int* p4) { return clCreateContextFromType_pfn(p0, p1, p2, p3, p4); }
27
+ #undef clCreateImage
28
+ #define clCreateImage clCreateImage_fn
29
+ inline cl_mem clCreateImage(cl_context p0, cl_mem_flags p1, const cl_image_format* p2, const cl_image_desc* p3, void* p4, cl_int* p5) { return clCreateImage_pfn(p0, p1, p2, p3, p4, p5); }
30
+ #undef clCreateImage2D
31
+ #define clCreateImage2D clCreateImage2D_fn
32
+ inline cl_mem clCreateImage2D(cl_context p0, cl_mem_flags p1, const cl_image_format* p2, size_t p3, size_t p4, size_t p5, void* p6, cl_int* p7) { return clCreateImage2D_pfn(p0, p1, p2, p3, p4, p5, p6, p7); }
33
+ #undef clCreateImage3D
34
+ #define clCreateImage3D clCreateImage3D_fn
35
+ inline cl_mem clCreateImage3D(cl_context p0, cl_mem_flags p1, const cl_image_format* p2, size_t p3, size_t p4, size_t p5, size_t p6, size_t p7, void* p8, cl_int* p9) { return clCreateImage3D_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); }
36
+ #undef clCreateKernel
37
+ #define clCreateKernel clCreateKernel_fn
38
+ inline cl_kernel clCreateKernel(cl_program p0, const char* p1, cl_int* p2) { return clCreateKernel_pfn(p0, p1, p2); }
39
+ #undef clCreateKernelsInProgram
40
+ #define clCreateKernelsInProgram clCreateKernelsInProgram_fn
41
+ inline cl_int clCreateKernelsInProgram(cl_program p0, cl_uint p1, cl_kernel* p2, cl_uint* p3) { return clCreateKernelsInProgram_pfn(p0, p1, p2, p3); }
42
+ #undef clCreateProgramWithBinary
43
+ #define clCreateProgramWithBinary clCreateProgramWithBinary_fn
44
+ inline cl_program clCreateProgramWithBinary(cl_context p0, cl_uint p1, const cl_device_id* p2, const size_t* p3, const unsigned char** p4, cl_int* p5, cl_int* p6) { return clCreateProgramWithBinary_pfn(p0, p1, p2, p3, p4, p5, p6); }
45
+ #undef clCreateProgramWithBuiltInKernels
46
+ #define clCreateProgramWithBuiltInKernels clCreateProgramWithBuiltInKernels_fn
47
+ inline cl_program clCreateProgramWithBuiltInKernels(cl_context p0, cl_uint p1, const cl_device_id* p2, const char* p3, cl_int* p4) { return clCreateProgramWithBuiltInKernels_pfn(p0, p1, p2, p3, p4); }
48
+ #undef clCreateProgramWithSource
49
+ #define clCreateProgramWithSource clCreateProgramWithSource_fn
50
+ inline cl_program clCreateProgramWithSource(cl_context p0, cl_uint p1, const char** p2, const size_t* p3, cl_int* p4) { return clCreateProgramWithSource_pfn(p0, p1, p2, p3, p4); }
51
+ #undef clCreateSampler
52
+ #define clCreateSampler clCreateSampler_fn
53
+ inline cl_sampler clCreateSampler(cl_context p0, cl_bool p1, cl_addressing_mode p2, cl_filter_mode p3, cl_int* p4) { return clCreateSampler_pfn(p0, p1, p2, p3, p4); }
54
+ #undef clCreateSubBuffer
55
+ #define clCreateSubBuffer clCreateSubBuffer_fn
56
+ inline cl_mem clCreateSubBuffer(cl_mem p0, cl_mem_flags p1, cl_buffer_create_type p2, const void* p3, cl_int* p4) { return clCreateSubBuffer_pfn(p0, p1, p2, p3, p4); }
57
+ #undef clCreateSubDevices
58
+ #define clCreateSubDevices clCreateSubDevices_fn
59
+ inline cl_int clCreateSubDevices(cl_device_id p0, const cl_device_partition_property* p1, cl_uint p2, cl_device_id* p3, cl_uint* p4) { return clCreateSubDevices_pfn(p0, p1, p2, p3, p4); }
60
+ #undef clCreateUserEvent
61
+ #define clCreateUserEvent clCreateUserEvent_fn
62
+ inline cl_event clCreateUserEvent(cl_context p0, cl_int* p1) { return clCreateUserEvent_pfn(p0, p1); }
63
+ #undef clEnqueueBarrier
64
+ #define clEnqueueBarrier clEnqueueBarrier_fn
65
+ inline cl_int clEnqueueBarrier(cl_command_queue p0) { return clEnqueueBarrier_pfn(p0); }
66
+ #undef clEnqueueBarrierWithWaitList
67
+ #define clEnqueueBarrierWithWaitList clEnqueueBarrierWithWaitList_fn
68
+ inline cl_int clEnqueueBarrierWithWaitList(cl_command_queue p0, cl_uint p1, const cl_event* p2, cl_event* p3) { return clEnqueueBarrierWithWaitList_pfn(p0, p1, p2, p3); }
69
+ #undef clEnqueueCopyBuffer
70
+ #define clEnqueueCopyBuffer clEnqueueCopyBuffer_fn
71
+ inline cl_int clEnqueueCopyBuffer(cl_command_queue p0, cl_mem p1, cl_mem p2, size_t p3, size_t p4, size_t p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueCopyBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
72
+ #undef clEnqueueCopyBufferRect
73
+ #define clEnqueueCopyBufferRect clEnqueueCopyBufferRect_fn
74
+ inline cl_int clEnqueueCopyBufferRect(cl_command_queue p0, cl_mem p1, cl_mem p2, const size_t* p3, const size_t* p4, const size_t* p5, size_t p6, size_t p7, size_t p8, size_t p9, cl_uint p10, const cl_event* p11, cl_event* p12) { return clEnqueueCopyBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12); }
75
+ #undef clEnqueueCopyBufferToImage
76
+ #define clEnqueueCopyBufferToImage clEnqueueCopyBufferToImage_fn
77
+ inline cl_int clEnqueueCopyBufferToImage(cl_command_queue p0, cl_mem p1, cl_mem p2, size_t p3, const size_t* p4, const size_t* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueCopyBufferToImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
78
+ #undef clEnqueueCopyImage
79
+ #define clEnqueueCopyImage clEnqueueCopyImage_fn
80
+ inline cl_int clEnqueueCopyImage(cl_command_queue p0, cl_mem p1, cl_mem p2, const size_t* p3, const size_t* p4, const size_t* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueCopyImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
81
+ #undef clEnqueueCopyImageToBuffer
82
+ #define clEnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer_fn
83
+ inline cl_int clEnqueueCopyImageToBuffer(cl_command_queue p0, cl_mem p1, cl_mem p2, const size_t* p3, const size_t* p4, size_t p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueCopyImageToBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
84
+ #undef clEnqueueFillBuffer
85
+ #define clEnqueueFillBuffer clEnqueueFillBuffer_fn
86
+ inline cl_int clEnqueueFillBuffer(cl_command_queue p0, cl_mem p1, const void* p2, size_t p3, size_t p4, size_t p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueFillBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
87
+ #undef clEnqueueFillImage
88
+ #define clEnqueueFillImage clEnqueueFillImage_fn
89
+ inline cl_int clEnqueueFillImage(cl_command_queue p0, cl_mem p1, const void* p2, const size_t* p3, const size_t* p4, cl_uint p5, const cl_event* p6, cl_event* p7) { return clEnqueueFillImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7); }
90
+ #undef clEnqueueMapBuffer
91
+ #define clEnqueueMapBuffer clEnqueueMapBuffer_fn
92
+ inline void* clEnqueueMapBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2, cl_map_flags p3, size_t p4, size_t p5, cl_uint p6, const cl_event* p7, cl_event* p8, cl_int* p9) { return clEnqueueMapBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); }
93
+ #undef clEnqueueMapImage
94
+ #define clEnqueueMapImage clEnqueueMapImage_fn
95
+ inline void* clEnqueueMapImage(cl_command_queue p0, cl_mem p1, cl_bool p2, cl_map_flags p3, const size_t* p4, const size_t* p5, size_t* p6, size_t* p7, cl_uint p8, const cl_event* p9, cl_event* p10, cl_int* p11) { return clEnqueueMapImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); }
96
+ #undef clEnqueueMarker
97
+ #define clEnqueueMarker clEnqueueMarker_fn
98
+ inline cl_int clEnqueueMarker(cl_command_queue p0, cl_event* p1) { return clEnqueueMarker_pfn(p0, p1); }
99
+ #undef clEnqueueMarkerWithWaitList
100
+ #define clEnqueueMarkerWithWaitList clEnqueueMarkerWithWaitList_fn
101
+ inline cl_int clEnqueueMarkerWithWaitList(cl_command_queue p0, cl_uint p1, const cl_event* p2, cl_event* p3) { return clEnqueueMarkerWithWaitList_pfn(p0, p1, p2, p3); }
102
+ #undef clEnqueueMigrateMemObjects
103
+ #define clEnqueueMigrateMemObjects clEnqueueMigrateMemObjects_fn
104
+ inline cl_int clEnqueueMigrateMemObjects(cl_command_queue p0, cl_uint p1, const cl_mem* p2, cl_mem_migration_flags p3, cl_uint p4, const cl_event* p5, cl_event* p6) { return clEnqueueMigrateMemObjects_pfn(p0, p1, p2, p3, p4, p5, p6); }
105
+ #undef clEnqueueNDRangeKernel
106
+ #define clEnqueueNDRangeKernel clEnqueueNDRangeKernel_fn
107
+ inline cl_int clEnqueueNDRangeKernel(cl_command_queue p0, cl_kernel p1, cl_uint p2, const size_t* p3, const size_t* p4, const size_t* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueNDRangeKernel_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
108
+ #undef clEnqueueNativeKernel
109
+ #define clEnqueueNativeKernel clEnqueueNativeKernel_fn
110
+ inline cl_int clEnqueueNativeKernel(cl_command_queue p0, void (CL_CALLBACK*p1) (void*), void* p2, size_t p3, cl_uint p4, const cl_mem* p5, const void** p6, cl_uint p7, const cl_event* p8, cl_event* p9) { return clEnqueueNativeKernel_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); }
111
+ #undef clEnqueueReadBuffer
112
+ #define clEnqueueReadBuffer clEnqueueReadBuffer_fn
113
+ inline cl_int clEnqueueReadBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2, size_t p3, size_t p4, void* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueReadBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
114
+ #undef clEnqueueReadBufferRect
115
+ #define clEnqueueReadBufferRect clEnqueueReadBufferRect_fn
116
+ inline cl_int clEnqueueReadBufferRect(cl_command_queue p0, cl_mem p1, cl_bool p2, const size_t* p3, const size_t* p4, const size_t* p5, size_t p6, size_t p7, size_t p8, size_t p9, void* p10, cl_uint p11, const cl_event* p12, cl_event* p13) { return clEnqueueReadBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); }
117
+ #undef clEnqueueReadImage
118
+ #define clEnqueueReadImage clEnqueueReadImage_fn
119
+ inline cl_int clEnqueueReadImage(cl_command_queue p0, cl_mem p1, cl_bool p2, const size_t* p3, const size_t* p4, size_t p5, size_t p6, void* p7, cl_uint p8, const cl_event* p9, cl_event* p10) { return clEnqueueReadImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); }
120
+ #undef clEnqueueTask
121
+ #define clEnqueueTask clEnqueueTask_fn
122
+ inline cl_int clEnqueueTask(cl_command_queue p0, cl_kernel p1, cl_uint p2, const cl_event* p3, cl_event* p4) { return clEnqueueTask_pfn(p0, p1, p2, p3, p4); }
123
+ #undef clEnqueueUnmapMemObject
124
+ #define clEnqueueUnmapMemObject clEnqueueUnmapMemObject_fn
125
+ inline cl_int clEnqueueUnmapMemObject(cl_command_queue p0, cl_mem p1, void* p2, cl_uint p3, const cl_event* p4, cl_event* p5) { return clEnqueueUnmapMemObject_pfn(p0, p1, p2, p3, p4, p5); }
126
+ #undef clEnqueueWaitForEvents
127
+ #define clEnqueueWaitForEvents clEnqueueWaitForEvents_fn
128
+ inline cl_int clEnqueueWaitForEvents(cl_command_queue p0, cl_uint p1, const cl_event* p2) { return clEnqueueWaitForEvents_pfn(p0, p1, p2); }
129
+ #undef clEnqueueWriteBuffer
130
+ #define clEnqueueWriteBuffer clEnqueueWriteBuffer_fn
131
+ inline cl_int clEnqueueWriteBuffer(cl_command_queue p0, cl_mem p1, cl_bool p2, size_t p3, size_t p4, const void* p5, cl_uint p6, const cl_event* p7, cl_event* p8) { return clEnqueueWriteBuffer_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
132
+ #undef clEnqueueWriteBufferRect
133
+ #define clEnqueueWriteBufferRect clEnqueueWriteBufferRect_fn
134
+ inline cl_int clEnqueueWriteBufferRect(cl_command_queue p0, cl_mem p1, cl_bool p2, const size_t* p3, const size_t* p4, const size_t* p5, size_t p6, size_t p7, size_t p8, size_t p9, const void* p10, cl_uint p11, const cl_event* p12, cl_event* p13) { return clEnqueueWriteBufferRect_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); }
135
+ #undef clEnqueueWriteImage
136
+ #define clEnqueueWriteImage clEnqueueWriteImage_fn
137
+ inline cl_int clEnqueueWriteImage(cl_command_queue p0, cl_mem p1, cl_bool p2, const size_t* p3, const size_t* p4, size_t p5, size_t p6, const void* p7, cl_uint p8, const cl_event* p9, cl_event* p10) { return clEnqueueWriteImage_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); }
138
+ #undef clFinish
139
+ #define clFinish clFinish_fn
140
+ inline cl_int clFinish(cl_command_queue p0) { return clFinish_pfn(p0); }
141
+ #undef clFlush
142
+ #define clFlush clFlush_fn
143
+ inline cl_int clFlush(cl_command_queue p0) { return clFlush_pfn(p0); }
144
+ #undef clGetCommandQueueInfo
145
+ #define clGetCommandQueueInfo clGetCommandQueueInfo_fn
146
+ inline cl_int clGetCommandQueueInfo(cl_command_queue p0, cl_command_queue_info p1, size_t p2, void* p3, size_t* p4) { return clGetCommandQueueInfo_pfn(p0, p1, p2, p3, p4); }
147
+ #undef clGetContextInfo
148
+ #define clGetContextInfo clGetContextInfo_fn
149
+ inline cl_int clGetContextInfo(cl_context p0, cl_context_info p1, size_t p2, void* p3, size_t* p4) { return clGetContextInfo_pfn(p0, p1, p2, p3, p4); }
150
+ #undef clGetDeviceIDs
151
+ #define clGetDeviceIDs clGetDeviceIDs_fn
152
+ inline cl_int clGetDeviceIDs(cl_platform_id p0, cl_device_type p1, cl_uint p2, cl_device_id* p3, cl_uint* p4) { return clGetDeviceIDs_pfn(p0, p1, p2, p3, p4); }
153
+ #undef clGetDeviceInfo
154
+ #define clGetDeviceInfo clGetDeviceInfo_fn
155
+ inline cl_int clGetDeviceInfo(cl_device_id p0, cl_device_info p1, size_t p2, void* p3, size_t* p4) { return clGetDeviceInfo_pfn(p0, p1, p2, p3, p4); }
156
+ #undef clGetEventInfo
157
+ #define clGetEventInfo clGetEventInfo_fn
158
+ inline cl_int clGetEventInfo(cl_event p0, cl_event_info p1, size_t p2, void* p3, size_t* p4) { return clGetEventInfo_pfn(p0, p1, p2, p3, p4); }
159
+ #undef clGetEventProfilingInfo
160
+ #define clGetEventProfilingInfo clGetEventProfilingInfo_fn
161
+ inline cl_int clGetEventProfilingInfo(cl_event p0, cl_profiling_info p1, size_t p2, void* p3, size_t* p4) { return clGetEventProfilingInfo_pfn(p0, p1, p2, p3, p4); }
162
+ #undef clGetExtensionFunctionAddress
163
+ #define clGetExtensionFunctionAddress clGetExtensionFunctionAddress_fn
164
+ inline void* clGetExtensionFunctionAddress(const char* p0) { return clGetExtensionFunctionAddress_pfn(p0); }
165
+ #undef clGetExtensionFunctionAddressForPlatform
166
+ #define clGetExtensionFunctionAddressForPlatform clGetExtensionFunctionAddressForPlatform_fn
167
+ inline void* clGetExtensionFunctionAddressForPlatform(cl_platform_id p0, const char* p1) { return clGetExtensionFunctionAddressForPlatform_pfn(p0, p1); }
168
+ #undef clGetImageInfo
169
+ #define clGetImageInfo clGetImageInfo_fn
170
+ inline cl_int clGetImageInfo(cl_mem p0, cl_image_info p1, size_t p2, void* p3, size_t* p4) { return clGetImageInfo_pfn(p0, p1, p2, p3, p4); }
171
+ #undef clGetKernelArgInfo
172
+ #define clGetKernelArgInfo clGetKernelArgInfo_fn
173
+ inline cl_int clGetKernelArgInfo(cl_kernel p0, cl_uint p1, cl_kernel_arg_info p2, size_t p3, void* p4, size_t* p5) { return clGetKernelArgInfo_pfn(p0, p1, p2, p3, p4, p5); }
174
+ #undef clGetKernelInfo
175
+ #define clGetKernelInfo clGetKernelInfo_fn
176
+ inline cl_int clGetKernelInfo(cl_kernel p0, cl_kernel_info p1, size_t p2, void* p3, size_t* p4) { return clGetKernelInfo_pfn(p0, p1, p2, p3, p4); }
177
+ #undef clGetKernelWorkGroupInfo
178
+ #define clGetKernelWorkGroupInfo clGetKernelWorkGroupInfo_fn
179
+ inline cl_int clGetKernelWorkGroupInfo(cl_kernel p0, cl_device_id p1, cl_kernel_work_group_info p2, size_t p3, void* p4, size_t* p5) { return clGetKernelWorkGroupInfo_pfn(p0, p1, p2, p3, p4, p5); }
180
+ #undef clGetMemObjectInfo
181
+ #define clGetMemObjectInfo clGetMemObjectInfo_fn
182
+ inline cl_int clGetMemObjectInfo(cl_mem p0, cl_mem_info p1, size_t p2, void* p3, size_t* p4) { return clGetMemObjectInfo_pfn(p0, p1, p2, p3, p4); }
183
+ #undef clGetPlatformIDs
184
+ #define clGetPlatformIDs clGetPlatformIDs_fn
185
+ inline cl_int clGetPlatformIDs(cl_uint p0, cl_platform_id* p1, cl_uint* p2) { return clGetPlatformIDs_pfn(p0, p1, p2); }
186
+ #undef clGetPlatformInfo
187
+ #define clGetPlatformInfo clGetPlatformInfo_fn
188
+ inline cl_int clGetPlatformInfo(cl_platform_id p0, cl_platform_info p1, size_t p2, void* p3, size_t* p4) { return clGetPlatformInfo_pfn(p0, p1, p2, p3, p4); }
189
+ #undef clGetProgramBuildInfo
190
+ #define clGetProgramBuildInfo clGetProgramBuildInfo_fn
191
+ inline cl_int clGetProgramBuildInfo(cl_program p0, cl_device_id p1, cl_program_build_info p2, size_t p3, void* p4, size_t* p5) { return clGetProgramBuildInfo_pfn(p0, p1, p2, p3, p4, p5); }
192
+ #undef clGetProgramInfo
193
+ #define clGetProgramInfo clGetProgramInfo_fn
194
+ inline cl_int clGetProgramInfo(cl_program p0, cl_program_info p1, size_t p2, void* p3, size_t* p4) { return clGetProgramInfo_pfn(p0, p1, p2, p3, p4); }
195
+ #undef clGetSamplerInfo
196
+ #define clGetSamplerInfo clGetSamplerInfo_fn
197
+ inline cl_int clGetSamplerInfo(cl_sampler p0, cl_sampler_info p1, size_t p2, void* p3, size_t* p4) { return clGetSamplerInfo_pfn(p0, p1, p2, p3, p4); }
198
+ #undef clGetSupportedImageFormats
199
+ #define clGetSupportedImageFormats clGetSupportedImageFormats_fn
200
+ inline cl_int clGetSupportedImageFormats(cl_context p0, cl_mem_flags p1, cl_mem_object_type p2, cl_uint p3, cl_image_format* p4, cl_uint* p5) { return clGetSupportedImageFormats_pfn(p0, p1, p2, p3, p4, p5); }
201
+ #undef clLinkProgram
202
+ #define clLinkProgram clLinkProgram_fn
203
+ inline cl_program clLinkProgram(cl_context p0, cl_uint p1, const cl_device_id* p2, const char* p3, cl_uint p4, const cl_program* p5, void (CL_CALLBACK*p6) (cl_program, void*), void* p7, cl_int* p8) { return clLinkProgram_pfn(p0, p1, p2, p3, p4, p5, p6, p7, p8); }
204
+ #undef clReleaseCommandQueue
205
+ #define clReleaseCommandQueue clReleaseCommandQueue_fn
206
+ inline cl_int clReleaseCommandQueue(cl_command_queue p0) { return clReleaseCommandQueue_pfn(p0); }
207
+ #undef clReleaseContext
208
+ #define clReleaseContext clReleaseContext_fn
209
+ inline cl_int clReleaseContext(cl_context p0) { return clReleaseContext_pfn(p0); }
210
+ #undef clReleaseDevice
211
+ #define clReleaseDevice clReleaseDevice_fn
212
+ inline cl_int clReleaseDevice(cl_device_id p0) { return clReleaseDevice_pfn(p0); }
213
+ #undef clReleaseEvent
214
+ #define clReleaseEvent clReleaseEvent_fn
215
+ inline cl_int clReleaseEvent(cl_event p0) { return clReleaseEvent_pfn(p0); }
216
+ #undef clReleaseKernel
217
+ #define clReleaseKernel clReleaseKernel_fn
218
+ inline cl_int clReleaseKernel(cl_kernel p0) { return clReleaseKernel_pfn(p0); }
219
+ #undef clReleaseMemObject
220
+ #define clReleaseMemObject clReleaseMemObject_fn
221
+ inline cl_int clReleaseMemObject(cl_mem p0) { return clReleaseMemObject_pfn(p0); }
222
+ #undef clReleaseProgram
223
+ #define clReleaseProgram clReleaseProgram_fn
224
+ inline cl_int clReleaseProgram(cl_program p0) { return clReleaseProgram_pfn(p0); }
225
+ #undef clReleaseSampler
226
+ #define clReleaseSampler clReleaseSampler_fn
227
+ inline cl_int clReleaseSampler(cl_sampler p0) { return clReleaseSampler_pfn(p0); }
228
+ #undef clRetainCommandQueue
229
+ #define clRetainCommandQueue clRetainCommandQueue_fn
230
+ inline cl_int clRetainCommandQueue(cl_command_queue p0) { return clRetainCommandQueue_pfn(p0); }
231
+ #undef clRetainContext
232
+ #define clRetainContext clRetainContext_fn
233
+ inline cl_int clRetainContext(cl_context p0) { return clRetainContext_pfn(p0); }
234
+ #undef clRetainDevice
235
+ #define clRetainDevice clRetainDevice_fn
236
+ inline cl_int clRetainDevice(cl_device_id p0) { return clRetainDevice_pfn(p0); }
237
+ #undef clRetainEvent
238
+ #define clRetainEvent clRetainEvent_fn
239
+ inline cl_int clRetainEvent(cl_event p0) { return clRetainEvent_pfn(p0); }
240
+ #undef clRetainKernel
241
+ #define clRetainKernel clRetainKernel_fn
242
+ inline cl_int clRetainKernel(cl_kernel p0) { return clRetainKernel_pfn(p0); }
243
+ #undef clRetainMemObject
244
+ #define clRetainMemObject clRetainMemObject_fn
245
+ inline cl_int clRetainMemObject(cl_mem p0) { return clRetainMemObject_pfn(p0); }
246
+ #undef clRetainProgram
247
+ #define clRetainProgram clRetainProgram_fn
248
+ inline cl_int clRetainProgram(cl_program p0) { return clRetainProgram_pfn(p0); }
249
+ #undef clRetainSampler
250
+ #define clRetainSampler clRetainSampler_fn
251
+ inline cl_int clRetainSampler(cl_sampler p0) { return clRetainSampler_pfn(p0); }
252
+ #undef clSetEventCallback
253
+ #define clSetEventCallback clSetEventCallback_fn
254
+ inline cl_int clSetEventCallback(cl_event p0, cl_int p1, void (CL_CALLBACK*p2) (cl_event, cl_int, void*), void* p3) { return clSetEventCallback_pfn(p0, p1, p2, p3); }
255
+ #undef clSetKernelArg
256
+ #define clSetKernelArg clSetKernelArg_fn
257
+ inline cl_int clSetKernelArg(cl_kernel p0, cl_uint p1, size_t p2, const void* p3) { return clSetKernelArg_pfn(p0, p1, p2, p3); }
258
+ #undef clSetMemObjectDestructorCallback
259
+ #define clSetMemObjectDestructorCallback clSetMemObjectDestructorCallback_fn
260
+ inline cl_int clSetMemObjectDestructorCallback(cl_mem p0, void (CL_CALLBACK*p1) (cl_mem, void*), void* p2) { return clSetMemObjectDestructorCallback_pfn(p0, p1, p2); }
261
+ #undef clSetUserEventStatus
262
+ #define clSetUserEventStatus clSetUserEventStatus_fn
263
+ inline cl_int clSetUserEventStatus(cl_event p0, cl_int p1) { return clSetUserEventStatus_pfn(p0, p1); }
264
+ #undef clUnloadCompiler
265
+ #define clUnloadCompiler clUnloadCompiler_fn
266
+ inline cl_int clUnloadCompiler() { return clUnloadCompiler_pfn(); }
267
+ #undef clUnloadPlatformCompiler
268
+ #define clUnloadPlatformCompiler clUnloadPlatformCompiler_fn
269
+ inline cl_int clUnloadPlatformCompiler(cl_platform_id p0) { return clUnloadPlatformCompiler_pfn(p0); }
270
+ #undef clWaitForEvents
271
+ #define clWaitForEvents clWaitForEvents_fn
272
+ inline cl_int clWaitForEvents(cl_uint p0, const cl_event* p1) { return clWaitForEvents_pfn(p0, p1); }
@@ -0,0 +1,62 @@
1
+ //
2
+ // AUTOGENERATED, DO NOT EDIT
3
+ //
4
+ #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_HPP
5
+ #error "Invalid usage"
6
+ #endif
7
+
8
+ // generated by parser_cl.py
9
+ #define clCreateFromGLBuffer clCreateFromGLBuffer_
10
+ #define clCreateFromGLRenderbuffer clCreateFromGLRenderbuffer_
11
+ #define clCreateFromGLTexture clCreateFromGLTexture_
12
+ #define clCreateFromGLTexture2D clCreateFromGLTexture2D_
13
+ #define clCreateFromGLTexture3D clCreateFromGLTexture3D_
14
+ #define clEnqueueAcquireGLObjects clEnqueueAcquireGLObjects_
15
+ #define clEnqueueReleaseGLObjects clEnqueueReleaseGLObjects_
16
+ #define clGetGLContextInfoKHR clGetGLContextInfoKHR_
17
+ #define clGetGLObjectInfo clGetGLObjectInfo_
18
+ #define clGetGLTextureInfo clGetGLTextureInfo_
19
+
20
+ #if defined __APPLE__
21
+ #include <OpenCL/cl_gl.h>
22
+ #else
23
+ #include <CL/cl_gl.h>
24
+ #endif
25
+
26
+ // generated by parser_cl.py
27
+ #undef clCreateFromGLBuffer
28
+ #define clCreateFromGLBuffer clCreateFromGLBuffer_pfn
29
+ #undef clCreateFromGLRenderbuffer
30
+ #define clCreateFromGLRenderbuffer clCreateFromGLRenderbuffer_pfn
31
+ #undef clCreateFromGLTexture
32
+ #define clCreateFromGLTexture clCreateFromGLTexture_pfn
33
+ #undef clCreateFromGLTexture2D
34
+ #define clCreateFromGLTexture2D clCreateFromGLTexture2D_pfn
35
+ #undef clCreateFromGLTexture3D
36
+ #define clCreateFromGLTexture3D clCreateFromGLTexture3D_pfn
37
+ #undef clEnqueueAcquireGLObjects
38
+ #define clEnqueueAcquireGLObjects clEnqueueAcquireGLObjects_pfn
39
+ #undef clEnqueueReleaseGLObjects
40
+ #define clEnqueueReleaseGLObjects clEnqueueReleaseGLObjects_pfn
41
+ #undef clGetGLContextInfoKHR
42
+ #define clGetGLContextInfoKHR clGetGLContextInfoKHR_pfn
43
+ #undef clGetGLObjectInfo
44
+ #define clGetGLObjectInfo clGetGLObjectInfo_pfn
45
+ #undef clGetGLTextureInfo
46
+ #define clGetGLTextureInfo clGetGLTextureInfo_pfn
47
+
48
+ #ifdef cl_khr_gl_sharing
49
+
50
+ // generated by parser_cl.py
51
+ extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLBuffer)(cl_context, cl_mem_flags, cl_GLuint, int*);
52
+ extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLRenderbuffer)(cl_context, cl_mem_flags, cl_GLuint, cl_int*);
53
+ extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLTexture)(cl_context, cl_mem_flags, cl_GLenum, cl_GLint, cl_GLuint, cl_int*);
54
+ extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLTexture2D)(cl_context, cl_mem_flags, cl_GLenum, cl_GLint, cl_GLuint, cl_int*);
55
+ extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLTexture3D)(cl_context, cl_mem_flags, cl_GLenum, cl_GLint, cl_GLuint, cl_int*);
56
+ extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueAcquireGLObjects)(cl_command_queue, cl_uint, const cl_mem*, cl_uint, const cl_event*, cl_event*);
57
+ extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueReleaseGLObjects)(cl_command_queue, cl_uint, const cl_mem*, cl_uint, const cl_event*, cl_event*);
58
+ extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetGLContextInfoKHR)(const cl_context_properties*, cl_gl_context_info, size_t, void*, size_t*);
59
+ extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetGLObjectInfo)(cl_mem, cl_gl_object_type*, cl_GLuint*);
60
+ extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetGLTextureInfo)(cl_mem, cl_gl_texture_info, size_t, void*, size_t*);
61
+
62
+ #endif // cl_khr_gl_sharing
@@ -0,0 +1,42 @@
1
+ //
2
+ // AUTOGENERATED, DO NOT EDIT
3
+ //
4
+ #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_WRAPPERS_HPP
5
+ #error "Invalid usage"
6
+ #endif
7
+
8
+ #ifdef cl_khr_gl_sharing
9
+
10
+ // generated by parser_cl.py
11
+ #undef clCreateFromGLBuffer
12
+ #define clCreateFromGLBuffer clCreateFromGLBuffer_fn
13
+ inline cl_mem clCreateFromGLBuffer(cl_context p0, cl_mem_flags p1, cl_GLuint p2, int* p3) { return clCreateFromGLBuffer_pfn(p0, p1, p2, p3); }
14
+ #undef clCreateFromGLRenderbuffer
15
+ #define clCreateFromGLRenderbuffer clCreateFromGLRenderbuffer_fn
16
+ inline cl_mem clCreateFromGLRenderbuffer(cl_context p0, cl_mem_flags p1, cl_GLuint p2, cl_int* p3) { return clCreateFromGLRenderbuffer_pfn(p0, p1, p2, p3); }
17
+ #undef clCreateFromGLTexture
18
+ #define clCreateFromGLTexture clCreateFromGLTexture_fn
19
+ inline cl_mem clCreateFromGLTexture(cl_context p0, cl_mem_flags p1, cl_GLenum p2, cl_GLint p3, cl_GLuint p4, cl_int* p5) { return clCreateFromGLTexture_pfn(p0, p1, p2, p3, p4, p5); }
20
+ #undef clCreateFromGLTexture2D
21
+ #define clCreateFromGLTexture2D clCreateFromGLTexture2D_fn
22
+ inline cl_mem clCreateFromGLTexture2D(cl_context p0, cl_mem_flags p1, cl_GLenum p2, cl_GLint p3, cl_GLuint p4, cl_int* p5) { return clCreateFromGLTexture2D_pfn(p0, p1, p2, p3, p4, p5); }
23
+ #undef clCreateFromGLTexture3D
24
+ #define clCreateFromGLTexture3D clCreateFromGLTexture3D_fn
25
+ inline cl_mem clCreateFromGLTexture3D(cl_context p0, cl_mem_flags p1, cl_GLenum p2, cl_GLint p3, cl_GLuint p4, cl_int* p5) { return clCreateFromGLTexture3D_pfn(p0, p1, p2, p3, p4, p5); }
26
+ #undef clEnqueueAcquireGLObjects
27
+ #define clEnqueueAcquireGLObjects clEnqueueAcquireGLObjects_fn
28
+ inline cl_int clEnqueueAcquireGLObjects(cl_command_queue p0, cl_uint p1, const cl_mem* p2, cl_uint p3, const cl_event* p4, cl_event* p5) { return clEnqueueAcquireGLObjects_pfn(p0, p1, p2, p3, p4, p5); }
29
+ #undef clEnqueueReleaseGLObjects
30
+ #define clEnqueueReleaseGLObjects clEnqueueReleaseGLObjects_fn
31
+ inline cl_int clEnqueueReleaseGLObjects(cl_command_queue p0, cl_uint p1, const cl_mem* p2, cl_uint p3, const cl_event* p4, cl_event* p5) { return clEnqueueReleaseGLObjects_pfn(p0, p1, p2, p3, p4, p5); }
32
+ #undef clGetGLContextInfoKHR
33
+ #define clGetGLContextInfoKHR clGetGLContextInfoKHR_fn
34
+ inline cl_int clGetGLContextInfoKHR(const cl_context_properties* p0, cl_gl_context_info p1, size_t p2, void* p3, size_t* p4) { return clGetGLContextInfoKHR_pfn(p0, p1, p2, p3, p4); }
35
+ #undef clGetGLObjectInfo
36
+ #define clGetGLObjectInfo clGetGLObjectInfo_fn
37
+ inline cl_int clGetGLObjectInfo(cl_mem p0, cl_gl_object_type* p1, cl_GLuint* p2) { return clGetGLObjectInfo_pfn(p0, p1, p2); }
38
+ #undef clGetGLTextureInfo
39
+ #define clGetGLTextureInfo clGetGLTextureInfo_fn
40
+ inline cl_int clGetGLTextureInfo(cl_mem p0, cl_gl_texture_info p1, size_t p2, void* p3, size_t* p4) { return clGetGLTextureInfo_pfn(p0, p1, p2, p3, p4); }
41
+
42
+ #endif // cl_khr_gl_sharing
@@ -0,0 +1,53 @@
1
+ /*M///////////////////////////////////////////////////////////////////////////////////////
2
+ //
3
+ // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4
+ //
5
+ // By downloading, copying, installing or using the software you agree to this license.
6
+ // If you do not agree to this license, do not download, install,
7
+ // copy or use the software.
8
+ //
9
+ //
10
+ // License Agreement
11
+ // For Open Source Computer Vision Library
12
+ //
13
+ // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved.
14
+ // Third party copyrights are property of their respective owners.
15
+ //
16
+ // Redistribution and use in source and binary forms, with or without modification,
17
+ // are permitted provided that the following conditions are met:
18
+ //
19
+ // * Redistribution's of source code must retain the above copyright notice,
20
+ // this list of conditions and the following disclaimer.
21
+ //
22
+ // * Redistribution's in binary form must reproduce the above copyright notice,
23
+ // this list of conditions and the following disclaimer in the documentation
24
+ // and/or other materials provided with the distribution.
25
+ //
26
+ // * The name of the copyright holders may not be used to endorse or promote products
27
+ // derived from this software without specific prior written permission.
28
+ //
29
+ // This software is provided by the copyright holders and contributors "as is" and
30
+ // any express or implied warranties, including, but not limited to, the implied
31
+ // warranties of merchantability and fitness for a particular purpose are disclaimed.
32
+ // In no event shall the OpenCV Foundation or contributors be liable for any direct,
33
+ // indirect, incidental, special, exemplary, or consequential damages
34
+ // (including, but not limited to, procurement of substitute goods or services;
35
+ // loss of use, data, or profits; or business interruption) however caused
36
+ // and on any theory of liability, whether in contract, strict liability,
37
+ // or tort (including negligence or otherwise) arising in any way out of
38
+ // the use of this software, even if advised of the possibility of such damage.
39
+ //
40
+ //M*/
41
+
42
+ #ifndef OPENCV_CORE_OCL_RUNTIME_CLAMDBLAS_HPP
43
+ #define OPENCV_CORE_OCL_RUNTIME_CLAMDBLAS_HPP
44
+
45
+ #ifdef HAVE_CLAMDBLAS
46
+
47
+ #include "opencl_core.hpp"
48
+
49
+ #include "autogenerated/opencl_clblas.hpp"
50
+
51
+ #endif // HAVE_CLAMDBLAS
52
+
53
+ #endif // OPENCV_CORE_OCL_RUNTIME_CLAMDBLAS_HPP
@@ -0,0 +1,53 @@
1
+ /*M///////////////////////////////////////////////////////////////////////////////////////
2
+ //
3
+ // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4
+ //
5
+ // By downloading, copying, installing or using the software you agree to this license.
6
+ // If you do not agree to this license, do not download, install,
7
+ // copy or use the software.
8
+ //
9
+ //
10
+ // License Agreement
11
+ // For Open Source Computer Vision Library
12
+ //
13
+ // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved.
14
+ // Third party copyrights are property of their respective owners.
15
+ //
16
+ // Redistribution and use in source and binary forms, with or without modification,
17
+ // are permitted provided that the following conditions are met:
18
+ //
19
+ // * Redistribution's of source code must retain the above copyright notice,
20
+ // this list of conditions and the following disclaimer.
21
+ //
22
+ // * Redistribution's in binary form must reproduce the above copyright notice,
23
+ // this list of conditions and the following disclaimer in the documentation
24
+ // and/or other materials provided with the distribution.
25
+ //
26
+ // * The name of the copyright holders may not be used to endorse or promote products
27
+ // derived from this software without specific prior written permission.
28
+ //
29
+ // This software is provided by the copyright holders and contributors "as is" and
30
+ // any express or implied warranties, including, but not limited to, the implied
31
+ // warranties of merchantability and fitness for a particular purpose are disclaimed.
32
+ // In no event shall the OpenCV Foundation or contributors be liable for any direct,
33
+ // indirect, incidental, special, exemplary, or consequential damages
34
+ // (including, but not limited to, procurement of substitute goods or services;
35
+ // loss of use, data, or profits; or business interruption) however caused
36
+ // and on any theory of liability, whether in contract, strict liability,
37
+ // or tort (including negligence or otherwise) arising in any way out of
38
+ // the use of this software, even if advised of the possibility of such damage.
39
+ //
40
+ //M*/
41
+
42
+ #ifndef OPENCV_CORE_OCL_RUNTIME_CLAMDFFT_HPP
43
+ #define OPENCV_CORE_OCL_RUNTIME_CLAMDFFT_HPP
44
+
45
+ #ifdef HAVE_CLAMDFFT
46
+
47
+ #include "opencl_core.hpp"
48
+
49
+ #include "autogenerated/opencl_clfft.hpp"
50
+
51
+ #endif // HAVE_CLAMDFFT
52
+
53
+ #endif // OPENCV_CORE_OCL_RUNTIME_CLAMDFFT_HPP
@@ -0,0 +1,84 @@
1
+ /*M///////////////////////////////////////////////////////////////////////////////////////
2
+ //
3
+ // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4
+ //
5
+ // By downloading, copying, installing or using the software you agree to this license.
6
+ // If you do not agree to this license, do not download, install,
7
+ // copy or use the software.
8
+ //
9
+ //
10
+ // License Agreement
11
+ // For Open Source Computer Vision Library
12
+ //
13
+ // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved.
14
+ // Third party copyrights are property of their respective owners.
15
+ //
16
+ // Redistribution and use in source and binary forms, with or without modification,
17
+ // are permitted provided that the following conditions are met:
18
+ //
19
+ // * Redistribution's of source code must retain the above copyright notice,
20
+ // this list of conditions and the following disclaimer.
21
+ //
22
+ // * Redistribution's in binary form must reproduce the above copyright notice,
23
+ // this list of conditions and the following disclaimer in the documentation
24
+ // and/or other materials provided with the distribution.
25
+ //
26
+ // * The name of the copyright holders may not be used to endorse or promote products
27
+ // derived from this software without specific prior written permission.
28
+ //
29
+ // This software is provided by the copyright holders and contributors "as is" and
30
+ // any express or implied warranties, including, but not limited to, the implied
31
+ // warranties of merchantability and fitness for a particular purpose are disclaimed.
32
+ // In no event shall the OpenCV Foundation or contributors be liable for any direct,
33
+ // indirect, incidental, special, exemplary, or consequential damages
34
+ // (including, but not limited to, procurement of substitute goods or services;
35
+ // loss of use, data, or profits; or business interruption) however caused
36
+ // and on any theory of liability, whether in contract, strict liability,
37
+ // or tort (including negligence or otherwise) arising in any way out of
38
+ // the use of this software, even if advised of the possibility of such damage.
39
+ //
40
+ //M*/
41
+
42
+ #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP
43
+ #define OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP
44
+
45
+ #ifdef HAVE_OPENCL
46
+
47
+ #ifndef CL_RUNTIME_EXPORT
48
+ #if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_CORE_SHARED)) && (defined _WIN32 || defined WINCE) && \
49
+ !(defined(__OPENCV_BUILD) && defined(OPENCV_MODULE_IS_PART_OF_WORLD))
50
+ #define CL_RUNTIME_EXPORT __declspec(dllimport)
51
+ #else
52
+ #define CL_RUNTIME_EXPORT
53
+ #endif
54
+ #endif
55
+
56
+ #ifdef HAVE_OPENCL_SVM
57
+ #define clSVMAlloc clSVMAlloc_
58
+ #define clSVMFree clSVMFree_
59
+ #define clSetKernelArgSVMPointer clSetKernelArgSVMPointer_
60
+ #define clSetKernelExecInfo clSetKernelExecInfo_
61
+ #define clEnqueueSVMFree clEnqueueSVMFree_
62
+ #define clEnqueueSVMMemcpy clEnqueueSVMMemcpy_
63
+ #define clEnqueueSVMMemFill clEnqueueSVMMemFill_
64
+ #define clEnqueueSVMMap clEnqueueSVMMap_
65
+ #define clEnqueueSVMUnmap clEnqueueSVMUnmap_
66
+ #endif
67
+
68
+ #include "autogenerated/opencl_core.hpp"
69
+
70
+ #ifndef CL_DEVICE_DOUBLE_FP_CONFIG
71
+ #define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
72
+ #endif
73
+
74
+ #ifndef CL_DEVICE_HALF_FP_CONFIG
75
+ #define CL_DEVICE_HALF_FP_CONFIG 0x1033
76
+ #endif
77
+
78
+ #ifndef CL_VERSION_1_2
79
+ #define CV_REQUIRE_OPENCL_1_2_ERROR CV_Error(cv::Error::OpenCLApiCallError, "OpenCV compiled without OpenCL v1.2 support, so we can't use functionality from OpenCL v1.2")
80
+ #endif
81
+
82
+ #endif // HAVE_OPENCL
83
+
84
+ #endif // OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP
@@ -0,0 +1,47 @@
1
+ /*M///////////////////////////////////////////////////////////////////////////////////////
2
+ //
3
+ // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4
+ //
5
+ // By downloading, copying, installing or using the software you agree to this license.
6
+ // If you do not agree to this license, do not download, install,
7
+ // copy or use the software.
8
+ //
9
+ //
10
+ // License Agreement
11
+ // For Open Source Computer Vision Library
12
+ //
13
+ // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved.
14
+ // Third party copyrights are property of their respective owners.
15
+ //
16
+ // Redistribution and use in source and binary forms, with or without modification,
17
+ // are permitted provided that the following conditions are met:
18
+ //
19
+ // * Redistribution's of source code must retain the above copyright notice,
20
+ // this list of conditions and the following disclaimer.
21
+ //
22
+ // * Redistribution's in binary form must reproduce the above copyright notice,
23
+ // this list of conditions and the following disclaimer in the documentation
24
+ // and/or other materials provided with the distribution.
25
+ //
26
+ // * The name of the copyright holders may not be used to endorse or promote products
27
+ // derived from this software without specific prior written permission.
28
+ //
29
+ // This software is provided by the copyright holders and contributors "as is" and
30
+ // any express or implied warranties, including, but not limited to, the implied
31
+ // warranties of merchantability and fitness for a particular purpose are disclaimed.
32
+ // In no event shall the OpenCV Foundation or contributors be liable for any direct,
33
+ // indirect, incidental, special, exemplary, or consequential damages
34
+ // (including, but not limited to, procurement of substitute goods or services;
35
+ // loss of use, data, or profits; or business interruption) however caused
36
+ // and on any theory of liability, whether in contract, strict liability,
37
+ // or tort (including negligence or otherwise) arising in any way out of
38
+ // the use of this software, even if advised of the possibility of such damage.
39
+ //
40
+ //M*/
41
+
42
+ #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_WRAPPERS_HPP
43
+ #define OPENCV_CORE_OCL_RUNTIME_OPENCL_WRAPPERS_HPP
44
+
45
+ #include "autogenerated/opencl_core_wrappers.hpp"
46
+
47
+ #endif // OPENCV_CORE_OCL_RUNTIME_OPENCL_WRAPPERS_HPP