72 if (handle == NULL || bufParamsIn0 == NULL || bufParamsIn1 == NULL || bufParamsOut == NULL || pKerInitArgs == NULL) {
90 if ((bufParamsIn0->
dim_x != bufParamsIn1->
dim_x) || (bufParamsIn0->
dim_y != bufParamsIn1->
dim_y) ||
100 if ((strideIn0Elements < bufParamsIn0->dim_x) || (strideIn1Elements < bufParamsIn1->dim_x) ||
101 (strideOutElements < bufParamsOut->dim_x)) {
117 const void *restrict pIn0,
118 const void *restrict pIn1,
119 const void *restrict pOut)
124 printf(
"Enter VXLIB_xor_exec_checkParams\n");
126 if ((handle == NULL) || (pIn0 == NULL) || (pIn1 == NULL) || (pOut == NULL)) {
162 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_xor_init\n");
166 uint32_t dTypeIn0 = bufParamsIn0->
data_type;
229 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_xor_exec\n");
234 status = pKerPrivArgs->
execute(handle, pIn0, pIn1, pOut);
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
template VXLIB_STATUS VXLIB_xor_init_ci< VXLIB_INT8 >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_xor_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_xor_init_ci< VXLIB_INT16 >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_xor_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_xor_init_ci< VXLIB_UINT16 >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_xor_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_xor_exec_ci< int16_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_xor_exec_ci< uint16_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_xor_exec_ci< int8_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_xor_exec_ci< uint8_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_xor_init_ci< VXLIB_UINT8 >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_xor_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_xor_exec_cn< uint16_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_xor_exec_cn< uint8_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_xor_exec_cn< int16_t >(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
template VXLIB_STATUS VXLIB_xor_exec_cn< int8_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_xor.
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_xor_exec(VXLIB_kernelHandle handle, void *restrict pIn0, void *restrict pIn1, void *restrict pOut)
This function is the main kernel compute function.
VXLIB_STATUS VXLIB_xor_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_xor_exec function....
VXLIB_STATUS VXLIB_xor_init(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn0, VXLIB_bufParams2D_t *bufParamsIn1, VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_xor_InitArgs *pKerInitArgs)
This function should be called before the VXLIB_xor_exec function is called. This function takes care...
VXLIB_STATUS VXLIB_xor_init_checkParams(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams2D_t *bufParamsIn1, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_xor_InitArgs *pKerInitArgs)
This function checks the validity of the parameters passed to VXLIB_xor_init function....
int32_t VXLIB_xor_getHandleSize(VXLIB_xor_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.
int8_t funcStyle
Variant of the function, refer to VXLIB_FUNCTION_STYLE
Structure that is reserved for internal use by the kernel.
size_t height
Height of image
size_t width
Width of image
pFxnVXLIB_xor_exec execute
Function pointer to point to the right execution variant between VXLIB_xor_exec_cn and VXLIB_xor_exec...
size_t strideIn1Elements
Stride of input1 in elements.
size_t strideOutElements
Stride of output in elements.
size_t strideIn0Elements
Stride of input0 in elements.