📄 globalvars.h
字号:
/** * @file globalvars.h * @author Akinobu LEE * @date Thu Feb 17 14:42:26 2005 * * <JA> * @brief 不读锑刨纷换脱の络拌恃眶 * * 簇眶钙び叫しの途尸なオ〖バヘッドを闰けるため·纷换面のパラメ〖タや * 觉轮に簇する攫鼠は络拌恃眶として年盗されていますˉ * * <EN> * @brief Global variables for acoustic likelihood computation * * The information regarding the input parameter and the current %HMM state * are defined as global variables here, to minimize the overhead of * function calls. * </EN> * * $Revision: 1.4 $ * *//* * Copyright (c) 1991-2006 Kawahara Lab., Kyoto University * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology * Copyright (c) 2005-2006 Julius project team, Nagoya Institute of Technology * All rights reserved */#ifdef GLOBAL_VARIABLE_DEFINE#define GLOBAL ///< Global variables should be defined in the included point#define GLOBAL_VAL(v) = (v) ///< Default variables are set.#else#define GLOBAL extern ///< Global variables should be just a reference#define GLOBAL_VAL(v) ///< Just a reference.#endif/* functions selected in outprob_init.c *//// Function to compute output probability with/without code book level cacheGLOBAL LOGPROB (*calc_outprob)();/// Function to compute state output with/without GMS supportGLOBAL LOGPROB (*calc_outprob_state)();/// Pruning function to compute likelihood of a mixture componentGLOBAL void (*compute_gaussset)(HTK_HMM_Dens **g, int num, int *last_id);/// Initialization function that corresponds to compute_gaussset.GLOBAL boolean (*compute_gaussset_init)();GLOBAL void (*compute_gaussset_free)();GLOBAL HTK_HMM_INFO *OP_hmminfo; ///< Current %HMM definition dataGLOBAL HTK_HMM_INFO *OP_gshmm; ///< Current GMS %HMM dataGLOBAL int OP_gprune_num; ///< Current number of computed mixtures for pruningGLOBAL HTK_Param *OP_param; ///< Current parameterGLOBAL HTK_HMM_State *OP_state; ///< Current stateGLOBAL int OP_state_id; ///< Current state IDGLOBAL int OP_time; ///< Current timeGLOBAL int OP_last_time; ///< last timeGLOBAL VECT *OP_vec; ///< Current input vectorGLOBAL short OP_veclen; ///< Current vector length/* work buffer for compute_gsset (used in gprune_*.c and calc_*mix.c) */GLOBAL int OP_calced_maxnum; ///< Allocated length of belowGLOBAL LOGPROB *OP_calced_score; ///< Scores of computed mixturesGLOBAL int *OP_calced_id; ///< IDs of computed mixturesGLOBAL int OP_calced_num; ///< Number of computed mixtures
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -