65 #ifndef TIVX_OBJ_DESC_H_ 66 #define TIVX_OBJ_DESC_H_ 69 #include <TI/tivx_config.h> 84 #define TIVX_OBJ_DESC_MAX_SHM_ENTRY_SIZE (1024U) 91 #define TIVX_IMAGE_MAX_PLANES (3u) 98 #define TIVX_CONTEXT_MAX_TENSOR_DIMS (4) 103 #define TIVX_REF_FLAG_LOG_RT_TRACE (0x00000001u) 108 #define TIVX_REF_FLAG_IS_INVALID (0x00000002u) 113 #define TIVX_NODE_FLAG_IS_REPLICATED (0x00000001u) 118 #define TIVX_NODE_FLAG_IS_EXECUTED (0x00000002u) 123 #define TIVX_NODE_FLAG_IS_USER_CALLBACK (0x00000004u) 129 #define TIVX_NODE_FLAG_IS_TARGET_KERNEL (0x00000008u) 134 #define TIVX_NODE_FLAG_IS_SUPERNODE (0x00000010u) 140 #define TIVX_NODE_OBJ_DESC_STATE_IDLE (0x0u) 153 #define TIVX_NODE_OBJ_DESC_STATE_BLOCKED (0x1u) 160 #define TIVX_OBJ_DESC_MAX_HOST_PORT_ID_CPU (16u) 167 typedef enum _tivx_obj_desc_type_e {
253 typedef enum _tivx_image_create_type_e
275 typedef struct _tivx_remap_point {
292 typedef struct _tivx_obj_desc_t {
347 typedef struct _tivx_obj_desc_node
497 typedef struct _tivx_obj_desc_image
518 volatile uint32_t rsv[1];
544 typedef struct _tivx_obj_desc_remap
567 typedef struct _tivx_obj_desc_matrix
595 typedef struct _tivx_obj_desc_lut
617 typedef struct _tivx_obj_desc_pyramid
640 typedef struct _tivx_obj_desc_convolution
661 typedef struct _tivx_obj_desc_threshold
686 typedef struct _tivx_obj_desc_distribution
710 typedef struct _tivx_obj_desc_array
734 typedef struct _tivx_obj_desc_user_data_object
754 typedef struct _tivx_obj_desc_raw_image
784 typedef struct _tivx_obj_desc_object_array
802 typedef struct _tivx_obj_desc_scalar
830 #if defined(EXPERIMENTAL_PLATFORM_SUPPORTS_16_FLOAT) 832 volatile vx_float16 f16;
855 typedef struct _tivx_obj_desc_tensor
volatile uint32_t num_items
number of valid items in array
Value of a invalid object descriptor.
Object desciptor 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.
volatile uint32_t flags
reference flags
volatile uint32_t exe_status
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
Interface to Memory allocation and deallocation APIs.
volatile vx_enum type
type of threshold
Remap point in remap table.
volatile vx_enum enm
Signed 32 bit.
volatile uint32_t mem_size
size of buffer pointed to by mem_ptr
tivx_obj_desc_t base
base object descriptor
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 uint32_t rows
number of rows
volatile uint32_t block_height
variable to store the tile height for the given node
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
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 desciptor 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
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 desciptor that has information related to kernel name.
Create using vxCreateUniformImage()
Object desciptor 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
Object desciptor that has information related to matrix object.
volatile uint32_t item_size
Size of the array item.
Object desciptor that has information related to node object.
volatile uint32_t scaling_divisor_fixed_point_position
Fixed point precision of the scaling divisor.
volatile vx_enum item_type
The item type of the array.
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
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 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 desciptor 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 desciptor that has information related to image object.
volatile vx_float32 f32
32 bit float
tivx_obj_desc_t base
base object descriptor
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 desciptor 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.
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 desciptor 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.
Object desciptor 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 desciptor 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
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 desciptor 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
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
tivx_shared_mem_ptr_t mem_ptr
buffer address
tivx_shared_mem_ptr_t mem_ptr
distribution memory address
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'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...
Structure describing a shared memory pointer.
#define TIVX_PYRAMID_MAX_LEVEL_OBJECTS
Maximum number of objects supported in pyramid.
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 desciptor that has information related to remap object.
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 output 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 uint32_t rsv0
reserved to make 64b aligned
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.
tivx_obj_desc_t base
base object descriptor
volatile uint32_t columns
number of columns
Object desciptor 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 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
void tivx_obj_desc_memcpy(volatile void *dst, volatile void *src, uint32_t size)
Utility function for memory/string copy/set operation on object descriptor pointers.
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 descritor, see tivx_obj_desc_type_e.
volatile uint32_t color_range
Color range of the image channel, see vx_channel_range_e.
Object desciptor that has information related to raw image object.
#define TIVX_KERNEL_MAX_PARAMS
Max parameters in a kernel.
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.
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.
Object desciptor that has information related to super node.
volatile vx_float32 scale
Scaling factor between levels of the pyramid.
Object desciptor 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_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 desciptor 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 ...