52 printf(
"Enter VXLIB_absDiff_init_checkParams\n");
54 if (handle == NULL || bufParamsIn0 == NULL || bufParamsIn1 == NULL || bufParamsOut == NULL || pKerInitArgs == NULL) {
78 if ((bufParamsIn0->
dim_x != bufParamsIn1->
dim_x) || (bufParamsIn0->
dim_y != bufParamsIn1->
dim_y) ||
80 (strideIn0Elements < bufParamsIn0->dim_x) || (strideIn1Elements < bufParamsIn1->dim_x) ||
81 (strideOutElements < bufParamsOut->dim_x)) {
90 const void *restrict pIn0,
91 const void *restrict pIn1,
92 const void *restrict pOut)
97 printf(
"Enter VXLIB_absDiff_exec_checkParams\n");
99 if ((handle == NULL) || (pIn0 == NULL) || (pIn1 == NULL) || (pOut == NULL)) {
118 uint32_t height = bufParamsOut->
dim_y;
119 uint32_t width = bufParamsOut->
dim_x;
125 pKerPrivArgs->
height = height;
126 pKerPrivArgs->
width = width;
132 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_absDiff_init\n");
175 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_absDiff_exec\n");
180 status = pKerPrivArgs->
execute(handle, pIn0, pIn1, pOut);
template VXLIB_STATUS VXLIB_absDiff_init_ci< VXLIB_INT16 >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_absDiff_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_absDiff_exec_ci< uint8_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_absDiff_exec_ci< int16_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_absDiff_init_ci< VXLIB_UINT8 >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_absDiff_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_absDiff_exec_cn< int16_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_absDiff_exec_cn< uint8_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
Header file for kernel's internal use. For the kernel's interface, please see VXLIB_absDiff.
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_absDiff_exec(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
This function is the main kernel compute function.
VXLIB_STATUS VXLIB_absDiff_init(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn0, VXLIB_bufParams2D_t *bufParamsIn1, VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_absDiff_InitArgs *pKerInitArgs)
This function should be called before the VXLIB_absDiff_exec function is called. This function takes ...
VXLIB_STATUS VXLIB_absDiff_exec_checkParams(VXLIB_kernelHandle handle, const void *restrict pIn0, const void *restrict pIn1, const void *restrict pOut)
This function checks the validity of the parameters passed to VXLIB_absDiff_exec function....
int32_t VXLIB_absDiff_getHandleSize(VXLIB_absDiff_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
VXLIB_STATUS VXLIB_absDiff_init_checkParams(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_absDiff_InitArgs *pKerInitArgs)
This function checks the validity of the parameters passed to VXLIB_absDiff_init function....
Structure containing the parameters to initialize the kernel.
int8_t funcStyle
Variant of the function refer to VXLIB_FUNCTION_STYLE
Structure that is reserved for internal use by the kernel.
uint32_t height
Height of image
uint32_t strideIn1Elements
Stride of input1 in elements.
pFxnVXLIB_absDiff_exec execute
Function pointer to point to the right execution variant between VXLIB_absDiff_exec_cn and VXLIB_absD...
uint32_t strideIn0Elements
Stride of input0 in elements.
uint32_t width
Width of image
uint32_t strideOutElements
Stride of output in elements.
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.