71 uint32_t dTypeIn = bufParamsIn->
data_type;
72 uint32_t widthIn = bufParamsIn->
dim_x;
73 uint32_t strideIn = bufParamsIn->
stride_y;
76 uint32_t dTypeOut = bufParamsOut->
data_type;
78 uint8_t offset = pKerInitArgs->
offset;
79 uint16_t range = pKerInitArgs->
range;
80 uint16_t numBins = pKerInitArgs->
numBins;
81 uint8_t lastBlock = pKerInitArgs->
lastBlock;
90 else if ((strideIn < widthIn)) {
96 else if ((lastBlock != 0) && (lastBlock != 1)) {
119 printf(
"Enter VXLIB_histogram_exec_checkParams\n");
121 if ((handle == NULL) || (pIn == NULL) || (pOut == NULL)) {
157 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_histogram_init\n");
161 uint32_t dTypeIn = bufParamsIn->
data_type;
162 uint32_t dTypeOut = bufParamsOut->
data_type;
200 printf(
"VXLIB_DEBUGPRINT Enter VXLIB_histogram_exec\n");
205 status = pKerPrivArgs->
execute(handle, pIn, pOut);
template VXLIB_STATUS VXLIB_histogram_init_ci< VXLIB_HISTOGRAM_DTYPE_I8U_O32U >(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn0, const VXLIB_bufParams1D_t *bufParamsOut, const VXLIB_histogram_InitArgs *pKerInitArgs)
template VXLIB_STATUS VXLIB_histogram_exec_ci< VXLIB_HISTOGRAM_TYPENAME_I8U_O32U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
template VXLIB_STATUS VXLIB_histogram_exec_cn< VXLIB_HISTOGRAM_TYPENAME_I8U_O32U >(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
Header file for kernel's internal use. For the kernel's interface, please see VXLIB_histogram.
#define VXLIB_HISTOGRAM_MAX_PIXEL_VALUE
Macros for maximum pixel value to be represented in distribution.
#define VXLIB_HISTOGRAM_I8U_O32U
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
@ VXLIB_ERR_INVALID_VALUE
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_histogram_getHandleSize(VXLIB_histogram_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
VXLIB_STATUS VXLIB_histogram_init(VXLIB_kernelHandle handle, VXLIB_bufParams2D_t *bufParamsIn, VXLIB_bufParams1D_t *bufParamsOut, const VXLIB_histogram_InitArgs *pKerInitArgs)
This function should be called before the VXLIB_histogram_exec function is called....
VXLIB_STATUS VXLIB_histogram_exec_checkParams(VXLIB_kernelHandle handle, const void *restrict pIn, const void *restrict pOut)
This function checks the validity of the parameters passed to VXLIB_histogram_exec function....
VXLIB_STATUS VXLIB_histogram_init_checkParams(VXLIB_kernelHandle handle, const VXLIB_bufParams2D_t *bufParamsIn, const VXLIB_bufParams1D_t *bufParamsOut, const VXLIB_histogram_InitArgs *pKerInitArgs)
This function checks the validity of the parameters passed to VXLIB_histogram_init function....
VXLIB_STATUS VXLIB_histogram_exec(VXLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
This function is the main kernel compute function.
A structure for a 1 dimensional buffer descriptor.
uint32_t data_type
Values are of type VXLIB_data_type_e.
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.
uint16_t numBins
Parameter indicating distribution number of bins (<= 256)
uint8_t offset
Parameter indicating distribution offset.
uint16_t range
Parameter indicating distribution range (<= 256)
int8_t funcStyle
Variant of the function, refer to VXLIB_FUNCTION_STYLE
uint8_t lastBlock
Flag that indicates if the function call is the final call for the image (0: intermediate call,...
Structure that is reserved for internal use by the kernel.
VXLIB_histogram_InitArgs pKerInitArgs
Initargs of the kernel.
size_t height
Height of image
size_t strideInElements
Stride of input0 in elements.
size_t width
Width of image
pFxnVXLIB_histogram_exec execute
Function pointer to point to the right execution variant between VXLIB_histogram_exec_cn and VXLIB_hi...