Skip to content

Commit cbd840f

Browse files
authored
Merge pull request #7 from sunsided/feature/openvx-extensions
Add extension headers
2 parents 5867c25 + 7e48119 commit cbd840f

File tree

7 files changed

+1434
-6
lines changed

7 files changed

+1434
-6
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ jobs:
8181
sudo apt-get update
8282
sudo apt-get install -y libclang-dev libopencv-dev ocl-icd-opencl-dev intel-opencl-icd
8383
84+
- name: Install LLVM and Clang
85+
uses: KyleMayes/install-llvm-action@v2
86+
with:
87+
version: "16.0"
88+
8489
- name: Build libraries and sample
8590
run: cargo build
8691

openvx-sys/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
# openvx-sys
22

3-
To get the latest OpenVX API headers, go to [github.com/KhronosGroup/OpenVX-Registry](https://github.com/KhronosGroup/OpenVX-Registry).
3+
![](https://img.shields.io/badge/OpenVX-1.3.1-blue)
4+
5+
This crate is built against LLVM/Clang 16.
6+
7+
## OpenVX Headers
8+
9+
Headers are vendored with this crate's repo. To get the latest OpenVX API headers, visit
10+
[github.com/KhronosGroup/OpenVX-Registry](https://github.com/KhronosGroup/OpenVX-Registry).

openvx-sys/include/1.3.1/extensions/VX/vx_khr_bidirectional_parameters.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ enum vx_bidirectional_enum_e
4949
* \param [in,out] accum The accumulation image in <tt>\ref VX_DF_IMAGE_S16</tt>.
5050
* \ingroup group_vision_function_accumulate
5151
* \return <tt>\ref vx_node</tt>.
52-
* \retval vx_node A node reference. Any possible errors preventing a successful creation should be checked using <tt>\ref vxGetStatus</tt>
52+
* \retval vx_node A node reference. Any possible errors preventing a successful creation should be checked using <tt>\ref vxGetStatus</tt>
5353
*/
5454
VX_API_ENTRY vx_node VX_API_CALL vxAccumulateImageNode(vx_graph graph, vx_image input, vx_image accum);
5555

@@ -60,7 +60,7 @@ VX_API_ENTRY vx_node VX_API_CALL vxAccumulateImageNode(vx_graph graph, vx_image
6060
* \param [in,out] accum The <tt>\ref VX_DF_IMAGE_U8</tt> accumulation image.
6161
* \ingroup group_vision_function_accumulate_weighted
6262
* \return <tt>\ref vx_node</tt>.
63-
* \retval vx_node A node reference. Any possible errors preventing a successful creation should be checked using <tt>\ref vxGetStatus</tt>
63+
* \retval vx_node A node reference. Any possible errors preventing a successful creation should be checked using <tt>\ref vxGetStatus</tt>
6464
*/
6565
VX_API_ENTRY vx_node VX_API_CALL vxAccumulateWeightedImageNodeX(vx_graph graph, vx_image input, vx_float32 alpha, vx_image accum);
6666

@@ -71,7 +71,7 @@ VX_API_ENTRY vx_node VX_API_CALL vxAccumulateWeightedImageNodeX(vx_graph graph,
7171
* \param [in,out] accum The accumulation image in <tt>\ref VX_DF_IMAGE_S16</tt>.
7272
* \ingroup group_vision_function_accumulate_square
7373
* \return <tt>\ref vx_node</tt>.
74-
* \retval vx_node A node reference. Any possible errors preventing a successful creation should be checked using <tt>\ref vxGetStatus</tt>
74+
* \retval vx_node A node reference. Any possible errors preventing a successful creation should be checked using <tt>\ref vxGetStatus</tt>
7575
*/
7676
VX_API_ENTRY vx_node VX_API_CALL vxAccumulateSquareImageNodeX(vx_graph graph, vx_image input, vx_uint32 shift, vx_image accum);
7777
#endif

openvx-sys/include/1.3.1/extensions/VX/vx_khr_pipelining.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ typedef struct _vx_event {
494494
VX_API_ENTRY vx_status VX_API_CALL vxWaitEvent(vx_context context, vx_event_t *event, vx_bool do_not_block);
495495

496496
/*! \brief Enable event generation
497-
*
497+
*
498498
* Depending on the implementation, events may be either enabled or disabled by default.
499499
*
500500
* \param context [in] OpenVX context

openvx-sys/include/1.3.1/extensions/VX/vx_khr_swap_move.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
1817
#ifndef _OPENVX_SWAP_MOVE_H_
1918
#define _OPENVX_SWAP_MOVE_H_
2019

openvx-sys/src/lib.rs

Lines changed: 1403 additions & 0 deletions
Large diffs are not rendered by default.

openvx-sys/wrapper.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#include "include/1.3.1/standard/VX/vx.h"
22
#include "include/1.3.1/standard/VX/vx_compatibility.h"
33
#include "include/1.3.1/standard/VX/vxu.h"
4+
5+
#include "include/1.3.1/extensions/VX/vx_import.h"
6+
// #include "include/1.3.1/extensions/VX/vx_khr_bidirectional_parameters.h"
7+
#include "include/1.3.1/extensions/VX/vx_khr_buffer_aliasing.h"
8+
#include "include/1.3.1/extensions/VX/vx_khr_class.h"
9+
#include "include/1.3.1/extensions/VX/vx_khr_icd.h"
10+
#include "include/1.3.1/extensions/VX/vx_khr_import_kernel.h"
11+
#include "include/1.3.1/extensions/VX/vx_khr_opencl_interop.h"
12+
#include "include/1.3.1/extensions/VX/vx_khr_pipelining.h"
13+
#include "include/1.3.1/extensions/VX/vx_khr_raw_image.h"
14+
#include "include/1.3.1/extensions/VX/vx_khr_swap_move.h"
15+
#include "include/1.3.1/extensions/VX/vx_khr_tiling.h"
16+
#include "include/1.3.1/extensions/VX/vx_khr_user_data_object.h"
17+
// #include "include/1.3.1/extensions/VX/vx_khr_xml.h"

0 commit comments

Comments
 (0)