TIOVX User Guide
tivx_obj_desc.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright (c) 2017-2026 Texas Instruments Incorporated
4 *
5 * All rights reserved not granted herein.
6 *
7 * Limited License.
8 *
9 * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10 * license under copyrights and patents it now or hereafter owns or controls to make,
11 * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12 * terms herein. With respect to the foregoing patent license, such license is granted
13 * solely to the extent that any such patent is necessary to Utilize the software alone.
14 * The patent license shall not apply to any combinations which include this software,
15 * other than combinations with devices manufactured by or for TI ("TI Devices").
16 * No hardware patent is licensed hereunder.
17 *
18 * Redistributions must preserve existing copyright notices and reproduce this license
19 * (including the above copyright notice and the disclaimer and (if applicable) source
20 * code license limitations below) in the documentation and/or other materials provided
21 * with the distribution
22 *
23 * Redistribution and use in binary form, without modification, are permitted provided
24 * that the following conditions are met:
25 *
26 * * No reverse engineering, decompilation, or disassembly of this software is
27 * permitted with respect to any software provided in binary form.
28 *
29 * * any redistribution and use are licensed by TI for use only with TI Devices.
30 *
31 * * Nothing shall obligate TI to provide you with source code for the software
32 * licensed and provided to you in object code.
33 *
34 * If software source code is provided to you, modification and redistribution of the
35 * source code are permitted provided that the following conditions are met:
36 *
37 * * any redistribution and use of the source code, including any resulting derivative
38 * works, are licensed by TI for use only with TI Devices.
39 *
40 * * any redistribution and use of any object code compiled from the source code
41 * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42 *
43 * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44 *
45 * may be used to endorse or promote products derived from this software without
46 * specific prior written permission.
47 *
48 * DISCLAIMER.
49 *
50 * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53 * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59 * OF THE POSSIBILITY OF SUCH DAMAGE.
60 *
61 */
62 
63 
64 
65 #ifndef TIVX_OBJ_DESC_H_
66 #define TIVX_OBJ_DESC_H_
67 
68 #include <TI/tivx_mem.h>
69 #include <TI/tivx_config.h>
70 #include <TI/tivx_ext_raw_image.h>
71 #include <VX/vx_khr_pipelining.h>
72 
73 #ifdef __cplusplus
74 extern "C" {
75 #endif
76 
85 #define TIVX_OBJ_DESC_MAX_SHM_ENTRY_SIZE (1024U)
86 
92 #define TIVX_IMAGE_MAX_PLANES (4u)
93 
99 #define TIVX_CONTEXT_MAX_TENSOR_DIMS (4)
100 
104 #define TIVX_REF_FLAG_LOG_RT_TRACE (0x00000001u)
105 
109 #define TIVX_REF_FLAG_IS_INVALID (0x00000002u)
110 
114 #define TIVX_NODE_FLAG_IS_REPLICATED (0x00000001u)
115 
119 #define TIVX_NODE_FLAG_IS_EXECUTED (0x00000002u)
120 
124 #define TIVX_NODE_FLAG_IS_USER_CALLBACK (0x00000004u)
125 
130 #define TIVX_NODE_FLAG_IS_TARGET_KERNEL (0x00000008u)
131 
135 #define TIVX_NODE_FLAG_IS_SUPERNODE (0x00000010u)
136 
138 #define TIVX_REF_FLAG_IS_INPUT (0x00000020u)
139 
141 #define TIVX_REF_FLAG_IS_IN_KERNEL (0x00000040u)
142 
144 #define TIVX_REF_FLAG_IS_IN_GRAPH (0x00000080u)
145 
150 #define TIVX_NODE_OBJ_DESC_STATE_IDLE (0x0u)
151 
163 #define TIVX_NODE_OBJ_DESC_STATE_BLOCKED (0x1u)
164 
165 
170 #define TIVX_OBJ_DESC_MAX_HOST_PORT_ID_CPU (16u)
171 
177 typedef enum _tivx_obj_desc_type_e {
178 
181 
184 
187 
190 
193 
196 
199 
203 
207 
211 
215 
219 
223 
227 
230 
233 
236 
240 
244 
248 
252 
255 
259 
262 
264 
270 typedef enum _tivx_image_create_type_e
271 {
284 
286 
292 typedef enum _tivx_tensor_create_type_e
293 {
298 
300 
306 typedef struct _tivx_remap_point {
307 
308  vx_float32 src_x;
309  vx_float32 src_y;
310 
312 
323 typedef struct _tivx_obj_desc_t {
324 
326  volatile uint16_t obj_desc_id;
327 
329  volatile uint16_t type;
330 
335  volatile uint16_t scope_obj_desc_id;
336 
338  volatile uint16_t in_node_done_cnt;
339 
341  volatile uint64_t host_ref;
342 
344  volatile uint32_t flags;
345 
347  volatile uint32_t element_idx;
348 
350  volatile uint64_t timestamp;
351 
353  volatile uint32_t host_cpu_id;
354 
356  volatile uint16_t num_enqueues;
357 
359  volatile uint16_t supp_data_id;
360 
367  volatile uint16_t host_port_id[TIVX_OBJ_DESC_MAX_HOST_PORT_ID_CPU];
368 
370 
381 typedef struct _tivx_error_info
382 {
388 
392 
395  uint32_t replica_status;
396 
398 
410 typedef struct _tivx_obj_desc_node
411 {
414 
417  volatile uint32_t flags;
418 
420  volatile uint32_t kernel_id;
421 
423  volatile uint32_t kernel_name_obj_desc_id;
424 
426  volatile uint32_t target_id;
427 
437  volatile uint32_t node_complete_cmd_obj_desc_id;
438 
446  volatile uint32_t target_kernel_index[TIVX_NODE_MAX_REPLICATE];
447 
449  volatile uint32_t exe_status;
450 
452  volatile uint32_t exe_time_beg_h;
453 
455  volatile uint32_t exe_time_beg_l;
456 
458  volatile uint32_t exe_time_end_h;
459 
461  volatile uint32_t exe_time_end_l;
462 
464  volatile uint32_t num_params;
465 
467  volatile uint32_t num_out_nodes;
468 
470  volatile uint32_t num_in_nodes;
471 
474 
480  volatile uint32_t is_prm_replicated;
481 
486  volatile uint32_t num_of_replicas;
487 
489  volatile uint16_t data_id[TIVX_KERNEL_MAX_PARAMS];
490 
493  volatile uint16_t data_ref_q_id[TIVX_KERNEL_MAX_PARAMS];
494 
496  volatile uint16_t out_node_id[TIVX_NODE_MAX_OUT_NODES];
497 
499  volatile uint16_t in_node_id[TIVX_NODE_MAX_IN_NODES];
500 
504  volatile uint16_t state;
505 
508  volatile uint16_t blocked_node_id;
509 
511  volatile uint16_t pipeline_id;
512 
514  volatile uint16_t prev_pipe_node_id;
515 
519  volatile uint32_t is_prm_input;
520 
526  volatile uint32_t is_prm_bidi;
527 
531  volatile uint32_t is_prm_data_ref_q;
532 
536  volatile uint32_t is_prm_array_element;
537 
541  volatile uint32_t source_state;
542 
545  volatile uint32_t num_pipeup_bufs;
546 
550  volatile uint32_t pipeup_buf_idx;
551 
554  volatile uint32_t block_width;
555 
558  volatile uint32_t block_height;
559 
563 
569 
573  /* May need to add rsv bytes if a new field comes after this*/
574 
576 
582 typedef struct _tivx_obj_desc_image
583 {
589  volatile uint32_t width;
591  volatile uint32_t height;
593  volatile uint32_t format;
595  volatile uint32_t planes;
597  volatile uint32_t color_space;
599  volatile uint32_t color_range;
601  volatile uint32_t mem_size[TIVX_IMAGE_MAX_PLANES];
603  volatile uint16_t parent_id;
605  volatile uint16_t rsv[1];
616  volatile uint32_t uniform_image_pixel_value;
618  volatile uint32_t create_type;
624 
625 
631 typedef struct _tivx_obj_desc_remap
632 {
638  volatile uint32_t src_width;
640  volatile uint32_t src_height;
642  volatile uint32_t dst_width;
644  volatile uint32_t dst_height;
646  volatile uint32_t mem_size;
648 
654 typedef struct _tivx_obj_desc_matrix
655 {
661  volatile uint32_t rows;
663  volatile uint32_t columns;
665  volatile uint32_t origin_x;
667  volatile uint32_t origin_y;
669  volatile vx_enum pattern;
671  volatile uint32_t mem_size;
673  volatile vx_enum data_type;
674 
676 
682 typedef struct _tivx_obj_desc_lut
683 {
689  volatile vx_enum item_type;
695  volatile uint32_t mem_size;
696 
698 
704 typedef struct _tivx_obj_desc_pyramid
705 {
711  volatile vx_uint32 width;
713  volatile uint32_t height;
715  volatile vx_float32 scale;
717  volatile vx_df_image format;
719  volatile uint16_t obj_desc_id[TIVX_PYRAMID_MAX_LEVEL_OBJECTS];
721 
727 typedef struct _tivx_obj_desc_convolution
728 {
734  volatile uint32_t rows;
736  volatile uint32_t columns;
738  volatile uint32_t scale;
740  volatile uint32_t mem_size;
742 
748 typedef struct _tivx_obj_desc_threshold
749 {
753  volatile vx_enum type;
755  volatile int32_t value;
757  volatile int32_t upper;
759  volatile int32_t lower;
761  volatile int32_t true_value;
763  volatile int32_t false_value;
765  volatile vx_enum data_type;
767 
773 typedef struct _tivx_obj_desc_distribution
774 {
780  volatile uint32_t num_bins;
782  volatile uint32_t offset;
784  volatile uint32_t range;
786  volatile uint32_t num_win;
788  volatile uint32_t mem_size;
789 
791 
797 typedef struct _tivx_obj_desc_array
798 {
804  volatile vx_enum item_type;
806  volatile uint32_t item_size;
808  volatile uint32_t num_items;
810  volatile uint32_t capacity;
812  volatile uint32_t mem_size;
813 
815 
821 typedef struct _tivx_obj_desc_user_data_object
822 {
828  volatile uint32_t mem_size;
830  volatile uint32_t valid_mem_size;
832  volatile vx_char type_name[VX_MAX_REFERENCE_NAME];
833 
835 
841 typedef struct _tivx_obj_desc_raw_image
842 {
856  volatile uint32_t mem_size[TIVX_RAW_IMAGE_MAX_EXPOSURES];
858  volatile uint32_t create_type;
863 
865 
871 typedef struct _tivx_obj_desc_object_array
872 {
876  volatile vx_enum item_type;
878  volatile uint32_t num_items;
880  volatile uint16_t obj_desc_id[TIVX_OBJECT_ARRAY_MAX_ITEMS];
883 
885 
891 typedef struct _tivx_obj_desc_scalar
892 {
896  volatile uint32_t data_type;
898  volatile uint32_t rsv;
899 
900  union {
902  volatile vx_char chr;
904  volatile vx_int8 s08;
906  volatile vx_uint8 u08;
908  volatile vx_int16 s16;
910  volatile vx_uint16 u16;
912  volatile vx_int32 s32;
914  volatile vx_uint32 u32;
916  volatile vx_int64 s64;
918  volatile vx_uint64 u64;
919 #if defined(EXPERIMENTAL_PLATFORM_SUPPORTS_16_FLOAT)
920 
921  volatile vx_float16 f16;
922 #endif
923 
924  volatile vx_float32 f32;
926  volatile vx_float64 f64;
928  volatile vx_df_image fcc;
930  volatile vx_enum enm;
932  volatile vx_size size;
934  volatile vx_bool boolean;
935  } data;
936 
938 
944 typedef struct _tivx_obj_desc_tensor
945 {
951  volatile uint32_t number_of_dimensions;
953  volatile uint32_t data_type;
955  volatile uint32_t create_type;
957  volatile uint32_t fixed_point_position;
959  volatile uint32_t scaling_divisor;
963  volatile uint32_t dimensions[TIVX_CONTEXT_MAX_TENSOR_DIMS];
977  volatile int32_t stride[TIVX_CONTEXT_MAX_TENSOR_DIMS];
979  volatile uint32_t mem_size;
981  volatile uint16_t parent_id;
983  volatile uint16_t align[1];
985 
996 void tivxGetObjDescList(volatile uint16_t obj_desc_id[],
997  tivx_obj_desc_t *obj_desc[], uint32_t num_desc_id);
998 
1011 tivx_obj_desc_t *tivxGetObjDescElement(tivx_obj_desc_t *obj_desc, uint16_t elem_idx);
1012 
1028 void tivx_obj_desc_strncpy(volatile void *dst, volatile void *src, uint32_t size);
1029 
1045 void tivx_obj_desc_memcpy(volatile void *dst, const volatile void *src, uint32_t size);
1046 
1062 void tivx_obj_desc_memset(volatile void *dst, uint8_t val, uint32_t size);
1063 
1064 
1080 int32_t tivx_obj_desc_strncmp(volatile void *dst, volatile void *src, uint32_t size);
1081 
1100 int32_t tivx_obj_desc_strncmp_delim(volatile void *dst, volatile void *src, uint32_t size, char delim);
1101 
1102 #ifdef __cplusplus
1103 }
1104 #endif
1105 
1106 #endif
volatile uint32_t num_items
number of valid items in array
Value of a invalid object descriptor.
Object descriptor that has information related to Distribution object.
volatile uint32_t src_width
The source width.
volatile vx_uint64 u64
Unsigned 64 bit.
Image object descriptor as placed in shared memory.
vx_bool
volatile uint32_t flags
reference flags
Object descriptor.
volatile uint16_t parent_id
object descriptor ID of parent (if any)
volatile uint32_t exe_status
Legacy field: node execution status.
volatile uint32_t height
height of the level0 image
void tivxGetObjDescList(volatile uint16_t obj_desc_id[], tivx_obj_desc_t *obj_desc[], uint32_t num_desc_id)
Function to get the pointer to object descriptors for the given object descriptor id...
volatile uint32_t mem_size
size of buffer pointed to by mem_ptr
vx_border_t border_mode
border mode
vx_rectangle_t valid_roi
valid region of raw image to use for processing
volatile vx_char chr
A character.
tivx_image_create_type_e
Method by which image is created.
volatile uint32_t num_win
number of windows
volatile vx_enum item_type
The item type of the lut.
#define VX_MAX_REFERENCE_NAME
volatile vx_enum type
type of threshold
Remap point in remap table.
volatile vx_enum enm
Signed 32 bit.
uint16_t vx_uint16
tivx_tensor_create_type_e
Method by which tensor is created.
Per-replica node error info.
volatile uint32_t mem_size
size of buffer pointed to by mem_ptr
uint8_t vx_uint8
tivx_obj_desc_t base
base object descriptor
vx_uint16 error_info_size
The number of valid bytes in error_info. 0 if not in use.
volatile vx_bool boolean
Boolean Values.
void tivx_obj_desc_memset(volatile void *dst, uint8_t val, uint32_t size)
Utility function for memory/string copy/set operation on object descriptor pointers.
volatile uint64_t host_ref
Host reference, accessible only on HOST side.
volatile uint32_t dst_width
The destination width.
volatile vx_bool is_from_list
A flag to indicate if object array is instantiated from a list of references.
Object descriptor queue.
volatile uint32_t rows
number of rows
int16_t vx_int16
size_t vx_size
volatile uint32_t block_height
variable to store the tile height for the given node
Object descriptor graph.
tivx_obj_desc_t base
base object descriptor
#define TIVX_OBJECT_ARRAY_MAX_ITEMS
Maximum number of objects supported in object array.
tivx_obj_desc_t base
base object descriptor
Object descriptor that has per-replica node error info.
volatile uint32_t offset
number of columns
#define TIVX_NODE_MAX_REPLICATE
Max number of times a given node can be replicated.
volatile uint16_t prev_pipe_node_id
node in the previous pipeline relative to this node
volatile uint32_t origin_x
position at which to place the mask
tivx_obj_desc_t base
base object descriptor
user data object descriptor as placed in shared memory
Object descriptor that has information related to Array object.
int32_t tivx_obj_desc_strncmp(volatile void *dst, volatile void *src, uint32_t size)
Utility function for memory/string compare operation on object descriptor pointers.
volatile uint32_t origin_y
position at which to place the mask
int32_t vx_enum
volatile tivx_error_info_t single_error_info
Singular error info for this node, valid when the node is NOT replicated.
volatile uint32_t planes
Number of data planes in image.
volatile uint32_t num_bins
number of rows
tivx_shared_mem_ptr_t mem_ptr
lut memory address
volatile vx_uint16 u16
Unsigned 16 bit.
volatile uint32_t scaling_divisor
each element of the tensor can be divided by this scaling value in order to obtain its real value ...
volatile vx_uint32 u32
Unsigned 32 bit.
lut object descriptor as placed in shared memory
Object descriptor that has information related to kernel name.
Create using vxCreateUniformImage()
int32_t vx_int32
Object descriptor that has information related to Convolution object.
volatile int32_t true_value
threshold true value
object array object descriptor as placed in shared memory
volatile uint16_t obj_desc_id
ID of object in shared memory.
Create using vxCreateImageFromHandle()
volatile uint32_t exe_time_end_l
node execution time
int64_t vx_int64
Object descriptor that has information related to matrix object.
volatile uint32_t item_size
Size of the array item.
Object descriptor that has information related to node object.
volatile uint32_t scaling_divisor_fixed_point_position
Fixed point precision of the scaling divisor.
char vx_char
volatile vx_enum item_type
The item type of the array.
float vx_float32
The TI Raw Image extension.
distribution object descriptor as placed in shared memory
array object descriptor as placed in shared memory
volatile uint32_t columns
number of columns
tivx_shared_mem_ptr_t mem_ptr
convolution memory address
volatile uint16_t pipeline_id
pipeline ID to which this node obj desc belongs
Create using vxCreateImageFromChannel()
Create using vxCreateImage()
volatile uint32_t create_type
method by which image was created, see tivx_image_create_type_e
tivx_shared_mem_ptr_t mem_ptr
user data object memory address
convolution object descriptor as placed in shared memory
volatile vx_float64 f64
64 bit float
Marker value used to indicate object descriptor table has been initialized.
tivx_obj_desc_t base
base object descriptor
volatile uint32_t scale
scale factor
vx_rectangle_t valid_roi
valid region of image to use for processing
volatile uint32_t range
scale factor
volatile uint32_t is_prm_data_ref_q
bitmask which indicates if prm is data ref q bitN = 1 means param at index N is data ref q ...
volatile vx_df_image format
image format
volatile uint32_t create_type
method by which tensor was created, see tivx_tensor_create_type_e
The OpenVX Pipelining, Streaming and Batch Processing extension API.
volatile uint32_t data_type
Data type of tensor.
Create using vxCreateImageFromROI()
#define TIVX_OBJ_DESC_MAX_HOST_PORT_ID_CPU
Max size of the array host_port_id, in tivx_obj_desc_t.
volatile uint32_t exe_time_end_h
node execution time
Object descriptor that has information related to command object.
volatile vx_int16 s16
Signed 16 bit.
volatile uint32_t format
Data format of image, see vx_df_image.
volatile uint32_t number_of_dimensions
Number of dimensions in the tensor.
tivx_obj_desc_t * tivxGetObjDescElement(tivx_obj_desc_t *obj_desc, uint16_t elem_idx)
Function to get the pointer to an element of an object array. If the object being passed is a regular...
Object descriptor that has information related to image object.
volatile vx_float32 f32
32 bit float
tivx_obj_desc_t base
base object descriptor
uint32_t vx_df_image
volatile uint32_t source_state
Flag indicating whether or not node is in pipeup state or steady state.
volatile uint32_t is_prm_replicated
bitmask which indicates if prm is replicated valid only when TIVX_NODE_FLAG_IS_REPLICATED is set in f...
volatile uint32_t dst_height
The destination height.
tivx_obj_desc_t base
base object descriptor
Object descriptor that has information related to Lut object.
tivx_obj_desc_t base
base object descriptor
#define TIVX_IMAGE_MAX_PLANES
Max possible planes of data in an image.
Definition: tivx_obj_desc.h:92
Tensor object descriptor as placed in shared memory.
volatile vx_enum data_type
data type of the threshold
volatile uint32_t flags
node flags see TIVX_NODE_FLAG_xxx
Object descriptor that has information related to Pyramid object.
volatile uint32_t kernel_name_obj_desc_id
kernel name object descriptor ID
tivx_obj_desc_t base
base object descriptor
#define TIVX_NODE_MAX_OUT_NODES
Max nodes taking output form a given node.
#define TIVX_CONTEXT_MAX_TENSOR_DIMS
Max possible dimensions of data in a tensor.
Definition: tivx_obj_desc.h:99
Object descriptor that has information related to threshold object.
volatile vx_enum item_type
The item type of the lut.
volatile uint32_t height
Height of image in lines.
Remap object descriptor as placed in shared memory.
volatile int32_t lower
lower limit
Object descriptor that has information related to user data object.
volatile vx_int8 s08
Signed 8 bit.
volatile uint32_t mem_size
size of buffer pointed to by mem_ptr
tivx_shared_mem_ptr_t mem_ptr
matrix memory address
#define TIVX_MAX_ERROR_INFO_SIZE
Max number of bytes of additional diagnostic info a target kernel can attach to a VX_EVENT_NODE_ERROR...
tivx_raw_image_create_params_t params
create parameters for raw image
volatile uint32_t element_idx
holds the index ID in the case that this is an element within a pyramid or object array ...
tivx_obj_desc_t base
base object descriptor
Object descriptor that has information related to tensor object.
volatile uint16_t state
node state one of TIVX_NODE_OBJ_DESC_STATE_IDLE, TIVX_NODE_OBJ_DESC_STATE_BLOCKED ...
volatile uint32_t block_width
variable to store the tile width for the given node
uint32_t replica_status
This replica&#39;s execution status.
volatile uint32_t rsv
Reserved field to make below union on 64b aligned boundary.
volatile vx_uint32 num_items
number of items
volatile uint32_t num_pipeup_bufs
number of buffers required for pipeup state
Interface to Memory allocation and deallocation APIs.
tivx_shared_mem_ptr_t mem_ptr
buffer address
tivx_shared_mem_ptr_t mem_ptr
distribution memory address
double vx_float64
volatile uint32_t mem_size
size of buffer pointed to by mem_ptr
volatile uint32_t num_out_nodes
Number of nodes that are connected to output of this node.
tivx_obj_desc_t base
base object descriptor
tivx_obj_desc_type_e
Enum that list all possible object descriptor type&#39;s.
volatile vx_uint32 item_size
size of each item
volatile int32_t upper
upper limit
volatile uint32_t num_of_replicas
number of times node is replicated valid only when TIVX_NODE_FLAG_IS_REPLICATED is set in flags...
volatile uint32_t is_prm_bidi
bitmask which indicates if prm is bidirectional parameter to a node bitN = 1 means param at index N i...
Structure describing a shared memory pointer.
#define TIVX_PYRAMID_MAX_LEVEL_OBJECTS
Maximum number of objects supported in pyramid.
void tivx_obj_desc_memcpy(volatile void *dst, const volatile void *src, uint32_t size)
Utility function for memory/string copy/set operation on object descriptor pointers.
int32_t tivx_obj_desc_strncmp_delim(volatile void *dst, volatile void *src, uint32_t size, char delim)
Utility function for memory/string compare operation on object descriptor pointers with delimiter...
volatile uint32_t mem_size
size of buffer pointed to by mem_ptr
tivx_shared_mem_ptr_t mem_ptr
array memory address
volatile uint32_t valid_mem_size
size of valid data within the buffer
Object descriptor that has information related to remap object.
Create using vxCreateTensorFromROI()
volatile uint32_t data_type
The value contained in the reference for a scalar type.
volatile int32_t false_value
threshold false value
volatile uint32_t rows
number of rows
volatile uint64_t timestamp
reference timestamp
volatile uint32_t num_in_nodes
Number of nodes that are connected to input of this node.
threshold object descriptor as placed in shared memory
volatile uint32_t exe_time_beg_h
node execution time
volatile uint32_t target_id
ID of target to execute on. Set by host.
volatile vx_uint32 width
width of the level0 image
volatile vx_enum pattern
Pattern of the matrix vx_pattern_e.
raw image descriptor as placed in shared memory
volatile uint32_t mem_size
size of buffer pointed to by mem_ptr
volatile uint32_t create_type
method by which raw image was created, see tivx_image_create_type_e
tivx_obj_desc_t base
base object descriptor
volatile int32_t value
threshold value
volatile vx_uint32 num_levels
number of pyramid levels
#define TIVX_NODE_MAX_IN_NODES
Max nodes feeding input to a given node.
volatile uint16_t scope_obj_desc_id
object descriptor ID of the scope in which this object is created For element of pyramid and object a...
tivx_obj_desc_t base
base object descriptor
#define TIVX_RAW_IMAGE_MAX_EXPOSURES
Maximum number of RAW image exposures that can be contained in a raw image object.
volatile uint16_t supp_data_id
ID of supplementary data object descriptor in shared memory.
tivx_obj_desc_t base
base object descriptor
volatile uint32_t columns
number of columns
Object descriptor that has information related to scalar object.
volatile uint32_t num_items
number of valid items in array
volatile uint32_t mem_size
size of buffer pointed to by mem_ptr
volatile uint32_t fixed_point_position
Fixed point precision of the tensor.
volatile uint32_t is_prm_input
bitmask which indicates if prm is input to a node bitN = 1 means param at index N is input to node ...
volatile uint16_t parent_id
object descriptor ID of parent (if any)
Create using vxCreateTensor()
uint32_t vx_uint32
volatile uint32_t num_params
number of parameters associated with this node
volatile vx_size size
Architecture depth unsigned value.
volatile uint16_t blocked_node_id
node ID that is blocked on this node to be IDLE
int8_t vx_int8
void tivx_obj_desc_strncpy(volatile void *dst, volatile void *src, uint32_t size)
Utility function for memory/string copy/set operation on object descriptor pointers.
volatile vx_enum data_type
From vx_type_e.
pyramid object descriptor as placed in shared memory
volatile uint16_t type
Type of object descriptor, see tivx_obj_desc_type_e.
volatile uint32_t color_range
Color range of the image channel, see vx_channel_range_e.
volatile vx_uint32 error_info_obj_desc_id
Object descriptor ID of the tivx_obj_desc_node_error_info_t holding a TIVX_NODE_MAX_REPLICATE number ...
Object descriptor that has information related to raw image object.
#define TIVX_KERNEL_MAX_PARAMS
Max parameters in a kernel This is required to be <= 32 per framework requirements.
Create using vxCreateVirtualImage()
matrix object descriptor as placed in shared memory
tivx_obj_desc_t base
base object descriptor
Scalar object descriptor as placed in shared memory.
tivx_shared_mem_ptr_t mem_ptr
buffer address
volatile uint32_t mem_size
Buffer size.
Node object descriptor.
volatile vx_int32 s32
Signed 32 bit.
The raw image create params structure that is given to the tivxCreateRawImage function.
volatile uint32_t pipeup_buf_idx
Pipe buf idx used for when to begin graph processing on source node.
uint64_t vx_uint64
Object descriptor that has information related to super node.
volatile vx_float32 scale
Scaling factor between levels of the pyramid.
Object descriptor data ref queue.
volatile uint32_t width
Width of image in pixels.
volatile uint16_t in_node_done_cnt
number of input nodes that have consumed this obj_desc, used in pipelining mode only for data referen...
volatile uint32_t kernel_id
ID of kernel to execute on target.
volatile vx_uint32 debug_zonemask
Debug zonemask of a given object descriptor node.
volatile uint16_t num_enqueues
holds the count of the number of times this reference has been enqueued and not dequeued ...
volatile vx_df_image fcc
32 bit image format code
volatile uint32_t exe_time_beg_l
node execution time
volatile uint32_t color_space
Color space of the image, see vx_color_space_e.
volatile uint32_t host_cpu_id
holds the CPU ID of the OpenVX host for this object descriptor
volatile uint32_t node_complete_cmd_obj_desc_id
command to send when node completes execution
volatile uint32_t uniform_image_pixel_value
the value to use to fill for a uniform image.
volatile vx_int64 s64
Signed 64 bit.
volatile uint32_t src_height
The source height.
volatile vx_uint8 u08
Unsigned 8 bit.
volatile uint32_t capacity
Max size of the array.
Object descriptor that has information related to Object Array object.
volatile uint32_t is_prm_array_element
bitmask which indicates if prm is array element bitN = 1 means param at index N is array element ...