📄 nok_ltp_common.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_H_#define NOK_LTP_COMMON_H_#ifdef MPEG4V1/* Macro: MAX_SHORT_WINDOWS Purpose: Number of short windows in one long window. Explanation: - */#ifndef MAX_SHORT_WINDOWS#define MAX_SHORT_WINDOWS NSHORT#endif/* Macro: MAX_SCFAC_BANDS Purpose: Maximum number of scalefactor bands in one frame. Explanation: - */#ifndef MAX_SCFAC_BANDS#define MAX_SCFAC_BANDS MAXBANDS#endif/* Macro: BLOCK_LEN_LONG Purpose: Length of one long window Explanation: - */#ifndef BLOCK_LEN_LONG#define BLOCK_LEN_LONG LN2#endif#endif/* Macro: NOK_MAX_BLOCK_LEN_LONG Purpose: Informs the routine of the maximum block size used. Explanation: - */#define NOK_MAX_BLOCK_LEN_LONG (BLOCK_LEN_LONG) /* Macro: NOK_LT_BLEN Purpose: Length of the history buffer. Explanation: Has to hold 3 previous frames (2 full frames + alias buffer) of time domain data. */#ifndef NOK_LT_BLEN#define NOK_LT_BLEN (3 * NOK_MAX_BLOCK_LEN_LONG)#endif/* Type: NOK_LT_PRED_STATUS Purpose: Type of the struct holding the LTP encoding parameters. Explanation: - */typedef struct { short buffer[NOK_LT_BLEN]; int weight_idx; Float weight; int sbk_prediction_used[MAX_SHORT_WINDOWS+1]; int sfb_prediction_used[MAX_SCFAC_BANDS]; int delay[MAX_SHORT_WINDOWS]; int global_pred_flag; int side_info; double mdct_predicted[2 * NOK_MAX_BLOCK_LEN_LONG]; } NOK_LT_PRED_STATUS;#endif /* NOK_LTP_COMMON_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -