Go to the documentation of this file.
81 #ifndef _S3_S3TYPES_H_
82 #define _S3_S3TYPES_H_
87 #include <sphinxbase/prim_type.h>
88 #include <sphinxbase/err.h>
89 #include <sphinxbase/ckd_alloc.h>
110 #define BAD_S3CIPID ((s3cipid_t) -1)
111 #define NOT_S3CIPID(p) ((p)<0)
112 #define IS_S3CIPID(p) ((p)>=0)
113 #define MAX_S3CIPID 32767
117 typedef int32 s3pid_t;
118 #define BAD_S3PID ((s3pid_t) -1)
119 #define NOT_S3PID(p) ((p)<0)
120 #define IS_S3PID(p) ((p)>=0)
121 #define MAX_S3PID ((int32)0x7ffffffe)
123 typedef uint16 s3ssid_t;
124 #define BAD_S3SSID ((s3ssid_t) 0xffff)
125 #define NOT_S3SSID(p) ((p) == BAD_S3SSID)
126 #define IS_S3SSID(p) ((p) != BAD_S3SSID)
127 #define MAX_S3SSID ((s3ssid_t)0xfffe)
129 typedef int32 s3tmatid_t;
130 #define BAD_S3TMATID ((s3tmatid_t) -1)
131 #define NOT_S3TMATID(t) ((t)<0)
132 #define IS_S3TMATID(t) ((t)>=0)
133 #define MAX_S3TMATID ((int32)0x7ffffffe)
135 typedef int32 s3wid_t;
136 #define BAD_S3WID ((s3wid_t) -1)
137 #define NOT_S3WID(w) ((w)<0)
138 #define IS_S3WID(w) ((w)>=0)
139 #define MAX_S3WID ((int32)0x7ffffffe)
141 typedef uint16 s3lmwid_t;
142 #define BAD_S3LMWID ((s3lmwid_t) 0xffff)
143 #define NOT_S3LMWID(w) ((w)==BAD_S3LMWID)
144 #define IS_S3LMWID(w) ((w)!=BAD_S3LMWID)
145 #define MAX_S3LMWID ((uint32)0xfffe)
146 #define BAD_LMCLASSID (-1)
148 typedef uint32 s3lmwid32_t;
149 #define BAD_S3LMWID32 ((s3lmwid32_t) 0x0fffffff)
150 #define NOT_S3LMWID32(w) ((w)==BAD_S3LMWID32)
151 #define IS_S3LMWID32(w) ((w)!=BAD_S3LMWID32)
152 #define MAX_S3LMWID32 ((uint32)0xfffffffe)
160 #define BAD_LMWID(lm) (lm->is32bits? BAD_S3LMWID32 : BAD_S3LMWID)
161 #define NOT_LMWID(lm,w) (lm->is32bits? NOT_S3LMWID32(w): NOT_S3LMWID(w))
162 #define IS_LMWID(lm,w) (lm->is32bits? IS_S3LMWID32(w): IS_S3LMWID(w))
163 #define MAX_LMWID(lm) (lm->is32bits? MAX_S3LMWID32: MAX_S3LMWID)
165 typedef int32 s3latid_t;
166 #define BAD_S3LATID ((s3latid_t) -1)
167 #define NOT_S3LATID(l) ((l)<0)
168 #define IS_S3LATID(l) ((l)>=0)
169 #define MAX_S3LATID ((int32)0x7ffffffe)
171 typedef int16 s3frmid_t;
172 #define BAD_S3FRMID ((s3frmid_t) -1)
173 #define NOT_S3FRMID(f) ((f)<0)
174 #define IS_S3FRMID(f) ((f)>=0)
175 #define MAX_S3FRMID ((int32)0x7ffe)
177 typedef uint16 s3senid_t;
178 #define BAD_S3SENID ((s3senid_t) 0xffff)
179 #define NOT_S3SENID(s) ((s) == BAD_S3SENID)
180 #define IS_S3SENID(s) ((s) != BAD_S3SENID)
181 #define MAX_S3SENID ((int16)0x7ffe)
183 typedef int16 s3mgauid_t;
184 #define BAD_S3MGAUID ((s3mgauid_t) -1)
185 #define NOT_S3MGAUID(m) ((m)<0)
186 #define IS_S3MGAUID(m) ((m)>=0)
187 #define MAX_S3MGAUID ((int32)0x00007ffe)
190 #define S3_LOGPROB_ZERO ((int32) 0xc8000000)
191 #define S3_LOGPROB_ZERO_F ((float32) -1e30)
193 #define RENORM_THRESH ((int32) ((S3_LOGPROB_ZERO)>>1))
197 #define S3_WARNING -2
200 #define MAX_N_STATE 20
204 #define MAX_N_ATTRIB 5
215 #define UTT_ELAPSED 1
216 #define UTT_IO_ELAPSED 2
217 #define UTT_BW_ELAPSED 3
219 #define TYING_NON_EMITTING (0xffffffff)
220 #define TYING_NO_ID (0xffffffff)
222 #define MAX_VERSION_LEN 128
224 #define MEG *1024*1024