/* * Copyright (c) 2012-2017 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _OPENVX_H_ #define _OPENVX_H_ /*! * \file * \brief The top level OpenVX Header. */ /*! \brief Defines the length of the implementation name string, including the trailing zero. * \ingroup group_context */ #define VX_MAX_IMPLEMENTATION_NAME (64) /*! \brief Defines the length of a kernel name string to be added to OpenVX, including the trailing zero. * \ingroup group_kernel */ #define VX_MAX_KERNEL_NAME (256) /*! \brief Defines the length of a message buffer to copy from the log, including the trailing zero. * \ingroup group_basic_features */ #define VX_MAX_LOG_MESSAGE_LEN (1024) /*! \brief Defines the length of the reference name string, including the trailing zero. * \ingroup group_reference * \see vxSetReferenceName */ #define VX_MAX_REFERENCE_NAME (64) #include #include #include #include #include /*! \brief Defines the major version number macro. * \ingroup group_basic_features */ #define VX_VERSION_MAJOR(x) ((x & 0xFF) << 8) /*! \brief Defines the minor version number macro. * \ingroup group_basic_features */ #define VX_VERSION_MINOR(x) ((x & 0xFF) << 0) /*! \brief Defines the predefined version number for 1.0. * \ingroup group_basic_features */ #define VX_VERSION_1_0 (VX_VERSION_MAJOR(1) | VX_VERSION_MINOR(0)) /*! \brief Defines the predefined version number for 1.1. * \ingroup group_basic_features */ #define VX_VERSION_1_1 (VX_VERSION_MAJOR(1) | VX_VERSION_MINOR(1)) /*! \brief Defines the predefined version number for 1.2. * \ingroup group_basic_features */ #define VX_VERSION_1_2 (VX_VERSION_MAJOR(1) | VX_VERSION_MINOR(2)) /*! \brief Defines the OpenVX Version Number. * \ingroup group_basic_features */ #define VX_VERSION VX_VERSION_1_2 #endif