DSPLIB User Guide
DSPLIB_matTrans_priv.h
Go to the documentation of this file.
1 /******************************************************************************
2  * *
3  * module name :DSPLIB *
4  * *
5  * module descripton :Digital Signal Processing Library module for C7x+MMA *
6  * *
7  * Copyright (C) 2017-2018 Texas Instruments Incorporated - https://www.ti.com/ *
8  * ALL RIGHTS RESERVED *
9  * *
10  ******************************************************************************/
11 
12 /********************************************************************************
13  * @file DSPLIB_matTrans_priv.h
14  *
15  * @brief File to hold private parameter of function DSPLIB_mat_trans
16  *
17  * @version 0.1 - Jun 2023 : Initial Version
18  *
19  ********************************************************************************/
20 
21 #ifndef DSPLIB_MATTRANS_IXX_IXX_OXX_PRIV_H_
22 #define DSPLIB_MATTRANS_IXX_IXX_OXX_PRIV_H_
23 
24 #include "../common/DSPLIB_utility.h"
25 #include "DSPLIB_matTrans.h"
26 
38 #define DSPLIB_MAT_TRANS_IXX_IXX_OXX_PBLOCK_SIZE (2 * SE_PARAM_SIZE + sizeof(int32_t))
39 
45 typedef DSPLIB_STATUS (*pFxnDSPLIB_matTrans_exec)(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut);
46 
74 template <typename dataType>
76  const DSPLIB_bufParams2D_t *bufParamsIn,
77  const DSPLIB_bufParams2D_t *bufParamsOut,
78  const DSPLIB_matTransInitArgs *pKerInitArgs);
79 
101 template <typename dataType>
102 extern DSPLIB_STATUS DSPLIB_matTrans_exec_ci(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut);
103 
123  DSPLIB_bufParams2D_t *bufParamsIn,
124  DSPLIB_bufParams2D_t *bufParamsOut,
125  const DSPLIB_matTransInitArgs *pKerInitArgs);
126 
141 template <typename dataType>
142 extern DSPLIB_STATUS DSPLIB_matTrans_exec_cn(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut);
143 
147 typedef struct {
156  uint32_t widthIn;
158  uint32_t heightIn;
160  int32_t strideIn;
162  int32_t strideOut;
166 
167 #endif /* DSPLIB_matTrans_IXX_IXX_OXX_PRIV_H_ */
168 
169 /* ======================================================================== */
170 /* End of file: DSPLIB_mat_trans.h */
171 /* ======================================================================== */
DSPLIB_STATUS DSPLIB_matTrans_exec_ci(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
This function is the main execution function for the C7x implementation of the kernel....
#define DSPLIB_MAT_TRANS_IXX_IXX_OXX_PBLOCK_SIZE
Macro to define the size of bufPblock array of DSPLIB_matTrans_PrivArgs structure.
DSPLIB_STATUS DSPLIB_matTrans_init_cn(DSPLIB_kernelHandle handle, DSPLIB_bufParams2D_t *bufParamsIn, DSPLIB_bufParams2D_t *bufParamsOut, const DSPLIB_matTransInitArgs *pKerInitArgs)
This function is the initialization function for the natural C implementation of the kernel....
DSPLIB_STATUS DSPLIB_matTrans_exec_cn(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
This function is the main execution function for the natural C implementation of the kernel....
DSPLIB_STATUS DSPLIB_matTrans_init_ci(DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams2D_t *bufParamsOut, const DSPLIB_matTransInitArgs *pKerInitArgs)
This function is the initialization function for the C7x implementation of the kernel....
DSPLIB_STATUS(* pFxnDSPLIB_matTrans_exec)(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
This is a function pointer type that conforms to the declaration of DSPLIB_matTrans_exec_ci and DSPLI...
DSPLIB_STATUS_NAME DSPLIB_STATUS
Return value for DSPLIB functions.
Definition: DSPLIB_types.h:170
DSPLIB_STATUS_NAME
The enumeration of all status codes.
Definition: DSPLIB_types.h:151
void * DSPLIB_kernelHandle
Handle type for DSPLIB operations.
Definition: DSPLIB_types.h:172
A structure for a 2 dimensional buffer descriptor.
Structure containing the parameters to initialize the kernel.
Structure that is reserved for internal use by the kernel.
int32_t strideOut
Stride between rows of output data matrix
pFxnDSPLIB_matTrans_exec execute
Function pointer to point to the right execution variant between DSPLIB_matTrans_exec_cn and DSPLIB_m...
uint32_t heightIn
Height of input data matrix
int32_t strideIn
Stride between rows of input data matrix
uint32_t widthIn
Size of input buffer for different batches DSPLIB_matTrans_init that will be retrieved and used by DS...