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

宏定义

#define COS0_0   0x4013c251 /* Q31 */
 
#define COS0_1   0x40b345bd /* Q31 */
 
#define COS0_2   0x41fa2d6d /* Q31 */
 
#define COS0_3   0x43f93421 /* Q31 */
 
#define COS0_4   0x46cc1bc4 /* Q31 */
 
#define COS0_5   0x4a9d9cf0 /* Q31 */
 
#define COS0_6   0x4fae3711 /* Q31 */
 
#define COS0_7   0x56601ea7 /* Q31 */
 
#define COS0_8   0x5f4cf6eb /* Q31 */
 
#define COS0_9   0x6b6fcf26 /* Q31 */
 
#define COS0_10   0x7c7d1db3 /* Q31 */
 
#define COS0_11   0x4ad81a97 /* Q30 */
 
#define COS0_12   0x5efc8d96 /* Q30 */
 
#define COS0_13   0x41d95790 /* Q29 */
 
#define COS0_14   0x6d0b20cf /* Q29 */
 
#define COS0_15   0x518522fb /* Q27 */
 
#define COS1_0   0x404f4672 /* Q31 */
 
#define COS1_1   0x42e13c10 /* Q31 */
 
#define COS1_2   0x48919f44 /* Q31 */
 
#define COS1_3   0x52cb0e63 /* Q31 */
 
#define COS1_4   0x64e2402e /* Q31 */
 
#define COS1_5   0x43e224a9 /* Q30 */
 
#define COS1_6   0x6e3c92c1 /* Q30 */
 
#define COS1_7   0x519e4e04 /* Q28 */
 
#define COS2_0   0x4140fb46 /* Q31 */
 
#define COS2_1   0x4cf8de88 /* Q31 */
 
#define COS2_2   0x73326bbf /* Q31 */
 
#define COS2_3   0x52036742 /* Q29 */
 
#define COS3_0   0x4545e9ef /* Q31 */
 
#define COS3_1   0x539eba45 /* Q30 */
 
#define COS4_0   0x5a82799a /* Q31 */
 
#define D32FP(i, s0, s1, s2)
 

函数

_XIF_ void STATNAME() FDCT32 (int *buf, int *dest, int offset, int oddBlock, int gb)
 

变量

static _DIF_ const int dcttab [48]
 

宏定义说明

◆ COS0_0

#define COS0_0   0x4013c251 /* Q31 */

◆ COS0_1

#define COS0_1   0x40b345bd /* Q31 */

◆ COS0_10

#define COS0_10   0x7c7d1db3 /* Q31 */

◆ COS0_11

#define COS0_11   0x4ad81a97 /* Q30 */

◆ COS0_12

#define COS0_12   0x5efc8d96 /* Q30 */

◆ COS0_13

#define COS0_13   0x41d95790 /* Q29 */

◆ COS0_14

#define COS0_14   0x6d0b20cf /* Q29 */

◆ COS0_15

#define COS0_15   0x518522fb /* Q27 */

◆ COS0_2

#define COS0_2   0x41fa2d6d /* Q31 */

◆ COS0_3

#define COS0_3   0x43f93421 /* Q31 */

◆ COS0_4

#define COS0_4   0x46cc1bc4 /* Q31 */

◆ COS0_5

#define COS0_5   0x4a9d9cf0 /* Q31 */

◆ COS0_6

#define COS0_6   0x4fae3711 /* Q31 */

◆ COS0_7

#define COS0_7   0x56601ea7 /* Q31 */

◆ COS0_8

#define COS0_8   0x5f4cf6eb /* Q31 */

◆ COS0_9

#define COS0_9   0x6b6fcf26 /* Q31 */

◆ COS1_0

#define COS1_0   0x404f4672 /* Q31 */

◆ COS1_1

#define COS1_1   0x42e13c10 /* Q31 */

◆ COS1_2

#define COS1_2   0x48919f44 /* Q31 */

◆ COS1_3

#define COS1_3   0x52cb0e63 /* Q31 */

◆ COS1_4

#define COS1_4   0x64e2402e /* Q31 */

◆ COS1_5

#define COS1_5   0x43e224a9 /* Q30 */

◆ COS1_6

#define COS1_6   0x6e3c92c1 /* Q30 */

◆ COS1_7

#define COS1_7   0x519e4e04 /* Q28 */

◆ COS2_0

#define COS2_0   0x4140fb46 /* Q31 */

◆ COS2_1

#define COS2_1   0x4cf8de88 /* Q31 */

◆ COS2_2

#define COS2_2   0x73326bbf /* Q31 */

◆ COS2_3

#define COS2_3   0x52036742 /* Q29 */

◆ COS3_0

#define COS3_0   0x4545e9ef /* Q31 */

◆ COS3_1

#define COS3_1   0x539eba45 /* Q30 */

◆ COS4_0

#define COS4_0   0x5a82799a /* Q31 */

◆ D32FP

#define D32FP (   i,
  s0,
  s1,
  s2 
)
值:
{ \
a0 = buf[i]; a3 = buf[31-i]; \
a1 = buf[15-i]; a2 = buf[16+i]; \
b0 = a0 + a3; b3 = MULSHIFT32(*cptr++, a0 - a3) << (s0); \
b1 = a1 + a2; b2 = MULSHIFT32(*cptr++, a1 - a2) << (s1); \
buf[i] = b0 + b1; buf[15-i] = MULSHIFT32(*cptr, b0 - b1) << (s2); \
buf[16+i] = b2 + b3; buf[31-i] = MULSHIFT32(*cptr++, b3 - b2) << (s2); \
}
static _XIF_ int MULSHIFT32(int x, int y)
Definition: mp3assembly.h:137

函数说明

◆ FDCT32()

_XIF_ void STATNAME() FDCT32 ( int *  buf,
int *  dest,
int  offset,
int  oddBlock,
int  gb 
)

变量说明

◆ dcttab

_DIF_ const int dcttab[48]
static
初始值:
= {
0x4013c251 , 0x518522fb , 0x404f4672 ,
0x40b345bd , 0x6d0b20cf , 0x42e13c10 ,
0x41fa2d6d , 0x41d95790 , 0x48919f44 ,
0x43f93421 , 0x5efc8d96 , 0x52cb0e63 ,
0x46cc1bc4 , 0x4ad81a97 , 0x64e2402e ,
0x4a9d9cf0 , 0x7c7d1db3 , 0x43e224a9 ,
0x4fae3711 , 0x6b6fcf26 , 0x6e3c92c1 ,
0x56601ea7 , 0x5f4cf6eb , 0x519e4e04 ,
0x4140fb46 , 0x52036742 , 0x4545e9ef ,
0x4cf8de88 , 0x73326bbf , 0x539eba45 ,
- 0x4140fb46 , - 0x52036742 , 0x4545e9ef ,
- 0x4cf8de88 , - 0x73326bbf , 0x539eba45 ,
0x4140fb46 , 0x52036742 , 0x4545e9ef ,
0x4cf8de88 , 0x73326bbf , 0x539eba45 ,
- 0x4140fb46 , - 0x52036742 , 0x4545e9ef ,
- 0x4cf8de88 , - 0x73326bbf , 0x539eba45 ,
}