TIOVX User Guide

The input config data structure used by the TIVX_KERNEL_VPAC_MSC kernel. More...

#include <hwa_vpac_msc.h>

Data Fields

uint32_t kern_sz
 
uint32_t src_ln_inc_2
 
uint32_t input_align_12bit
 
uint32_t yc_mode
 
uint32_t max_ds_factor
 
uint32_t enable_error_events
 
uint32_t enable_psa
 
uint32_t wdtimer_timeout_cycles
 

Detailed Description

The input config data structure used by the TIVX_KERNEL_VPAC_MSC kernel.

Definition at line 445 of file hwa_vpac_msc.h.

Field Documentation

◆ kern_sz

uint32_t tivx_vpac_msc_input_params_t::kern_sz

kernel size [Range (3 - 5)]

Definition at line 447 of file hwa_vpac_msc.h.

◆ src_ln_inc_2

uint32_t tivx_vpac_msc_input_params_t::src_ln_inc_2

0: Off, 1: vertical skip input lines (LSE)

Definition at line 449 of file hwa_vpac_msc.h.

◆ input_align_12bit

uint32_t tivx_vpac_msc_input_params_t::input_align_12bit

Optional: When input 16-bit unpacked, alignment of 12-bit pixel, 0: LSB, 1:MSB

Definition at line 452 of file hwa_vpac_msc.h.

◆ yc_mode

uint32_t tivx_vpac_msc_input_params_t::yc_mode

When input format is NV12 and output format is U8, this flag indicates which plane(chroma or luma) is scaled for all outputs 0: Luma only mode, 1: Chroma Only mode TIVX_VPAC_MSC_MODE_LUMA_ONLY, TIVX_VPAC_MSC_MODE_CHROMA_ONLY macros

Definition at line 457 of file hwa_vpac_msc.h.

◆ max_ds_factor

uint32_t tivx_vpac_msc_input_params_t::max_ds_factor

max_ds_factor is the pyramid node max down scaling factor. If max_ds_factor = 2, Pyramid node downscales the input image within the range from 1x to 1/2x in a single pass. If max_ds_factor = 4, Pyramid node downscales the input image within the range from 1x to 1/4x in a single pass. Although the hardware supports a maximum downscaling factor of 4, this variable allows downscale the input image within range from 1x to 1/2x when set to 2. The quality diminishes when downscaling beyond 2 in single pass. However, if downscaling beyond 2 is needed, setting it to 4 reduces hardware passes, improving speed. So, it's a trade-off between speed and quality. This parameter is only used for pyramid nodes, not for other MSC nodes

Definition at line 467 of file hwa_vpac_msc.h.

◆ enable_error_events

uint32_t tivx_vpac_msc_input_params_t::enable_error_events

This flag is a 32-bit bitmask used to specify which error events should be reported. Each bit in this mask corresponds to a specific error type generated by the hardware. Setting a bit to 1 enables reporting for that error, while setting it to 0 disables it.

Use the predefined error constants to configure enable_error_events:

To enable specific errors, combine the relevant error bits using a bitwise OR. For example, to monitor TIVX_VPAC_MSC_VBUSM_RD_ERR and TIVX_VPAC_MSC0_WDTIMER_ERR, set:

Definition at line 504 of file hwa_vpac_msc.h.

◆ enable_psa

uint32_t tivx_vpac_msc_input_params_t::enable_psa

This flag is used to control the retrieval of the PSA signature. When set to 1, the PSA signature is retrieved; when set to 0, it is not.

Definition at line 509 of file hwa_vpac_msc.h.

◆ wdtimer_timeout_cycles

uint32_t tivx_vpac_msc_input_params_t::wdtimer_timeout_cycles

This field configures the watchdog timer timeout cycles. Watchdog timer is enabled when TIVX_VPAC_MSC0_WDTIMER_ERR is set in enable_error_events. Set to 0 for 64K cycles (default), set to 1 for 128K cycles.

Definition at line 515 of file hwa_vpac_msc.h.


The documentation for this struct was generated from the following file: