TIOVX User Guide
|
Helper APIs used used for host side kernel validation.
Defines | |
#define | TIVX_KERNEL_COMMON_VALID_RECT_MAX_IMAGE (5u) |
Maximum number of images (input/output) supported in calculating valid rectangles. | |
Functions | |
vx_status | tivxPublishKernels (vx_context context, const Tivx_Host_Kernel_List *kernel_list, uint32_t num_kernels) |
Publishes the kernels list on the host side. | |
vx_status | tivxUnPublishKernels (vx_context context, const Tivx_Host_Kernel_List *kernel_list, uint32_t num_kernels) |
Unpublishes the kernels list on the host side. | |
static void | tivxKernelValidRectParams_init (tivxKernelValidRectParams *prms) |
Function to initialize Valid Rect Parameter structure Currently the entire structure is memset to 0. More... | |
vx_status | tivxKernelConfigValidRect (tivxKernelValidRectParams *prms) |
Function to calculate and configure valid region This API loops over all the input and output image's valid rectangles and figures out overlapping rectangle and sets it as valid rectangle in the output image. More... | |
void | tivxKernelsHostUtilsAddKernelTargetDsp (vx_kernel kernel) |
Function to add platform-specific DSP kernel target. | |
|
inlinestatic |
Function to initialize Valid Rect Parameter structure Currently the entire structure is memset to 0.
prms | [in] Valid Rectange Parameters |
STATIC INLINE FUNCTION DEFINITIONS
Definition at line 201 of file tivx_kernels_host_utils.h.
vx_status tivxKernelConfigValidRect | ( | tivxKernelValidRectParams * | prms | ) |
Function to calculate and configure valid region This API loops over all the input and output image's valid rectangles and figures out overlapping rectangle and sets it as valid rectangle in the output image.
Each kernel may also require few lines/pixels of padding on each side of the image. Host side kernel can provide this information to this API and it will adjust valid rectangle considering padding requirement also.
This is utility API.
prms | [in] Valid Rectange Parameters |