72 if ((handle == NULL) || (bufParamsIn == NULL) || (bufParamsMinLoc == NULL) || (bufParamsMaxLoc == NULL) ||
73 (pKerInitArgs == NULL)) {
81 uint32_t widthIn = bufParamsIn->
dim_x;
82 uint32_t strideIn = bufParamsIn->
stride_y;
83 uint32_t strideInElements = strideIn /
VXLIB_sizeof(dType);
86 if (strideInElements < widthIn) {
108 const void *restrict pIn,
109 const void *restrict pMinVal,
110 const void *restrict pMaxVal,
111 const void *restrict pMinCount,
112 const void *restrict pMaxCount,
113 const void *restrict pMinLocCapacity,
114 const void *restrict pMaxLocCapacity,
115 const void *restrict pMinLoc,
116 const void *restrict pMaxLoc,
117 const void *restrict pStartX,
118 const void *restrict pStartY)
123 printf(
"Enter VXLIB_minMaxLoc_exec_checkParams\n");
125 if ((handle == NULL) || (pIn == NULL) || (pMinVal == NULL) || (pMaxVal == NULL)) {
162 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_minMaxLoc_init\n");
194 bufParamsMaxLoc, pKerInitArgs);
199 bufParamsMaxLoc, pKerInitArgs);
204 bufParamsMaxLoc, pKerInitArgs);
209 bufParamsMaxLoc, pKerInitArgs);
229 void *restrict pMinVal,
230 void *restrict pMaxVal,
231 void *restrict pMinCount,
232 void *restrict pMaxCount,
233 void *restrict pMinLocCapacity,
234 void *restrict pMaxLocCapacity,
235 void *restrict pMinLoc,
236 void *restrict pMaxLoc,
237 void *restrict pStartX,
238 void *restrict pStartY)
243 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_minMaxLoc_exec\n");
248 status = pKerPrivArgs->
execute(handle, pIn, pMinVal, pMaxVal, pMinCount, pMaxCount, pMinLocCapacity, pMaxLocCapacity,
249 pMinLoc, pMaxLoc, pStartX, pStartY);
template VXLIB_STATUS VXLIB_minMaxLoc_exec_ci< VXLIB_MINMAXLOC_TYPENAME_8S >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
template VXLIB_STATUS VXLIB_minMaxLoc_exec_ci< VXLIB_MINMAXLOC_TYPENAME_16S >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
template VXLIB_STATUS VXLIB_minMaxLoc_init_ci< VXLIB_MINMAXLOC_DTYPE_16U >(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, VXLIB_bufParams1D_t *bufParamsMinLoc, VXLIB_bufParams1D_t *bufParamsMaxLoc, const VXLIB_minMaxLoc_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_minMaxLoc_init_ci< VXLIB_MINMAXLOC_DTYPE_16S >(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, VXLIB_bufParams1D_t *bufParamsMinLoc, VXLIB_bufParams1D_t *bufParamsMaxLoc, const VXLIB_minMaxLoc_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_minMaxLoc_init_ci< VXLIB_MINMAXLOC_DTYPE_8U >(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, VXLIB_bufParams1D_t *bufParamsMinLoc, VXLIB_bufParams1D_t *bufParamsMaxLoc, const VXLIB_minMaxLoc_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_minMaxLoc_exec_ci< VXLIB_MINMAXLOC_TYPENAME_16U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
template VXLIB_STATUS VXLIB_minMaxLoc_init_ci< VXLIB_MINMAXLOC_DTYPE_8S >(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, VXLIB_bufParams1D_t *bufParamsMinLoc, VXLIB_bufParams1D_t *bufParamsMaxLoc, const VXLIB_minMaxLoc_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_minMaxLoc_exec_ci< VXLIB_MINMAXLOC_TYPENAME_8U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
template VXLIB_STATUS VXLIB_minMaxLoc_exec_cn< VXLIB_MINMAXLOC_TYPENAME_8U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
template VXLIB_STATUS VXLIB_minMaxLoc_exec_cn< VXLIB_MINMAXLOC_TYPENAME_16U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
template VXLIB_STATUS VXLIB_minMaxLoc_exec_cn< VXLIB_MINMAXLOC_TYPENAME_16S >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
template VXLIB_STATUS VXLIB_minMaxLoc_exec_cn< VXLIB_MINMAXLOC_TYPENAME_8S >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
Header file for kernel's internal use. For the kernel's interface, please see VXLIB_minMaxLoc.
#define VXLIB_MINMAXLOC_8S
#define VXLIB_MINMAXLOC_16S
#define VXLIB_MINMAXLOC_8U
Macros that will be useful to check for datatype combinations.
#define VXLIB_MINMAXLOC_16U
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_minMaxLoc_init(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, VXLIB_bufParams1D_t *bufParamsMinLoc, VXLIB_bufParams1D_t *bufParamsMaxLoc, const VXLIB_minMaxLoc_InitArgs *pKerInitArgs)
This function should be called before the VXLIB_minMaxLoc_exec function is called....
VXLIB_STATUS VXLIB_minMaxLoc_init_checkParams(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_bufParams1D_t *bufParamsMinLoc, const VXLIB_bufParams1D_t *bufParamsMaxLoc, const VXLIB_minMaxLoc_InitArgs *pKerInitArgs)
This function checks the validity of the parameters passed to VXLIB_minMaxLoc_init function....
VXLIB_STATUS VXLIB_minMaxLoc_exec_checkParams(VXLIB_kernelHandle handle, const void *restrict pIn, const void *restrict pMinVal, const void *restrict pMaxVal, const void *restrict pMinCount, const void *restrict pMaxCount, const void *restrict pMinLocCapacity, const void *restrict pMaxLocCapacity, const void *restrict pMinLoc, const void *restrict pMaxLoc, const void *restrict pStartX, const void *restrict pStartY)
This function checks the validity of the parameters passed to VXLIB_minMaxLoc_exec function....
VXLIB_STATUS VXLIB_minMaxLoc_exec(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pMinVal, void *restrict pMaxVal, void *restrict pMinCount, void *restrict pMaxCount, void *restrict pMinLocCapacity, void *restrict pMaxLocCapacity, void *restrict pMinLoc, void *restrict pMaxLoc, void *restrict pStartX, void *restrict pStartY)
This function is the main kernel compute function.
int32_t VXLIB_minMaxLoc_getHandleSize(VXLIB_minMaxLoc_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
A structure for a 1 dimensional buffer descriptor.
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.
pFxnVXLIB_minMaxLoc_exec execute
Function pointer to point to the right execution variant between VXLIB_minMaxLoc_exec_cn and VXLIB_mi...
VXLIB_minMaxLoc_InitArgs pKerInitArgs
Initargs of the kernel.
uint32_t strideInElements
Stride of input0 in elements.
uint32_t height
Height of image
uint32_t width
Width of image