72 if (handle == NULL || bufParamsIn0 == NULL || bufParamsIn1 == NULL || bufParamsOut == NULL || pKerInitArgs == NULL) {
84 if ((bufParamsIn0->
dim_x != bufParamsIn1->
dim_x) || (bufParamsIn0->
dim_y != bufParamsIn1->
dim_y) ||
94 if ((strideIn0Elements < bufParamsIn0->dim_x) || (strideIn1Elements < bufParamsIn1->dim_x) ||
95 (strideOutElements < bufParamsOut->dim_x)) {
111 const void *restrict pIn0,
112 const void *restrict pIn1,
113 const void *restrict pOut)
118 printf(
"Enter VXLIB_and_exec_checkParams\n");
120 if ((handle == NULL) || (pIn0 == NULL) || (pIn1 == NULL) || (pOut == NULL)) {
156 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_and_init\n");
160 uint32_t dTypeIn0 = bufParamsIn0->
data_type;
202 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_and_exec\n");
207 status = pKerPrivArgs->
execute(handle, pIn0, pIn1, pOut);
template VXLIB_STATUS VXLIB_and_init_ci< VXLIB_UINT8 >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_and_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_and_exec_ci< uint8_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_and_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_and.
void * VXLIB_kernelHandle
Handle type for VXLIB operations.
VXLIB_STATUS_NAME
The enumeration of all status codes.
@ VXLIB_ERR_INVALID_DIMENSION
@ VXLIB_ERR_NOT_EQUAL_WIDTH_STRIDE
static int32_t VXLIB_sizeof(uint32_t type)
Inline function returns number of bytes per element given a type of VXLIB_data_type_e.
int32_t VXLIB_and_getHandleSize(VXLIB_and_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
VXLIB_STATUS VXLIB_and_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_and_exec function....
VXLIB_STATUS VXLIB_and_init(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn0, VXLIB_bufParams2D_t *bufParamsIn1, VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_and_InitArgs *pKerInitArgs)
This function should be called before the VXLIB_and_exec function is called. This function takes care...
VXLIB_STATUS VXLIB_and_init_checkParams(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_and_InitArgs *pKerInitArgs)
This function checks the validity of the parameters passed to VXLIB_and_init function....
VXLIB_STATUS VXLIB_and_exec(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
This function is the main kernel compute 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.
size_t strideIn1Elements
Stride of input1 in elements.
size_t width
Width of image
pFxnVXLIB_and_exec execute
Function pointer to point to the right execution variant between VXLIB_and_exec_cn and VXLIB_and_exec...
size_t strideOutElements
Stride of output in elements.
size_t strideIn0Elements
Stride of input0 in elements.
size_t height
Height of image
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.