浮点数转Q31公式描述:
pDst[n] = (q31_t)(pSrc[n] * 2147483648); 0 <= n < blockSize。
浮点数转Q15公式描述:
pDst[n] = (q15_t)(pSrc[n] * 32768); 0 <= n < blockSize
浮点数转Q7公式描述:
pDst[n] = (q7_t)(pSrc[n] * 128); 0 <= n < blockSize
Q7转浮点数:
pDst[n] = (float32_t) pSrc[n] / 128; 0 <= n < blockSize.
Q7转Q31:
pDst[n] = (q31_t) pSrc[n] << 24; 0 <= n < blockSize.
Q7转Q15:
pDst[n] = (q15_t) pSrc[n] << 8; 0 <= n < blockSize.
Q15转浮点数:
pDst[n] = (float32_t) pSrc[n] / 32768; 0 <= n < blockSize.
Q15转Q31:
pDst[n] = (q31_t) pSrc[n] << 16; 0 <= n < blockSize.
Q15转Q7:
pDst[n] = (q7_t) pSrc[n] >> 8; 0 <= n < blockSize
Q31转浮点数:
pDst[n] = (float32_t) pSrc[n] / 2147483648; 0 <= n < blockSize.
Q31转Q15:
pDst[n] = (q15_t) pSrc[n] >> 16; 0 <= n < blockSize.
Q31转Q7:
pDst[n] = (q7_t) pSrc[n] >> 24; 0 <= n < blockSize. |