#include <float.h>
#include <assert.h>
#include <prim_type.h>
#include <err.h>
#include <ckd_alloc.h>
#include <sphinx3_export.h>
Go to the source code of this file.
Defines | |
| #define | BAD_S3CIPID ((s3cipid_t) -1) |
| #define | NOT_S3CIPID(p) ((p)<0) |
| #define | IS_S3CIPID(p) ((p)>=0) |
| #define | MAX_S3CIPID 32767 |
| #define | BAD_S3PID ((s3pid_t) -1) |
| #define | NOT_S3PID(p) ((p)<0) |
| #define | IS_S3PID(p) ((p)>=0) |
| #define | MAX_S3PID ((int32)0x7ffffffe) |
| #define | BAD_S3SSID ((s3ssid_t) -1) |
| #define | NOT_S3SSID(p) ((p)<0) |
| #define | IS_S3SSID(p) ((p)>=0) |
| #define | MAX_S3SSID ((int32)0x7ffffffe) |
| #define | BAD_S3TMATID ((s3tmatid_t) -1) |
| #define | NOT_S3TMATID(t) ((t)<0) |
| #define | IS_S3TMATID(t) ((t)>=0) |
| #define | MAX_S3TMATID ((int32)0x7ffffffe) |
| #define | BAD_S3WID ((s3wid_t) -1) |
| #define | NOT_S3WID(w) ((w)<0) |
| #define | IS_S3WID(w) ((w)>=0) |
| #define | MAX_S3WID ((int32)0x7ffffffe) |
| #define | BAD_S3LMWID ((s3lmwid_t) 0xffff) |
| #define | NOT_S3LMWID(w) ((w)==BAD_S3LMWID) |
| #define | IS_S3LMWID(w) ((w)!=BAD_S3LMWID) |
| #define | MAX_S3LMWID ((uint32)0xfffe) |
| #define | BAD_LMCLASSID (-1) |
| #define | BAD_S3LMWID32 ((s3lmwid32_t) 0x0fffffff) |
| #define | NOT_S3LMWID32(w) ((w)==BAD_S3LMWID32) |
| #define | IS_S3LMWID32(w) ((w)!=BAD_S3LMWID32) |
| #define | MAX_S3LMWID32 ((uint32)0xfffffffe) |
| #define | BAD_LMWID(lm) (lm->is32bits? BAD_S3LMWID32 : BAD_S3LMWID) |
| #define | NOT_LMWID(lm, w) (lm->is32bits? NOT_S3LMWID32(w): NOT_S3LMWID(w)) |
| #define | IS_LMWID(lm, w) (lm->is32bits? IS_S3LMWID32(w): IS_S3LMWID(w)) |
| #define | MAX_LMWID(lm) (lm->is32bits? MAX_S3LMWID32: MAX_S3LMWID) |
| #define | BAD_S3LATID ((s3latid_t) -1) |
| #define | NOT_S3LATID(l) ((l)<0) |
| #define | IS_S3LATID(l) ((l)>=0) |
| #define | MAX_S3LATID ((int32)0x7ffffffe) |
| #define | BAD_S3FRMID ((s3frmid_t) -1) |
| #define | NOT_S3FRMID(f) ((f)<0) |
| #define | IS_S3FRMID(f) ((f)>=0) |
| #define | MAX_S3FRMID ((int32)0x7ffe) |
| #define | BAD_S3SENID ((s3senid_t) -1) |
| #define | NOT_S3SENID(s) ((s)<0) |
| #define | IS_S3SENID(s) ((s)>=0) |
| #define | MAX_S3SENID ((int16)0x7ffe) |
| #define | BAD_S3MGAUID ((s3mgauid_t) -1) |
| #define | NOT_S3MGAUID(m) ((m)<0) |
| #define | IS_S3MGAUID(m) ((m)>=0) |
| #define | MAX_S3MGAUID ((int32)0x00007ffe) |
| #define | S3_LOGPROB_ZERO ((int32) 0xc8000000) |
| #define | S3_LOGPROB_ZERO_F ((float32) -1e30) |
| #define | S3_MAX_FRAMES 15000 |
| #define | RENORM_THRESH ((int32) ((S3_LOGPROB_ZERO)>>1)) |
| #define | S3_SUCCESS 0 |
| #define | S3_ERROR -1 |
| #define | S3_WARNING -2 |
| #define | MAX_N_STATE 20 |
| #define | MAX_N_ATTRIB 5 |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | IO_ELAPSED 0 |
| #define | UTT_ELAPSED 1 |
| #define | UTT_IO_ELAPSED 2 |
| #define | UTT_BW_ELAPSED 3 |
| #define | TYING_NON_EMITTING (0xffffffff) |
| #define | TYING_NO_ID (0xffffffff) |
| #define | MAX_VERSION_LEN 128 |
| #define | MEG *1024*1024 |
Typedefs | |
| typedef int16 | s3cipid_t |
| typedef int32 | s3pid_t |
| typedef s3pid_t | s3ssid_t |
| typedef int32 | s3tmatid_t |
| typedef int32 | s3wid_t |
| typedef uint16 | s3lmwid_t |
| typedef uint32 | s3lmwid32_t |
| typedef int32 | s3latid_t |
| typedef int16 | s3frmid_t |
| typedef int16 | s3senid_t |
| typedef int16 | s3mgauid_t |
|
|
|
|
|
|
|
|
Ci phone id |
|
|
Frame id (must be SIGNED integer) |
|
|
Lattice entry id |
|
|
LM word id (uint16 for conserving space) |
|
|
LM word id (uint32 for conserving space) |
|
|
Mixture-gaussian codebook id |
|
|
Phone id (triphone or ciphone) |
|
|
Senone id |
|
|
Senone sequence id (triphone or ciphone) |
|
|
Transition matrix id; there can be as many as pids |
|
|
Dictionary word id |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The maximum # of attributes associated with any given acoustic model |
|
|
The maximum # of states for any given acoustic model |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Size definitions for more semantially meaningful units. Illegal value definitions, limits, and tests for specific types. NOTE: Types will be either int32 or smaller; only smaller ones may be unsigned (i.e., no type will be uint32). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1