📄 nok_ltp_common_internal.h
字号:
/**************************************************************************This software module was originally developed byMikko Suonio (Nokia)in the course of development of the MPEG-2 NBC/MPEG-4 Audio standardISO/IEC 13818-7, 14496-1,2 and 3. This software module is animplementation of a part of one or more MPEG-2 NBC/MPEG-4 Audio toolsas specified by the MPEG-2 NBC/MPEG-4 Audio standard. ISO/IEC givesusers of the MPEG-2 NBC/MPEG-4 Audio standards free license to thissoftware module or modifications thereof for use in hardware orsoftware products claiming conformance to the MPEG-2 NBC/ MPEG-4 Audiostandards. Those intending to use this software module in hardware orsoftware products are advised that this use may infringe existingpatents. The original developer of this software module and his/hercompany, the subsequent editors and their companies, and ISO/IEC haveno liability for use of this software module or modifications thereofin an implementation. Copyright is not released for non MPEG-2NBC/MPEG-4 Audio conforming products. The original developer retainsfull right to use the code for his/her own purpose, assign or donatethe code to a third party and to inhibit third party from using thecode for non MPEG-2 NBC/MPEG-4 Audio conforming products. Thiscopyright notice must be included in all copies or derivative works.Copyright (c) 1997.***************************************************************************/#ifndef NOK_LTP_COMMON_INTERNAL_H_#define NOK_LTP_COMMON_INTERNAL_H_/* Purpose: Number of LTP coefficients. */#define LPC 1/* Purpose: Maximum LTP lag. */#define DELAY 2048/* Purpose: Length of the bitstream element ltp_data_present. */#define LEN_LTP_DATA_PRESENT 1/* Purpose: Length of the bitstream element ltp_lag. */#define LEN_LTP_LAG 11/* Purpose: Length of the bitstream element ltp_coef. */#define LEN_LTP_COEF 3/* Purpose: Length of the bitstream element ltp_short_used. */#define LEN_LTP_SHORT_USED 1/* Purpose: Length of the bitstream element ltp_short_lag_present. */#define LEN_LTP_SHORT_LAG_PRESENT 1/* Purpose: Length of the bitstream element ltp_short_lag. */#define LEN_LTP_SHORT_LAG 5/* Purpose: Offset of the lags written in the bitstream. */#define NOK_LTP_LAG_OFFSET 16/* Purpose: Length of the bitstream element ltp_long_used. */#define LEN_LTP_LONG_USED 1/* Purpose: Upper limit for the number of scalefactor bands which can use lt prediction with long windows. Explanation: Bands 0..NOK_MAX_LT_PRED_SFB-1 can use lt prediction. */#define NOK_MAX_LT_PRED_LONG_SFB 40/* Purpose: Upper limit for the number of scalefactor bands which can use lt prediction with short windows. Explanation: Bands 0..NOK_MAX_LT_PRED_SFB-1 can use lt prediction. */#define NOK_MAX_LT_PRED_SHORT_SFB 8/* Purpose: Buffer offset to maintain block alignment. Explanation: This is only used for a short window sequence. */#define SHORT_SQ_OFFSET (BLOCK_LEN_LONG-(BLOCK_LEN_SHORT*4+BLOCK_LEN_SHORT/2))/* Purpose: Number of codes for LTP weight. */#define CODESIZE 8/* Purpose: Codebook for LTP weight coefficients. */static Float codebook[CODESIZE] ={ 0.570829F, 0.696616F, 0.813004F, 0.911304F, 0.984900F, 1.067894F, 1.194601F, 1.369533F};#endif /* NOK_LTP_COMMON_INTERNAL_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -