43 #include "../DSPLIB_bufParams.h"
44 #include "../DSPLIB_types.h"
45 #include "../DSPLIB_utility.h"
52 dataType *zPtr = matrix;
58 for (z = 0; z < params->
dim_z; z++) {
61 for (y = 0; y < params->
dim_y; y++) {
64 for (x = 0; x < params->
dim_x; x++) {
69 yPtr += stride_y_elements;
71 zPtr += stride_z_elements;
81 template <
typename dataType>
87 dataType *zPtr = matrix;
93 for (z = 0; z < params->
dim_z; z++) {
96 for (y = 0; y < params->
dim_y; y++) {
99 for (x = 0; x < params->
dim_x; x++) {
104 yPtr += stride_y_elements;
106 zPtr += stride_z_elements;
141 DSPLIB_debugPrintMatrix3D_helperU<uint16_t>((uint16_t *) matrix, params);
147 DSPLIB_debugPrintMatrix3D_helperU<uint8_t>((uint8_t *) matrix, params);
150 DSPLIB_PRINTF(
"\nERROR: Unrecognized data type in %s.\n", __FUNCTION__);
void DSPLIB_debugPrintMatrix3D_helperU(dataType *matrix, const DSPLIB_bufParams3D_t *params)
template void DSPLIB_debugPrintMatrix3D_helper< int32_t >(int32_t *matrix, const DSPLIB_bufParams3D_t *params)
template void DSPLIB_debugPrintMatrix3D_helper< uint16_t >(uint16_t *matrix, const DSPLIB_bufParams3D_t *params)
template void DSPLIB_debugPrintMatrix3D_helper< uint8_t >(uint8_t *matrix, const DSPLIB_bufParams3D_t *params)
template void DSPLIB_debugPrintMatrix3D_helper< int16_t >(int16_t *matrix, const DSPLIB_bufParams3D_t *params)
template void DSPLIB_debugPrintMatrix3D_helper< int8_t >(int8_t *matrix, const DSPLIB_bufParams3D_t *params)
void DSPLIB_debugPrintMatrix3D(void *matrix, const DSPLIB_bufParams3D_t *params)
void DSPLIB_debugPrintMatrix3D_helper(dataType *matrix, const DSPLIB_bufParams3D_t *params)
#define DSPLIB_PRINTF(fmt,...)
static int32_t DSPLIB_sizeof(uint32_t type)
Inline function returns number of bytes per element given a type of DSPLIB_data_type_e.
A structure for a 3 dimensional buffer descriptor.
int32_t stride_y
Stride in Y dimension in bytes.
uint32_t dim_x
Width of buffer in X dimension in elements.
uint32_t dim_z
Depth of patch in Z dimension in elements.
int32_t stride_z
Stride in Z dimension in bytes.
uint32_t dim_y
Height of buffer in Y dimension in elements.
uint32_t data_type
Values are of type DSPLIB_data_type_e.