#include <sent/stddefs.h>
#include <sent/htk_param.h>
Go to the source code of this file.
Functions | |
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_Param * | new_param () |
Allocate a new parameter. | |
void | free_param (HTK_Param *pinfo) |
Free the HTK parameter structure. |
Definition in file param_malloc.c.
void param_init_content | ( | HTK_Param * | p | ) |
Initialize the content of the parameter data.
p | [out] parameter data |
Definition at line 35 of file param_malloc.c.
Referenced by new_param(), param_free_content(), and 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 |
Definition at line 54 of file param_malloc.c.
Referenced by init_param(), mfcc_copy_to_rest_and_shrink(), read_param(), RealTimeParam(), RealTimePipeLine(), and wav2mfcc().
void param_free_content | ( | HTK_Param * | p | ) |
Free and clear the content of the parameter data.
p | [out] parameter data |
Definition at line 106 of file param_malloc.c.
Referenced by free_param().
HTK_Param* new_param | ( | ) |
Allocate a new parameter.
Definition at line 121 of file param_malloc.c.
Referenced by j_final_fusion(), and mfcc_copy_to_rest_and_shrink().
void free_param | ( | HTK_Param * | pinfo | ) |
Free the HTK parameter structure.
pinfo | [in] parameter data to be destroyed. |
Definition at line 138 of file param_malloc.c.
Referenced by j_mfcccalc_free().