HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
config.h
Go to the documentation of this file.
1 // Copyright 2018 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #define OIDN_VERSION_MAJOR 2
7 #define OIDN_VERSION_MINOR 2
8 #define OIDN_VERSION_PATCH 2
9 #define OIDN_VERSION 20202
10 #define OIDN_VERSION_STRING "2.2.2"
11 
12 /* #undef OIDN_API_NAMESPACE */
13 /* #undef OIDN_STATIC_LIB */
14 
15 #if defined(OIDN_API_NAMESPACE)
16  #define OIDN_API_NAMESPACE_BEGIN namespace {
17  #define OIDN_API_NAMESPACE_END }
18  #define OIDN_API_NAMESPACE_USING using namespace ;
19  #define OIDN_API_EXTERN_C
20  #define OIDN_NAMESPACE ::oidn
21  #define OIDN_NAMESPACE_C _oidn
22  #define OIDN_NAMESPACE_BEGIN namespace { namespace oidn {
23  #define OIDN_NAMESPACE_END }}
24 #else
25  #define OIDN_API_NAMESPACE_BEGIN
26  #define OIDN_API_NAMESPACE_END
27  #define OIDN_API_NAMESPACE_USING
28  #if defined(__cplusplus)
29  #define OIDN_API_EXTERN_C extern "C"
30  #else
31  #define OIDN_API_EXTERN_C
32  #endif
33  #define OIDN_NAMESPACE oidn
34  #define OIDN_NAMESPACE_C oidn
35  #define OIDN_NAMESPACE_BEGIN namespace oidn {
36  #define OIDN_NAMESPACE_END }
37 #endif
38 
39 #define OIDN_NAMESPACE_USING using namespace OIDN_NAMESPACE;
40 
41 #if defined(OIDN_STATIC_LIB)
42  #define OIDN_API_IMPORT OIDN_API_EXTERN_C
43  #define OIDN_API_EXPORT OIDN_API_EXTERN_C
44 #elif defined(_WIN32)
45  #define OIDN_API_IMPORT OIDN_API_EXTERN_C __declspec(dllimport)
46  #define OIDN_API_EXPORT OIDN_API_EXTERN_C __declspec(dllexport)
47 #else
48  #define OIDN_API_IMPORT OIDN_API_EXTERN_C
49  #define OIDN_API_EXPORT OIDN_API_EXTERN_C __attribute__((visibility ("default")))
50 #endif
51 
52 #if defined(OpenImageDenoise_EXPORTS)
53  #define OIDN_API OIDN_API_EXPORT
54 #else
55  #define OIDN_API OIDN_API_IMPORT
56 #endif
57 
58 #if defined(_WIN32)
59  #define OIDN_DEPRECATED(msg) __declspec(deprecated(msg))
60 #else
61  #define OIDN_DEPRECATED(msg) __attribute__((deprecated(msg)))
62 #endif
63 
64 #if !defined(OIDN_DEVICE_CPU)
65  #define OIDN_DEVICE_CPU
66 #endif
67 #if !defined(OIDN_DEVICE_SYCL)
68 /* #undef OIDN_DEVICE_SYCL */
69 #endif
70 #if !defined(OIDN_DEVICE_CUDA)
71  #define OIDN_DEVICE_CUDA
72 #endif
73 #if !defined(OIDN_DEVICE_HIP)
74 /* #undef OIDN_DEVICE_HIP */
75 #endif
76 #if !defined(OIDN_DEVICE_METAL)
77 /* #undef OIDN_DEVICE_METAL */
78 #endif
79 
80 #define OIDN_FILTER_RT
81 #define OIDN_FILTER_RTLIGHTMAP