The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
vx.h
1 /*
2  * Copyright (c) 2012-2014 The Khronos Group Inc.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and/or associated documentation files (the
6  * "Materials"), to deal in the Materials without restriction, including
7  * without limitation the rights to use, copy, modify, merge, publish,
8  * distribute, sublicense, and/or sell copies of the Materials, and to
9  * permit persons to whom the Materials are furnished to do so, subject to
10  * the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included
13  * in all copies or substantial portions of the Materials.
14  *
15  * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21  * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
22  */
23 
24 #ifndef _OPENVX_H_
25 #define _OPENVX_H_
26 
36 #define VX_MAX_IMPLEMENTATION_NAME (64)
37 
41 #define VX_MAX_KERNEL_NAME (256)
42 
46 #define VX_MAX_LOG_MESSAGE_LEN (1024)
47 
48 #include <VX/vx_vendors.h>
49 #include <VX/vx_types.h>
50 #include <VX/vx_kernels.h>
51 #include <VX/vx_api.h>
52 #include <VX/vx_nodes.h>
53 
57 #define VX_VERSION_MAJOR(x) ((x & 0xFF) << 8)
58 
62 #define VX_VERSION_MINOR(x) ((x & 0xFF) << 0)
63 
67 #define VX_VERSION_1_0 (VX_VERSION_MAJOR(1) | VX_VERSION_MINOR(0))
68 
72 #define VX_VERSION VX_VERSION_1_0
73 
74 #endif