libsent/src/anlz/param_malloc.c File Reference

Memory management of input parameter vector structure. More...

#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_Paramnew_param ()
 Allocate a new parameter.
void free_param (HTK_Param *pinfo)
 Free the HTK parameter structure.


Detailed Description

Memory management of input parameter vector structure.

Author:
Akinobu Lee
Date:
Fri Aug 3 14:09:39 2007
Revision
1.1.1.1

Definition in file param_malloc.c.


Function Documentation

void param_init_content ( HTK_Param p  ) 

Initialize the content of the parameter data.

Parameters:
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

Parameters:
p [i/o] parameter data
samplenum [in] required number of frames
veclen [in] required length of vector
Returns:
TRUE on success, FALSE on failure.

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.

Parameters:
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.

Returns:
pointer to the newly allocated area.

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.

Parameters:
pinfo [in] parameter data to be destroyed.

Definition at line 138 of file param_malloc.c.

Referenced by j_mfcccalc_free().


Generated on Tue Dec 18 16:01:38 2007 for Julius by  doxygen 1.5.4