CI13LC SDK API手册  2.1.1
本手册用于描述CI13LC SDK各个组件和驱动API
宏定义 | 函数
mp3polyphase.c 文件参考
#include "mp3coder.h"
#include "mp3assembly.h"

宏定义

#define DEF_NFRACBITS   (DQ_FRACBITS_OUT - 2 - 2 - 15)
 
#define CSHIFT   12 /* coefficients have 12 leading sign bits for early-terminating mulitplies */
 
#define MC0M(x)
 
#define MC1M(x)
 
#define MC2M(x)
 
#define MC0S(x)
 
#define MC1S(x)
 
#define MC2S(x)
 

函数

static _XIF_ short ClipToShort (int x, int fracBits)
 
_XIF_ void PolyphaseMono (short *pcm, int *vbuf, const int *coefBase)
 
_XIF_ void PolyphaseStereo (short *pcm, int *vbuf, const int *coefBase)
 

宏定义说明

◆ CSHIFT

#define CSHIFT   12 /* coefficients have 12 leading sign bits for early-terminating mulitplies */

◆ DEF_NFRACBITS

#define DEF_NFRACBITS   (DQ_FRACBITS_OUT - 2 - 2 - 15)

◆ MC0M

#define MC0M (   x)
值:
{ \
c1 = *coef; coef++; c2 = *coef; coef++; \
vLo = *(vb1+(x)); vHi = *(vb1+(23-(x))); \
sum1L = MADD64(sum1L, vLo, c1); sum1L = MADD64(sum1L, vHi, -c2); \
}
static _XIF_ long long MADD64(long long sum, int x, int y)
Definition: mp3assembly.h:153

◆ MC0S

#define MC0S (   x)
值:
{ \
c1 = *coef; coef++; c2 = *coef; coef++; \
vLo = *(vb1+(x)); vHi = *(vb1+(23-(x))); \
sum1L = MADD64(sum1L, vLo, c1); sum1L = MADD64(sum1L, vHi, -c2); \
vLo = *(vb1+32+(x)); vHi = *(vb1+32+(23-(x))); \
sum1R = MADD64(sum1R, vLo, c1); sum1R = MADD64(sum1R, vHi, -c2); \
}
static _XIF_ long long MADD64(long long sum, int x, int y)
Definition: mp3assembly.h:153

◆ MC1M

#define MC1M (   x)
值:
{ \
c1 = *coef; coef++; \
vLo = *(vb1+(x)); \
sum1L = MADD64(sum1L, vLo, c1); \
}
static _XIF_ long long MADD64(long long sum, int x, int y)
Definition: mp3assembly.h:153

◆ MC1S

#define MC1S (   x)
值:
{ \
c1 = *coef; coef++; \
vLo = *(vb1+(x)); \
sum1L = MADD64(sum1L, vLo, c1); \
vLo = *(vb1+32+(x)); \
sum1R = MADD64(sum1R, vLo, c1); \
}
static _XIF_ long long MADD64(long long sum, int x, int y)
Definition: mp3assembly.h:153

◆ MC2M

#define MC2M (   x)
值:
{ \
c1 = *coef; coef++; c2 = *coef; coef++; \
vLo = *(vb1+(x)); vHi = *(vb1+(23-(x))); \
sum1L = MADD64(sum1L, vLo, c1); sum2L = MADD64(sum2L, vLo, c2); \
sum1L = MADD64(sum1L, vHi, -c2); sum2L = MADD64(sum2L, vHi, c1); \
}
static _XIF_ long long MADD64(long long sum, int x, int y)
Definition: mp3assembly.h:153

◆ MC2S

#define MC2S (   x)
值:
{ \
c1 = *coef; coef++; c2 = *coef; coef++; \
vLo = *(vb1+(x)); vHi = *(vb1+(23-(x))); \
sum1L = MADD64(sum1L, vLo, c1); sum2L = MADD64(sum2L, vLo, c2); \
sum1L = MADD64(sum1L, vHi, -c2); sum2L = MADD64(sum2L, vHi, c1); \
vLo = *(vb1+32+(x)); vHi = *(vb1+32+(23-(x))); \
sum1R = MADD64(sum1R, vLo, c1); sum2R = MADD64(sum2R, vLo, c2); \
sum1R = MADD64(sum1R, vHi, -c2); sum2R = MADD64(sum2R, vHi, c1); \
}
static _XIF_ long long MADD64(long long sum, int x, int y)
Definition: mp3assembly.h:153

函数说明

◆ ClipToShort()

static _XIF_ short ClipToShort ( int  x,
int  fracBits 
)
static

◆ PolyphaseMono()

_XIF_ void PolyphaseMono ( short *  pcm,
int *  vbuf,
const int *  coefBase 
)

◆ PolyphaseStereo()

_XIF_ void PolyphaseStereo ( short *  pcm,
int *  vbuf,
const int *  coefBase 
)