63 #ifndef HWA_VPAC_MSC_H_ 64 #define HWA_VPAC_MSC_H_ 67 #include <VX/vx_kernels.h> 81 #define TIVX_KERNEL_VPAC_MSC_MULTI_SCALE_NAME "com.ti.hwa.vpac_msc_multi_scale" 86 #define TIVX_KERNEL_VPAC_MSC_PYRAMID_NAME "com.ti.hwa.vpac_msc_pyramid" 91 #define TIVX_KERNEL_VPAC_MSC_MULTI_SCALE2_NAME "com.ti.hwa.vpac_msc_multi_scale2" 103 #define TIVX_VPAC_MSC_CMD_SET_COEFF (0x20000000u) 120 #define TIVX_VPAC_MSC_CMD_SET_INPUT_PARAMS (0x20000001u) 140 #define TIVX_VPAC_MSC_CMD_SET_OUTPUT_PARAMS (0x20000002u) 164 #define TIVX_VPAC_MSC_CMD_SET_CROP_PARAMS (0x20000003u) 182 #define TIVX_VPAC_MSC_CMD_GET_ERR_STATUS (0x20000004u) 187 #define TIVX_VPAC_MSC_CMD_GET_PSA_STATUS (0x20000005u) 201 #define TIVX_VPAC_MSC_MAX_MP_COEFF_SET (4U) 204 #define TIVX_VPAC_MSC_MAX_SP_COEFF_SET (2U) 208 #define TIVX_VPAC_MSC_MAX_OUTPUT (10U) 211 #define TIVX_VPAC_MSC_MAX_TAP (5U) 214 #define TIVX_VPAC_MSC_32_PHASE_COEFF (32U) 217 #define TIVX_VPAC_MSC_AUTOCOMPUTE (0xFFFFFFFFU) 220 #define TIVX_VPAC_MSC_INTERPOLATION_GAUSSIAN_32_PHASE (0) 223 #define TIVX_VPAC_MSC_MODE_LUMA_ONLY (0U) 226 #define TIVX_VPAC_MSC_MODE_CHROMA_ONLY (1U) 228 #define TIVX_VPAC_MSC_INIT_DIV_FACTOR (1U) 230 #define TIVX_VPAC_MSC_DEFAULT_MAX_DS_FACTOR (2U) 233 #define TIVX_VPAC_MSC_VBUSM_RD_ERR (0x4U) 235 #define TIVX_VPAC_MSC_SL2_WR_ERR (0x8U) 237 #define TIVX_VPAC_MSC0_WDTIMER_ERR (0x40000000U) 239 #define TIVX_VPAC_MSC1_WDTIMER_ERR (0x80000000U) 241 #define TIVX_VPAC_MSC_MAX_COMP (2u) 421 #if defined(VPAC3) || defined(VPAC3L) 425 uint32_t is_enable_simul_processing;
430 uint32_t in_img0_yc_mode;
434 uint32_t in_img1_yc_mode;
735 vx_pyramid out_pyramid);
VX_API_ENTRY vx_node VX_API_CALL tivxVpacMscScaleNode(vx_graph graph, vx_image in_img0, vx_image out0_img, vx_image out1_img, vx_image out2_img, vx_image out3_img, vx_image out4_img)
Creates a VPAC_MSC Node with multi-scale outputs (at most 5 outputs).
uint32_t horz_coef_sel
Definition: hwa_vpac_msc.h:283
uint32_t saturation_mode
Definition: hwa_vpac_msc.h:373
The coefficients input data structure used by the TIVX_KERNEL_VPAC_MSC kernel.
Definition: hwa_vpac_msc.h:255
#define TIVX_VPAC_MSC_MAX_SP_COEFF_SET
Definition: hwa_vpac_msc.h:204
uint32_t crop_start_y
Definition: hwa_vpac_msc.h:348
VX_API_ENTRY vx_node VX_API_CALL tivxVpacMscPyramidNode(vx_graph graph, vx_image in_img, vx_pyramid out_pyramid)
Creates a VPAC_MSC Node with multi-scale pyramid output.
Structure to hold PSA timestamp data.
Definition: hwa_vpac_msc.h:470
void tivxRegisterHwaTargetVpacMscKernels(void)
Function to register HWA Kernels on the vpac_msc Target.
#define TIVX_VPAC_MSC_MAX_TAP
Definition: hwa_vpac_msc.h:211
uint32_t init_phase_x
Definition: hwa_vpac_msc.h:331
uint32_t horz_coef_src
Definition: hwa_vpac_msc.h:275
uint32_t vert_coef_sel
Definition: hwa_vpac_msc.h:297
uint64_t timestamp
Timestamp value.
Definition: hwa_vpac_msc.h:483
void tivx_vpac_msc_coefficients_params_init(tivx_vpac_msc_coefficients_t *coeff, vx_enum interpolation)
Function to initialize MSC Coefficients Parameters This initializes Coefficients to default values...
uint32_t vert_coef_src
Definition: hwa_vpac_msc.h:289
uint32_t vert_coef_sel
Definition: hwa_vpac_msc.h:326
void tivxUnRegisterHwaTargetVpacMscKernels(void)
Function to un-register HWA Kernels on the vpac_msc Target.
uint32_t crop_start_x
Definition: hwa_vpac_msc.h:346
uint32_t offset_x
Definition: hwa_vpac_msc.h:377
The configuration data structure used by the TIVX_KERNEL_VPAC_MSC kernel.
Definition: hwa_vpac_msc.h:269
#define TIVX_VPAC_MSC_MAX_COMP
Maximum possible MSC iteration for a simgle request (Luma + Chroma)
Definition: hwa_vpac_msc.h:241
uint32_t coef_shift
Definition: hwa_vpac_msc.h:369
The output config data structure used by the TIVX_KERNEL_VPAC_MSC kernel.
Definition: hwa_vpac_msc.h:360
#define TIVX_VPAC_MSC_MAX_OUTPUT
Definition: hwa_vpac_msc.h:208
uint32_t offset_y
Definition: hwa_vpac_msc.h:381
#define TIVX_VPAC_MSC_32_PHASE_COEFF
Definition: hwa_vpac_msc.h:214
uint32_t filter_mode
Definition: hwa_vpac_msc.h:366
uint32_t horz_coef_sel
Definition: hwa_vpac_msc.h:317
uint32_t crop_height
Definition: hwa_vpac_msc.h:352
VX_API_ENTRY vx_node VX_API_CALL tivxVpacMscScaleNode2(vx_graph graph, vx_image in_img0, vx_image out0_img, vx_image out1_img, vx_image out2_img, vx_image out3_img, vx_image out4_img, vx_image in_img1, vx_image out5_img, vx_image out6_img, vx_image out7_img, vx_image out8_img, vx_image out9_img)
Creates a VPAC_MSC Node with multi-scale outputs (at most 10 outputs). This node takes at most 2 sing...
uint32_t crop_width
Definition: hwa_vpac_msc.h:350
uint32_t signed_data
Definition: hwa_vpac_msc.h:363
uint32_t init_phase_y
Definition: hwa_vpac_msc.h:336
void tivx_vpac_msc_input_params_init(tivx_vpac_msc_input_params_t *prms)
Function to initialize MSC input Parameters This is used for control command: TIVX_VPAC_MSC_CMD_SET_I...
uint32_t phase_mode
Definition: hwa_vpac_msc.h:308
void tivx_vpac_msc_output_params_init(tivx_vpac_msc_output_params_t *prms)
Function to initialize MSC output Parameters This is used for control command: TIVX_VPAC_MSC_CMD_SET_...
tivx_vpac_msc_single_phase_params_t single_phase
Definition: hwa_vpac_msc.h:387
The multi_phase data structure in the configuration data structure used by the TIVX_KERNEL_VPAC_MSC k...
Definition: hwa_vpac_msc.h:306
The crop config data structure used by the TIVX_KERNEL_VPAC_MSC kernel.
Definition: hwa_vpac_msc.h:344
uint32_t output_align_12bit
Definition: hwa_vpac_msc.h:384
#define TIVX_VPAC_MSC_MAX_MP_COEFF_SET
Definition: hwa_vpac_msc.h:201
tivx_vpac_msc_multi_phase_params_t multi_phase
Definition: hwa_vpac_msc.h:389