#include <sent/stddefs.h>
#include <sent/htk_param.h>
#include <sys/types.h>
Go to the source code of this file.
Functions | |
static boolean | myread (char *buf, size_t unitbyte, int unitnum, FILE *fp) |
Read binary data from a file pointer, with byte swapping. | |
static boolean | read_param (FILE *fp, HTK_Param *pinfo) |
Read in a HTK parameter file from fp . | |
boolean | rdparam (char *filename, HTK_Param *pinfo) |
Top function to read a HTK parameter file. | |
Variables | |
static boolean | needswap |
TRUE if need byte-swapping. |
The byte order of HTK parameter file is assumed as big endian. If not, however, these functions try to read with forcing byte (re-)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 |
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 198 of file rdparam.c.
Referenced by j_open_stream().