40 #include "../VXLIB_bufParams.h"
41 #include "../VXLIB_types.h"
42 #include "../VXLIB_utility.h"
49 dataType *zPtr = matrix;
55 for (z = 0; z < params->
dim_z; z++) {
58 for (y = 0; y < params->
dim_y; y++) {
61 for (x = 0; x < params->
dim_x; x++) {
66 yPtr += stride_y_elements;
68 zPtr += stride_z_elements;
83 dataType *zPtr = matrix;
89 for (z = 0; z < params->
dim_z; z++) {
92 for (y = 0; y < params->
dim_y; y++) {
95 for (x = 0; x < params->
dim_x; x++) {
100 yPtr += stride_y_elements;
102 zPtr += stride_z_elements;
128 VXLIB_debugPrintMatrix3D_helperU<uint16_t>((uint16_t *) matrix, params);
134 VXLIB_debugPrintMatrix3D_helperU<uint8_t>((uint8_t *) matrix, params);
137 VXLIB_PRINTF(
"\nERROR: Unrecognized data type in %s.\n", __FUNCTION__);
template void VXLIB_debugPrintMatrix3D_helper< int16_t >(int16_t *matrix, const VXLIB_bufParams3D_t *params)
template void VXLIB_debugPrintMatrix3D_helper< int32_t >(int32_t *matrix, const VXLIB_bufParams3D_t *params)
void VXLIB_debugPrintMatrix3D_helper(dataType *matrix, const VXLIB_bufParams3D_t *params)
void VXLIB_debugPrintMatrix3D_helperU(dataType *matrix, const VXLIB_bufParams3D_t *params)
void VXLIB_debugPrintMatrix3D(void *matrix, const VXLIB_bufParams3D_t *params)
template void VXLIB_debugPrintMatrix3D_helper< int8_t >(int8_t *matrix, const VXLIB_bufParams3D_t *params)
template void VXLIB_debugPrintMatrix3D_helper< uint8_t >(uint8_t *matrix, const VXLIB_bufParams3D_t *params)
template void VXLIB_debugPrintMatrix3D_helper< uint16_t >(uint16_t *matrix, const VXLIB_bufParams3D_t *params)
#define VXLIB_PRINTF(fmt,...)
static int32_t VXLIB_sizeof(uint32_t type)
Inline function returns number of bytes per element given a type of VXLIB_data_type_e.
A structure for a 3 dimensional buffer descriptor.
int32_t stride_z
Stride in Z dimension in bytes.
int32_t stride_y
Stride in Y dimension in bytes.
uint32_t dim_z
Depth of patch in Z dimension in elements.
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.