codec.h
来自「本程序是基于ACELP算法编写的语音编解码程序」· C头文件 代码 · 共 62 行
H
62 行
#define FRAME_SIZE 120
#define COMPRESSED_FRAME_SIZE 15
typedef struct acelp_state * acelp;
typedef unsigned char acelp_frame[COMPRESSED_FRAME_SIZE];
extern acelp Init( short int ); // param: =1 for compressor, =0 for decompressor
extern void DeInit( acelp );
extern short int Encoder( acelp, short int *, unsigned char * , short int );
extern void Decoder( acelp, unsigned char *, short int * );
struct acelp_state
{
short int Type;
short int *xpi;
short int *PresentC;
short int *FutureC;
short int *excit;
short int *lpcimem;
short int *memory_swi;
short int *ShAcf;
long *Acf;
float *NLpc;
short int *Polp;
short int Hcnt ;
short int Vcnt ;
long Penr ;
long Nlev ;
float Penrf ;
float Nlevf ;
short int Aen ;
short int x0i;
short int x1i;
short int x2i;
short int y0i;
short int y1i;
short int y2i;
unsigned short int indexNAVQm;
unsigned short int indexTVQm;
unsigned short int indexSVQ1m;
unsigned short int indexSVQ2m;
short int yXwi[13];
short int *PresentD;
short int *FutureD;
short int *excitDi;
short int *Dyi;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?