#include <sent/stddefs.h>
#include <sent/htk_param.h>
#include <sys/types.h>
Include dependency graph for rdparam.c:

Go to the source code of this file.
Functions | |
| static boolean | myread (char *buf, size_t unitbyte, int unitnum, FILE *fp) |
| static boolean | read_param (FILE *fp, HTK_Param *pinfo) |
| HTK_Param * | new_param () |
| void | free_param (HTK_Param *pinfo) |
| boolean | rdparam (char *filename, HTK_Param *pinfo) |
Variables | |
| static boolean | needswap |
| TRUE if need byte-swapping. | |
When "_C" (compressed) or "_K" (CRC checksum added) exists in the file, they are processed in these functions. Then, after reading finished, these qualifiers are removed from its parameter type code.
Definition in file rdparam.c.
| static boolean myread | ( | char * | buf, | |
| size_t | unitbyte, | |||
| int | unitnum, | |||
| FILE * | fp | |||
| ) | [static] |
Read binary data from a file pointer, with byte swapping.
| buf | [out] buffer to store read data | |
| unitbyte | [in] size of a unit in bytes | |
| unitnum | [in] number of unit to read | |
| fp | [in] file pointer |
| HTK_Param* new_param | ( | ) |
Allocate a new parameter.
Definition at line 197 of file rdparam.c.
Referenced by init_param(), main_recognition_loop(), new_select_param_kind(), and new_wav2mfcc().
| void free_param | ( | HTK_Param * | pinfo | ) |
Free the HTK parameter structure.
| pinfo | [in] parameter data to be destroyed. |
Definition at line 212 of file rdparam.c.
Referenced by main_recognition_loop(), new_param_check_and_adjust(), and RealTimeTerminate().
Top function to read a HTK parameter file.
| filename | [in] HTK parameter file name | |
| pinfo | [in] parameter data (already allocated by new_param()) |
Definition at line 233 of file rdparam.c.
Referenced by main_recognition_loop().
1.5.0