#include <sent/stddefs.h>
#include <sent/htk_hmm.h>
Go to the source code of this file.
Functions | |
static HTK_HMM_PDF * | mpdf_new (HTK_HMM_INFO *hmm) |
Allocate a new data area and return it. | |
void | mpdf_add (HTK_HMM_INFO *hmm, HTK_HMM_PDF *new) |
Add a new data to the global structure. | |
HTK_HMM_PDF * | mpdf_lookup (HTK_HMM_INFO *hmm, char *keyname) |
Look up a data macro by the name. | |
static HTK_HMM_PDF * | mpdf_read (FILE *fp, HTK_HMM_INFO *hmm, int mix_num) |
Read one new data and returns the pointer. | |
HTK_HMM_PDF * | get_mpdf_data (FILE *fp, HTK_HMM_INFO *hmm, int mix_num, short stream_id) |
Return a pointer to the data located at the current point. | |
void | def_mpdf_macro (char *name, FILE *fp, HTK_HMM_INFO *hmm) |
Read a new data and store it as a macro. | |
Variables | |
char * | rdhmmdef_token |
Current token. |
Definition in file rdhmmdef_mpdf.c.
static HTK_HMM_PDF* mpdf_new | ( | HTK_HMM_INFO * | hmm | ) | [static] |
Allocate a new data area and return it.
Definition at line 36 of file rdhmmdef_mpdf.c.
Referenced by mpdf_read().
void mpdf_add | ( | HTK_HMM_INFO * | hmm, | |
HTK_HMM_PDF * | new | |||
) |
Add a new data to the global structure.
hmm | [i/o] HMM definition data to store it | |
new | [in] new data to be added |
Definition at line 60 of file rdhmmdef_mpdf.c.
Referenced by def_mpdf_macro(), get_mpdf_data(), rd_mpdf(), and rd_state().
HTK_HMM_PDF* mpdf_lookup | ( | HTK_HMM_INFO * | hmm, | |
char * | keyname | |||
) |
Look up a data macro by the name.
hmm | [in] HMM definition data | |
keyname | [in] macro name to find |
Definition at line 93 of file rdhmmdef_mpdf.c.
Referenced by get_mpdf_data().
static HTK_HMM_PDF* mpdf_read | ( | FILE * | fp, | |
HTK_HMM_INFO * | hmm, | |||
int | mix_num | |||
) | [static] |
Read one new data and returns the pointer.
If a sub-component of this data is directly defined at here, they will be read from here and assigned to this data. If a sub-component is not defined here but a macro name referencing to the component previously defined in other place, the data will be searched by the macro name and the pointer to the found component will be assigned to this model.
fp | [in] file pointer | |
hmm | [in] HMM definition data | |
mix_num | [in] num of Gaussians to be read, or -1 if not specified |
Definition at line 121 of file rdhmmdef_mpdf.c.
Referenced by def_mpdf_macro(), and get_mpdf_data().
HTK_HMM_PDF* get_mpdf_data | ( | FILE * | fp, | |
HTK_HMM_INFO * | hmm, | |||
int | mix_num, | |||
short | stream_id | |||
) |
Return a pointer to the data located at the current point.
If the current point is a macro reference, the pointer to the already defined data will be searched and returned. Otherwise, the definition of the data will be read from the current point and pointer to the newly allocated data will be returned.
fp | [in] file pointer | |
hmm | [i/o] HMM definition data | |
mix_num | [in] num of Gaussians to be read, or -1 if not specified | |
stream_id | [in] stream ID, or -1 if not specified yet |
Definition at line 217 of file rdhmmdef_mpdf.c.
Referenced by state_read().
void def_mpdf_macro | ( | char * | name, | |
FILE * | fp, | |||
HTK_HMM_INFO * | hmm | |||
) |
Read a new data and store it as a macro.
name | [in] macro name | |
fp | [in] file pointer | |
hmm | [i/o] HMM definition data |
Definition at line 265 of file rdhmmdef_mpdf.c.
Referenced by rdhmmdef().