Julius 4.2
関数
libsent/src/anlz/param_malloc.c

特徴パラメータ構造体のメモリ管理 [詳細]

#include <sent/stddefs.h>
#include <sent/htk_param.h>

ソースコードを見る。

関数

void param_init_content (HTK_Param *p)
 Initialize the content of the parameter data.
boolean param_alloc (HTK_Param *p, unsigned int samplenum, short veclen)
 Allocate vector area for required length and frames.
void param_free_content (HTK_Param *p)
 Free and clear the content of the parameter data.
HTK_Paramnew_param ()
 Allocate a new parameter.
void free_param (HTK_Param *pinfo)
 Free the HTK parameter structure.

説明

特徴パラメータ構造体のメモリ管理

作者:
Akinobu Lee
日付:
Fri Aug 3 14:09:39 2007
Revision:
1.3

param_malloc.c で定義されています。


関数

void param_init_content ( HTK_Param p)

Initialize the content of the parameter data.

引数:
p[out] parameter data

param_malloc.c35 行で定義されています。

参照元 j_open_stream(), j_recognize_stream_core(), new_param(), param_free_content(), と wav2mfcc().

boolean param_alloc ( HTK_Param p,
unsigned int  samplenum,
short  veclen 
)

Allocate vector area for required length and frames.

Allocate memory if not yet, or expand it if already allocated but not sufficient. If sufficient amount is already allocated, do nothing. The allocation are updated by HTK_PARAM_INCREMENT_STEP_FRAME step to avoid numerous re-allocation

引数:
p[i/o] parameter data
samplenum[in] required number of frames
veclen[in] required length of vector
戻り値:
TRUE on success, FALSE on failure.

param_malloc.c54 行で定義されています。

参照元 mfcc_copy_to_rest_and_shrink(), read_param(), RealTimeParam(), RealTimePipeLine(), RealTimePipeLinePrepare(), と wav2mfcc().

void param_free_content ( HTK_Param p)

Free and clear the content of the parameter data.

引数:
p[out] parameter data

param_malloc.c106 行で定義されています。

参照元 free_param().

HTK_Param* new_param ( )

Allocate a new parameter.

戻り値:
pointer to the newly allocated area.

param_malloc.c121 行で定義されています。

参照元 j_final_fusion(), と mfcc_copy_to_rest_and_shrink().

void free_param ( HTK_Param pinfo)

Free the HTK parameter structure.

引数:
pinfo[in] parameter data to be destroyed.

param_malloc.c138 行で定義されています。

参照元 j_mfcccalc_free(), と j_recognize_stream_core().