41 #include "VXLIB_types.h"
71 uint32_t dTypeIn = bufParamsIn->
data_type;
72 uint32_t widthIn = bufParamsIn->
dim_x;
73 uint32_t strideIn = bufParamsIn->
stride_y;
85 else if (strideIn < widthIn) {
103 const void *restrict pIn,
104 const void *restrict pOut0,
105 const void *restrict pOut1,
106 const void *restrict pPixelsProcessed,
107 const void *restrict pCurrentSum,
108 const void *restrict pCurrentSqSum)
113 printf(
"Enter VXLIB_meanStdDev_exec_checkParams\n");
115 if ((handle == NULL) || (pIn == NULL) || (pOut0 == NULL) || (pOut1 == NULL) || (pPixelsProcessed == NULL) ||
116 (pCurrentSum == NULL) || (pCurrentSqSum == NULL)) {
151 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_meanStdDev_init\n");
155 uint32_t dTypeIn = bufParamsIn->
data_type;
201 void *restrict pOut0,
202 void *restrict pOut1,
203 void *restrict pPixelsProcessed,
204 void *restrict pCurrentSum,
205 void *restrict pCurrentSqSum)
210 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_meanStdDev_exec\n");
215 status = pKerPrivArgs->
execute(handle, pIn, pOut0, pOut1, pPixelsProcessed, pCurrentSum, pCurrentSqSum);
template VXLIB_STATUS VXLIB_meanStdDev_init_ci< VXLIB_MEANSTDDEV_DTYPE_I8U_O32F >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_meanStdDev_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_meanStdDev_exec_ci< VXLIB_MEANSTDDEV_TYPENAME_I8U_O32F >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut0, void *restrict pOut1, void *restrict pPixelsProcessed, void *restrict pCurrentSum, void *restrict pCurrentSqSum)
template VXLIB_STATUS VXLIB_meanStdDev_exec_ci< VXLIB_MEANSTDDEV_TYPENAME_I16U_O32F >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut0, void *restrict pOut1, void *restrict pPixelsProcessed, void *restrict pCurrentSum, void *restrict pCurrentSqSum)
template VXLIB_STATUS VXLIB_meanStdDev_init_ci< VXLIB_MEANSTDDEV_DTYPE_I16U_O32F >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_meanStdDev_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_meanStdDev_exec_cn< VXLIB_MEANSTDDEV_TYPENAME_I16U_O32F >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut0, void *restrict pOut1, void *restrict pPixelsProcessed, void *restrict pCurrentSum, void *restrict pCurrentSqSum)
template VXLIB_STATUS VXLIB_meanStdDev_exec_cn< VXLIB_MEANSTDDEV_TYPENAME_I8U_O32F >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut0, void *restrict pOut1, void *restrict pPixelsProcessed, void *restrict pCurrentSum, void *restrict pCurrentSqSum)
Header file for kernel's internal use. For the kernel's interface, please see VXLIB_meanStdDev.
#define VXLIB_MEANSTDDEV_I16U_O32F
#define VXLIB_MEANSTDDEV_I8U_O32F
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_meanStdDev_init_checkParams(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_meanStdDev_InitArgs *pKerInitArgs)
This function checks the validity of the parameters passed to VXLIB_meanStdDev_init function....
VXLIB_STATUS VXLIB_meanStdDev_exec(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut0, void *restrict pOut1, void *restrict pPixelsProcessed, void *restrict pCurrentSum, void *restrict pCurrentSqSum)
This function is the main kernel compute function.
int32_t VXLIB_meanStdDev_getHandleSize(VXLIB_meanStdDev_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
VXLIB_STATUS VXLIB_meanStdDev_exec_checkParams(VXLIB_kernelHandle handle, const void *restrict pIn, const void *restrict pOut0, const void *restrict pOut1, const void *restrict pPixelsProcessed, const void *restrict pCurrentSum, const void *restrict pCurrentSqSum)
This function checks the validity of the parameters passed to VXLIB_meanStdDev_exec function....
VXLIB_STATUS VXLIB_meanStdDev_init(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_meanStdDev_InitArgs *pKerInitArgs)
This function should be called before the VXLIB_meanStdDev_exec function is called....
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
VXLIB_meanStdDev_InitArgs pKerInitArgs
Initargs of the kernel.
pFxnVXLIB_meanStdDev_exec execute
Function pointer to point to the right execution variant between VXLIB_meanStdDev_exec_cn and VXLIB_m...
size_t strideInElements
Stride of input in elements.
size_t width
Width of image