⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitno_tab.h

📁 AMR-NB 的编码实现,纯C, VC下建立工程即可用.
💻 H
字号:

/*******************************************************************************
**      File                  : bitno.tab
*      Purpose          : Tables for bit2prm and prm2bit**********************************************************************************/
#ifndef BITNO_TAB_H
#define BITNO_TAB_H

#include "AmrCode_Comm.h"
#define BIT_0      0#define BIT_1      1#define PRMNO_MR475 17#define PRMNO_MR515 19#define PRMNO_MR59  19#define PRMNO_MR67  19#define PRMNO_MR74  19#define PRMNO_MR795 23#define PRMNO_MR102 39#define PRMNO_MR122 57#define PRMNO_MRDTX 5/* number of parameters per modes (values must be <= MAX_PRM_SIZE!) */extern const Word16 prmno[N_MODES] ;
/* number of parameters to first subframe */#define PRMNOFSF_MR475 7#define PRMNOFSF_MR515 7#define PRMNOFSF_MR59  7#define PRMNOFSF_MR67  7#define PRMNOFSF_MR74  7#define PRMNOFSF_MR795 8#define PRMNOFSF_MR102 12#define PRMNOFSF_MR122 18/* number of parameters to first subframe per modes */extern const Word16 prmnofsf[N_MODES - 1] ;

/* parameter sizes (# of bits), one table per mode */extern const Word16 bitno_MR475[PRMNO_MR475] ;
extern const Word16 bitno_MR515[PRMNO_MR515] ;
extern const Word16 bitno_MR59[PRMNO_MR59] ;
extern const Word16 bitno_MR67[PRMNO_MR67] ;
extern const Word16 bitno_MR74[PRMNO_MR74] ;
extern  const Word16 bitno_MR795[PRMNO_MR795];
extern const Word16 bitno_MR102[PRMNO_MR102];
extern const Word16 bitno_MR122[PRMNO_MR122] ;
extern const Word16 bitno_MRDTX[PRMNO_MRDTX]  ;
/* overall table with all parameter sizes for all modes */extern const Word16 *bitno[N_MODES]  ;
#ifdef MMS_IO/* table of contents byte for each mode index */extern UWord8 toc_byte[16]  ;
/* number of speech bits for all modes */extern Word16 unpacked_size[16] ;
/* size of packed frame for each mode */extern Word16 packed_size[16]  ;
/* number of unused speech bits in packed format for each mode */extern Word16 unused_size[16]  ;
/* sorting tables for all modes */extern Word16 sort_475[95]  ;
extern Word16 sort_515[103]  ;
extern Word16 sort_59[118]  ;
extern Word16 sort_67[134]  ;
extern Word16 sort_74[148]  ;
extern Word16 sort_795[159]  ;
extern Word16 sort_102[204] ;
extern Word16 sort_122[244]  ;
extern Word16 sort_SID[35]  ;
/* pointer table for bit sorting tables */extern Word16 *sort_ptr[16] ;
#endif

#define M            10   
#define NB_QUA_PITCH 16
#define NB_QUA_CODE 32

extern const Word16 lsp_init_data[M] ;
extern const Word16 qua_gain_pitch[NB_QUA_PITCH] ;
extern const Word16 qua_gain_code[NB_QUA_CODE*3] ;



#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -