41 #include "VXLIB_types.h"
73 if (handle == NULL || bufParamsIn == NULL || bufParamsOut == NULL || pKerInitArgs == NULL) {
78 uint32_t dTypeIn = bufParamsIn->
data_type;
79 uint32_t widthIn = bufParamsIn->
dim_x;
80 uint32_t heightIn = bufParamsIn->
dim_y;
81 uint32_t strideIn = bufParamsIn->
stride_y;
84 uint32_t dTypeOut = bufParamsOut->
data_type;
85 uint32_t widthOut = bufParamsOut->
dim_x;
86 uint32_t heightOut = bufParamsOut->
dim_y;
87 uint32_t strideOut = bufParamsOut->
stride_y;
97 else if ((widthIn < widthOut) || (heightIn - filterHeight + 1 != heightOut) ||
99 (widthIn < filterWidth) || (heightIn < filterHeight)) {
124 printf(
"Enter VXLIB_dilate_exec_checkParams\n");
126 if ((handle == NULL) || (pIn == NULL) || (pOut == NULL)) {
163 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_dilate_init\n");
167 uint32_t dTypeIn = bufParamsIn->
data_type;
168 uint32_t dTypeOut = bufParamsOut->
data_type;
220 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_dilate_exec\n");
225 status = pKerPrivArgs->
execute(handle, pIn, pOut);
template VXLIB_STATUS VXLIB_dilate_exec_ci< VXLIB_DILATE_TYPENAME_I16U_O16U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
template VXLIB_STATUS VXLIB_dilate_init_ci< VXLIB_DILATE_DTYPE_I8U_O8U >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_dilate_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_dilate_exec_ci< VXLIB_DILATE_TYPENAME_I8U_O8U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
template VXLIB_STATUS VXLIB_dilate_init_ci< VXLIB_DILATE_DTYPE_I16U_O16U >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_dilate_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_dilate_exec_cn< VXLIB_DILATE_TYPENAME_I8U_O8U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
template VXLIB_STATUS VXLIB_dilate_exec_cn< VXLIB_DILATE_TYPENAME_I16U_O16U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
Header file for kernel's internal use. For the kernel's interface, please see VXLIB_dilate.
#define VXLIB_DILATE_I16U_O16U
#define VXLIB_DILATE_I8U_O8U
Macros that will be useful to check for datatype combinations.
void * VXLIB_kernelHandle
Handle type for VXLIB operations.
VXLIB_STATUS_NAME
The enumeration of all status codes.
@ VXLIB_ERR_INVALID_DIMENSION
static int32_t VXLIB_sizeof(uint32_t type)
Inline function returns number of bytes per element given a type of VXLIB_data_type_e.
VXLIB_STATUS VXLIB_dilate_exec(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
This function is the main kernel compute function.
VXLIB_STATUS VXLIB_dilate_exec_checkParams(VXLIB_kernelHandle handle, const void *restrict pIn, const void *restrict pOut)
This function checks the validity of the parameters passed to VXLIB_dilate_exec function....
VXLIB_STATUS VXLIB_dilate_init(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_dilate_InitArgs *pKerInitArgs)
This function should be called before the VXLIB_dilate_exec function is called. This function takes c...
VXLIB_STATUS VXLIB_dilate_init_checkParams(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_dilate_InitArgs *pKerInitArgs)
This function checks the validity of the parameters passed to VXLIB_dilate_init function....
int32_t VXLIB_dilate_getHandleSize(VXLIB_dilate_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
A structure for a 2 dimensional buffer descriptor.
uint32_t dim_y
Height of buffer in Y dimension in elements.
uint32_t dim_x
Width of buffer in X dimension in elements.
uint32_t data_type
Values are of type VXLIB_data_type_e.
int32_t stride_y
Stride in Y dimension in bytes.
Structure containing the parameters to initialize the kernel.
uint32_t filterWidth
Width and height of filter
int8_t funcStyle
Variant of the function, refer to VXLIB_FUNCTION_STYLE
Structure that is reserved for internal use by the kernel.
VXLIB_dilate_InitArgs pKerInitArgs
Initargs of the kernel.
size_t strideOutElements
Stride of output in elements.
size_t strideInElements
Stride of input in elements.
size_t height
Height of image
size_t width
Width of image
pFxnVXLIB_dilate_exec execute
Function pointer to point to the right execution variant between VXLIB_dilate_exec_cn and VXLIB_dilat...