The OpenVX Specification  dba1aa3
vx.h
1 /*
2 
3  * Copyright (c) 2012-2017 The Khronos Group Inc.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef _OPENVX_H_
19 #define _OPENVX_H_
20 
29 #define VX_MAX_IMPLEMENTATION_NAME (64)
30 
34 #define VX_MAX_KERNEL_NAME (256)
35 
39 #define VX_MAX_LOG_MESSAGE_LEN (1024)
40 
45 #define VX_MAX_REFERENCE_NAME (64)
46 
47 #include <VX/vx_vendors.h>
48 #include <VX/vx_types.h>
49 #include <VX/vx_kernels.h>
50 #include <VX/vx_api.h>
51 #include <VX/vx_nodes.h>
52 
56 #define VX_VERSION_MAJOR(x) ((x & 0xFF) << 8)
57 
61 #define VX_VERSION_MINOR(x) ((x & 0xFF) << 0)
62 
66 #define VX_VERSION_1_0 (VX_VERSION_MAJOR(1) | VX_VERSION_MINOR(0))
67 
71 #define VX_VERSION_1_1 (VX_VERSION_MAJOR(1) | VX_VERSION_MINOR(1))
72 
76 #define VX_VERSION_1_2 (VX_VERSION_MAJOR(1) | VX_VERSION_MINOR(2))
77 
81 #define VX_VERSION VX_VERSION_1_2
82 
83 #endif