41 #include "VXLIB_types.h"
72 if (handle == NULL || bufParamsIn == NULL || bufParamsOut == NULL || pKerInitArgs == NULL) {
82 else if (!((pKerInitArgs->
padLeft == 0) && (pKerInitArgs->
padRight == 0) && (pKerInitArgs->
padTop == 0) &&
88 else if ((bufParamsIn->
dim_x < bufParamsOut->
dim_x) ||
122 printf(
"Enter VXLIB_gaussian_exec_checkParams\n");
124 if ((handle == NULL) || (pIn == NULL) || (pOut == NULL)) {
161 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_gaussian_init\n");
165 uint32_t dTypeIn = bufParamsIn->
data_type;
166 uint32_t dTypeOut = bufParamsOut->
data_type;
209 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_gaussian_exec\n");
214 status = pKerPrivArgs->
execute(handle, pIn, pOut);
template VXLIB_STATUS VXLIB_gaussian_exec_ci< VXLIB_GAUSSIAN_TYPENAME_I8U_O8U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
template VXLIB_STATUS VXLIB_gaussian_init_ci< VXLIB_GAUSSIAN_DTYPE_I8U_O8U >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_gaussian_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_gaussian_exec_cn< VXLIB_GAUSSIAN_TYPENAME_I8U_O8U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
Header file for kernel's internal use. For the kernel's interface, please see VXLIB_gaussian.
#define VXLIB_GAUSSIAN_FILTER_5x5
Macros for 5x5 filter dimension.
#define VXLIB_GAUSSIAN_FILTER_5x5_MAX_SHIFT
Macros for maximum shift parameter for 5x5 filter.
#define VXLIB_GAUSSIAN_I8U_O8U
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_SHIFT
@ VXLIB_ERR_NOT_IMPLEMENTED
@ 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_gaussian_init(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_gaussian_InitArgs *pKerInitArgs)
This function should be called before the VXLIB_gaussian_exec function is called. This function takes...
VXLIB_STATUS VXLIB_gaussian_init_checkParams(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_bufParams2D_t *bufParamsOut, const VXLIB_gaussian_InitArgs *pKerInitArgs)
This function checks the validity of the parameters passed to VXLIB_gaussian_init function....
VXLIB_STATUS VXLIB_gaussian_exec_checkParams(VXLIB_kernelHandle handle, const void *restrict pIn, const void *restrict pOut)
This function checks the validity of the parameters passed to VXLIB_gaussian_exec function....
int32_t VXLIB_gaussian_getHandleSize(VXLIB_gaussian_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
VXLIB_STATUS VXLIB_gaussian_exec(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
This function is the main kernel compute function.
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
uint8_t shift
Shift parameter for 5x5 filter
int8_t filterSize
Width and height of filter
int32_t padLeft
Padding options
Structure that is reserved for internal use by the kernel.
size_t width
Width of image
size_t height
Height of image
size_t strideOutElements
Stride of output in elements.
pFxnVXLIB_gaussian_exec execute
Function pointer to point to the right execution variant between VXLIB_gaussian_exec_cn and VXLIB_gau...
size_t strideInElements
Stride of input in elements.
VXLIB_gaussian_InitArgs pKerInitArgs
Initargs of the kernel.