LIBDSP Version 4.1.9
LIBDSP Software Library
Loading...
Searching...
No Matches
Convert 32-bit Integer value
Collaboration diagram for Convert 32-bit Integer value:

Functions

void tpt_q31_to_q15 (q15_t *pDst, const q31_t *pSrc, uint32_t blockSize)
 Converts the elements of the Q31 vector to Q15 vector.
void tpt_q31_to_f32 (f32_t *aOutData, const q31_t *aInData, uint32_t aCount)
 Converts the elements of the Q31 vector to floating-point vector.
void tpt_q31_to_f64 (f64_t *aOutData, const q31_t *aInData, uint32_t aCount)
 Converts the elements of the Q31 vector to floating-point vector.
void tpt_q31_to_q7 (q7_t *pDst, const q31_t *pSrc, uint32_t blockSize)
 Converts the elements of the Q31 vector to Q7 vector.

Detailed Description

Function Documentation

◆ tpt_q31_to_f32()

void tpt_q31_to_f32 ( f32_t * aOutData,
const q31_t * aInData,
uint32_t aCount )

Converts the elements of the Q31 vector to floating-point vector.

Parameters
[out]aOutDatapoints to the floating-point output vector
[in]aInDatapoints to the Q31 input vector
[in]aCountnumber of samples in each vector
Returns
none
Details
The equation used for the conversion process is:
    aOutData[n] = (f32_t) aInData[n] / 2147483648;   0 <= n < aCount.
  

◆ tpt_q31_to_f64()

void tpt_q31_to_f64 ( f64_t * aOutData,
const q31_t * aInData,
uint32_t aCount )

Converts the elements of the Q31 vector to floating-point vector.

Parameters
[out]aOutDatapoints to the floating-point output vector
[in]aInDatapoints to the Q31 input vector
[in]aCountnumber of samples in each vector
Returns
none
Details
The equation used for the conversion process is:
    aOutData[n] = (f64_t) aInData[n] / 2147483648;   0 <= n < aCount.
  

◆ tpt_q31_to_q15()

void tpt_q31_to_q15 ( q15_t * pDst,
const q31_t * pSrc,
uint32_t blockSize )

Converts the elements of the Q31 vector to Q15 vector.

Parameters
[out]pDstpoints to the Q15 output vector
[in]pSrcpoints to the Q31 input vector
[in]blockSizenumber of samples in each vector
Details
The equation used for the conversion process is:
 pDst[n] = (q15_t) pSrc[n] >> 16;   0 <= n < blockSize.
 

◆ tpt_q31_to_q7()

void tpt_q31_to_q7 ( q7_t * pDst,
const q31_t * pSrc,
uint32_t blockSize )

Converts the elements of the Q31 vector to Q7 vector.

Parameters
[out]pDstpoints to the Q7 output vector
[in]pSrcpoints to the Q31 input vector
[in]blockSizenumber of samples in each vector
Details
The equation used for the conversion process is:
 pDst[n] = (q7_t) pSrc[n] >> 24;   0 <= n < blockSize.