TIOVX User Guide
TI VPAC VISS (Vision Imaging Sub System) Kernel APIs

Detailed Description

VPAC Vision Imaging Sub System Kernels.

Modules

 Enumerations
 Enumerations for configuration parameters in VPAC VISS structures.
 
 Enumerations
 Enumerations for VPAC VISS Watchdog Timer configuration.
 
 Enumerations
 Enumerations for VPAC VISS error events.
 
 Enumerations
 Enumerations for configuration output routing in VPAC VISS structures.
 
 Enumerations
 Enumerations for configuration parameters in VPAC VISS FCP structure.
 

Data Structures

struct  tivx_ae_awb_params_t
 Data corresponding to results of 2A algorithm. More...
 
struct  tivx_h3a_aew_config
 H3A AEW configuration data structure used by the TIVX_KERNEL_VISS kernel. More...
 
struct  tivx_h3a_data_t
 The h3a_output data structure used by the TIVX_KERNEL_VISS kernel. More...
 
struct  tivx_vpac_viss_safety_mechanism_params_t
 Safety parameters structure for VPAC VISS. More...
 
struct  tivx_vpac_viss_node_error_info_t
 Error info structure attached to a node's VX_EVENT_NODE_ERROR event via tivxSetTargetKernelInstanceErrorInfo(), used by the VPAC_VISS kernel to report its combined error status bitmask. More...
 
struct  tivx_vpac_viss_params_t
 The configuration data structure used by the TIVX_KERNEL_VISS kernel. More...
 
struct  tivx_vpac_viss_fcp_params_t
 The Flex Color Processing (FCP) data structure used in the tivx_vpac_viss_params_t structure for programming the TIVX_KERNEL_VISS kernel. More...
 

Defines

#define TIVX_KERNEL_VPAC_VISS_NAME   "com.ti.hwa.vpac_viss"
 vpac_viss kernel name
 
#define TIVX_VPAC_VISS_CMD_SET_DCC_PARAMS   (0x30000000u)
 Control Command to set the DCC (Dynamic Camera Configuration) information to the given VISS Node. More...
 
#define TIVX_VPAC_VISS_CMD_GET_ERR_STATUS   (0x30000001u)
 Control Command to get the combined error status Returns the combined error status of the last processed frame, incorporating error interrupts and watchdog timer error interrupt. A reference to vx_scalar is passed as an argument with this control command. The node returns a bit-mask of the error status in the U32 variable of vx_scalar. More...
 
#define TIVX_VPAC_VISS_CMD_GET_PSA_STATUS   (0x30000002u)
 Control Command to retrieve the PSA signature values.
 
#define TIVX_VPAC_VISS_CMD_ENABLE_ERROR_EVENTS   (0x30000004u)
 Control Command to enable/disable error events.
 
#define TIVX_VPAC_VISS_CMD_ENABLE_SAFETY_MECHANISM   (0x30000005u)
 Control Command to enable VPAC VISS safety mechanism User data object tivx_vpac_viss_safety_mechanism_params_t is passed as argument with this control command.
 
#define TIVX_VPAC_VISS_MAX_H3A_STAT_NUMBYTES   (24576U)
 Maximum H3A number of bytes in statistics data array. More...
 
#define TIVX_VPAC_VISS_H3A_OUT_BUFF_ALIGN   (64U)
 The H3A output memory address alignment. More...
 
#define TIVX_VPAC_VISS_REG_VALIDATE_FAILURE_STATUS_REG   ((int32_t) 0x80000001U)
 Bit indicating a StatusRegValidate failure detected by the register-validate safety mechanism (VHWA_M2M_IOCTL_VISS_VALIDATE_REG).
 
#define TIVX_VPAC_VISS_REG_VALIDATE_FAILURE_CONFIG_REG   ((int32_t) 0x80000002U)
 Bit indicating a ConfigRegReadback/compare failure detected by the register-validate safety mechanism (VHWA_M2M_IOCTL_VISS_VALIDATE_REG).
 

Functions

void tivxRegisterHwaTargetVpacVissKernels (void)
 Function to register HWA Kernels on the vpac_viss Target.
 
void tivxUnRegisterHwaTargetVpacVissKernels (void)
 Function to un-register HWA Kernels on the vpac_viss Target.
 
void tivx_vpac_viss_params_init (tivx_vpac_viss_params_t *prms)
 Function to initialize VISS Parameters. More...
 
void tivx_h3a_data_init (tivx_h3a_data_t *prms)
 Function to initialize H3A data Parameters. More...
 
void tivx_ae_awb_params_init (tivx_ae_awb_params_t *prms)
 Function to initialize AEWB Output Parameters These parameters come from the AEWB algorithm. More...
 
void tivx_h3a_aew_config_init (tivx_h3a_aew_config *prms)
 Function to initialize H3A aew Config. More...
 
void tivx_vpac_viss_safety_mech_prms_init (tivx_vpac_viss_safety_mechanism_params_t *prms)
 Function to initialize VISS safety mechanism parameters with default values. More...
 
VX_API_ENTRY vx_node VX_API_CALL tivxVpacVissNode (vx_graph graph, vx_user_data_object configuration, vx_user_data_object ae_awb_result, vx_user_data_object dcc_buf, tivx_raw_image raw, vx_image output0, vx_image output1, vx_image output2, vx_image output3, vx_image output4, vx_user_data_object h3a_output, vx_distribution histogram0, vx_distribution histogram1, vx_distribution raw_histogram)
 [Graph] Creates a VPAC_VISS Node.
 

Macro Definition Documentation

◆ TIVX_VPAC_VISS_CMD_SET_DCC_PARAMS

#define TIVX_VPAC_VISS_CMD_SET_DCC_PARAMS   (0x30000000u)

Control Command to set the DCC (Dynamic Camera Configuration) information to the given VISS Node.

Viss node gets the pointer to DCC buffer containing VISS configuration. It uses DCC parser to parse and map DCC parameters into VISS configuration and sets it in the driver.

Note that if the module is bypassed in tivx_vpac_viss_params_t during node creating, the parameter will not be set for this module, even through DCC profile has config for the same module.

User data object containing DCC buffer is passed as argument with this control command.

Definition at line 115 of file hwa_vpac_viss.h.

◆ TIVX_VPAC_VISS_CMD_GET_ERR_STATUS

#define TIVX_VPAC_VISS_CMD_GET_ERR_STATUS   (0x30000001u)

Control Command to get the combined error status Returns the combined error status of the last processed frame, incorporating error interrupts and watchdog timer error interrupt. A reference to vx_scalar is passed as an argument with this control command. The node returns a bit-mask of the error status in the U32 variable of vx_scalar.

  • Error interrupt status bits (0–29) are directly taken from the viss_obj->err_stat variable.
  • If watchdog timer error is detected (bit 20 in wd_err_status), this is flagged by setting bit 30 in the returned error status.

Definition at line 130 of file hwa_vpac_viss.h.

◆ TIVX_VPAC_VISS_MAX_H3A_STAT_NUMBYTES

#define TIVX_VPAC_VISS_MAX_H3A_STAT_NUMBYTES   (24576U)

Maximum H3A number of bytes in statistics data array.

Allocating 24KB buffer which is large enough for 32x32 windows

Definition at line 166 of file hwa_vpac_viss.h.

◆ TIVX_VPAC_VISS_H3A_OUT_BUFF_ALIGN

#define TIVX_VPAC_VISS_H3A_OUT_BUFF_ALIGN   (64U)

The H3A output memory address alignment.

The start address of the tivx_h3a_data_t::data buffer must be aligned to this value, so the tivx_h3a_data_t::resv field is used along with this value to properly pad the structure to enable this alignment.

See also
tivx_h3a_data_t::resv

Definition at line 177 of file hwa_vpac_viss.h.

Function Documentation

◆ tivx_vpac_viss_params_init()

void tivx_vpac_viss_params_init ( tivx_vpac_viss_params_t *  prms)

Function to initialize VISS Parameters.

Parameters
prms[in] Pointer to VISS parameters

◆ tivx_h3a_data_init()

void tivx_h3a_data_init ( tivx_h3a_data_t *  prms)

Function to initialize H3A data Parameters.

Parameters
prms[in] Pointer to H3A data parameters

◆ tivx_ae_awb_params_init()

void tivx_ae_awb_params_init ( tivx_ae_awb_params_t *  prms)

Function to initialize AEWB Output Parameters These parameters come from the AEWB algorithm.

Parameters
prms[in] Pointer to AEWB output parameters

◆ tivx_h3a_aew_config_init()

void tivx_h3a_aew_config_init ( tivx_h3a_aew_config *  prms)

Function to initialize H3A aew Config.

Parameters
prms[in] Pointer to H3A aew config

◆ tivx_vpac_viss_safety_mech_prms_init()

void tivx_vpac_viss_safety_mech_prms_init ( tivx_vpac_viss_safety_mechanism_params_t *  prms)

Function to initialize VISS safety mechanism parameters with default values.

Parameters
prms[IN] Pointer to VISS safety mechanism parameter structure