TIOVX User Guide
vx_khr_bidirectional_parameters.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 The Khronos Group Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef _OPENVX_BIDIRECTIONAL_H_
18 #define _OPENVX_BIDIRECTIONAL_H_
19 
25 #define OPENVX_KHR_BIDIRECTIONAL_PARAMETERS "vx_khr_bidirectional_parameters"
26 
27 #define OPENVX_KHR_BIDIRECTIONAL_OPTIONAL_KERNELS /* Remove if optional kernels are not implemented */
28 
29 #include <VX/vx.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
40 enum vx_bidirectional_enum_e
41 {
42  VX_BIDIRECTIONAL = VX_ENUM_BASE(VX_ID_KHRONOS, VX_ENUM_DIRECTION) + 0x2 /* Additional parameter direction enumeration */
43 };
44 
45 #ifdef OPENVX_KHR_BIDIRECTIONAL_OPTIONAL_KERNELS
46 
47 #ifndef VX_VERSION_1_1
48 
56 VX_API_ENTRY vx_node VX_API_CALL vxAccumulateImageNode(vx_graph graph, vx_image input, vx_image accum);
57 #endif
58 
68 VX_API_ENTRY vx_node VX_API_CALL vxAccumulateWeightedImageNodeX(vx_graph graph, vx_image input, vx_float32 alpha, vx_image accum);
69 
79 VX_API_ENTRY vx_node VX_API_CALL vxAccumulateSquareImageNodeX(vx_graph graph, vx_image input, vx_uint32 shift, vx_image accum);
80 #endif
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif
struct _vx_image * vx_image
VX_ID_KHRONOS
VX_ENUM_DIRECTION
float vx_float32
vx_node VX_API_CALL vxAccumulateImageNode(vx_graph graph, vx_image input, vx_image accum)
[Graph] Creates an accumulate node.
#define VX_ENUM_BASE(vendor, id)
VX_BIDIRECTIONAL
uint32_t vx_uint32
struct _vx_graph * vx_graph
struct _vx_node * vx_node
vx_status(* VX_API_CALL)(vx_reference *ref)
Callback type used to register release callbacks from object derived from references.
Definition: vx_reference.h:56