TIOVX User Guide
vx_array.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012-2016 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 
18 
19 #ifndef VX_ARRAY_H_
20 #define VX_ARRAY_H_
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
37 typedef struct _tivx_array_map_info_t
38 {
40  uint8_t *map_addr;
48 
54 typedef struct _vx_array
55 {
58 
60  tivx_array_map_info_t maps[TIVX_ARRAY_MAX_MAPS];
61 } tivx_array_t;
62 
63 
64 
77  vx_array arr, vx_enum item_type, vx_size capacity);
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif
Information about a array mapping.
Definition: vx_array.h:37
struct _vx_array * vx_array
size_t vx_size
int32_t vx_enum
The most basic type in the OpenVX system. Any type that inherits from tivx_reference_t must have a vx...
Definition: vx_reference.h:63
tivx_reference_t base
reference object
Definition: vx_array.h:57
vx_enum usage
Type of access being done by user, see vx_accessor_e.
Definition: vx_array.h:46
vx_enum vx_status
uint8_t * map_addr
Address mapped via vxMapArray()
Definition: vx_array.h:40
vx_size map_size
Size of memory region mapped via vxMapArray()
Definition: vx_array.h:42
vx_status ownInitVirtualArray(vx_array arr, vx_enum item_type, vx_size capacity)
function to initialize virtual array parameters
Array object internal state.
Definition: vx_array.h:54
vx_enum mem_type
Type of memory mapped via vxMapArray(), see vx_memory_type_e and tivx_memory_type_e.
Definition: vx_array.h:44