13 #ifndef _MpDspUtilsConvertVect_h_ 14 #define _MpDspUtilsConvertVect_h_ 25 #ifdef MP_FIXED_POINT // [ 29 for (
int i=0; i<dataLength; i++)
38 for (
int i=0; i<dataLength; i++)
47 for (
int i=0; i<dataLength; i++)
56 for (
int i=0; i<dataLength; i++)
65 for (
int i=0; i<dataLength; i++)
67 pDst[i] =
shl32((int32_t)pSrc[i], srcScaleFactor);
74 for (
int i=0; i<dataLength; i++)
76 pDst[i] = pSrc[i]>>srcScaleFactor;
81 #else // MP_FIXED_POINT ][ 85 for (
int i=0; i<dataLength; i++)
93 #endif // MP_FIXED_POINT ] 95 #endif // _MpDspUtilsConvertVect_h_ static MP_DSP_VECTOR_API OsStatus convert_Gain(const int32_t *pSrc, int16_t *pDst, int dataLength, unsigned srcScaleFactor)
Gain vector of 32-bit integers and convert them to 16-bit integers.
static MP_DSP_VECTOR_API OsStatus convert(const int32_t *pSrc, int16_t *pDst, int dataLength)
Convert vector of 32-bit integers to 16-bit integers.
static int32_t shl16(int32_t a, unsigned scale)
Definition: MpDspUtilsShift.h:30
#define MPF_SATURATE16(val)
Saturate val to fit 16-bit signed integer.
Definition: MpDspUtils.h:60
#define MPF_EXTRACRT16(val)
Return 16 bit integer.
Definition: MpDspUtils.h:71
static int32_t shl32(int32_t a, unsigned scale)
Definition: MpDspUtilsShift.h:43
static MP_DSP_VECTOR_API OsStatus convert_Att(const int32_t *pSrc, int16_t *pDst, int dataLength, unsigned srcScaleFactor)
Attenuate vector of 32-bit integers and convert them to 16-bit integers.