s3types.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081 #ifndef _S3_S3TYPES_H_
00082 #define _S3_S3TYPES_H_
00083
00084 #include <float.h>
00085 #include <assert.h>
00086
00087 #include <prim_type.h>
00088 #include <err.h>
00089 #include <ckd_alloc.h>
00090 #include <sphinx3_export.h>
00091
00096 #ifdef __cplusplus
00097 extern "C" {
00098 #endif
00099 #if 0
00100 }
00101 #endif
00102
00110 typedef int16 s3cipid_t;
00111 #define BAD_S3CIPID ((s3cipid_t) -1)
00112 #define NOT_S3CIPID(p) ((p)<0)
00113 #define IS_S3CIPID(p) ((p)>=0)
00114 #define MAX_S3CIPID 32767
00115
00116
00117
00118 typedef int32 s3pid_t;
00119 #define BAD_S3PID ((s3pid_t) -1)
00120 #define NOT_S3PID(p) ((p)<0)
00121 #define IS_S3PID(p) ((p)>=0)
00122 #define MAX_S3PID ((int32)0x7ffffffe)
00123
00124 typedef s3pid_t s3ssid_t;
00125 #define BAD_S3SSID ((s3ssid_t) -1)
00126 #define NOT_S3SSID(p) ((p)<0)
00127 #define IS_S3SSID(p) ((p)>=0)
00128 #define MAX_S3SSID ((int32)0x7ffffffe)
00129
00130 typedef int32 s3tmatid_t;
00131 #define BAD_S3TMATID ((s3tmatid_t) -1)
00132 #define NOT_S3TMATID(t) ((t)<0)
00133 #define IS_S3TMATID(t) ((t)>=0)
00134 #define MAX_S3TMATID ((int32)0x7ffffffe)
00135
00136 typedef int32 s3wid_t;
00137 #define BAD_S3WID ((s3wid_t) -1)
00138 #define NOT_S3WID(w) ((w)<0)
00139 #define IS_S3WID(w) ((w)>=0)
00140 #define MAX_S3WID ((int32)0x7ffffffe)
00141
00142 typedef uint16 s3lmwid_t;
00143 #define BAD_S3LMWID ((s3lmwid_t) 0xffff)
00144 #define NOT_S3LMWID(w) ((w)==BAD_S3LMWID)
00145 #define IS_S3LMWID(w) ((w)!=BAD_S3LMWID)
00146 #define MAX_S3LMWID ((uint32)0xfffe)
00147 #define BAD_LMCLASSID (-1)
00148
00149 typedef uint32 s3lmwid32_t;
00150 #define BAD_S3LMWID32 ((s3lmwid32_t) 0x0fffffff)
00151 #define NOT_S3LMWID32(w) ((w)==BAD_S3LMWID32)
00152 #define IS_S3LMWID32(w) ((w)!=BAD_S3LMWID32)
00153 #define MAX_S3LMWID32 ((uint32)0xfffffffe)
00154
00155
00156
00157
00158
00159
00160
00161 #define BAD_LMWID(lm) (lm->is32bits? BAD_S3LMWID32 : BAD_S3LMWID)
00162 #define NOT_LMWID(lm,w) (lm->is32bits? NOT_S3LMWID32(w): NOT_S3LMWID(w))
00163 #define IS_LMWID(lm,w) (lm->is32bits? IS_S3LMWID32(w): IS_S3LMWID(w))
00164 #define MAX_LMWID(lm) (lm->is32bits? MAX_S3LMWID32: MAX_S3LMWID)
00165
00166 typedef int32 s3latid_t;
00167 #define BAD_S3LATID ((s3latid_t) -1)
00168 #define NOT_S3LATID(l) ((l)<0)
00169 #define IS_S3LATID(l) ((l)>=0)
00170 #define MAX_S3LATID ((int32)0x7ffffffe)
00171
00172 typedef int16 s3frmid_t;
00173 #define BAD_S3FRMID ((s3frmid_t) -1)
00174 #define NOT_S3FRMID(f) ((f)<0)
00175 #define IS_S3FRMID(f) ((f)>=0)
00176 #define MAX_S3FRMID ((int32)0x7ffe)
00177
00178 typedef int16 s3senid_t;
00179 #define BAD_S3SENID ((s3senid_t) -1)
00180 #define NOT_S3SENID(s) ((s)<0)
00181 #define IS_S3SENID(s) ((s)>=0)
00182 #define MAX_S3SENID ((int16)0x7ffe)
00183
00184 typedef int16 s3mgauid_t;
00185 #define BAD_S3MGAUID ((s3mgauid_t) -1)
00186 #define NOT_S3MGAUID(m) ((m)<0)
00187 #define IS_S3MGAUID(m) ((m)>=0)
00188 #define MAX_S3MGAUID ((int32)0x00007ffe)
00189
00190
00191 #define S3_LOGPROB_ZERO ((int32) 0xc8000000)
00192 #define S3_LOGPROB_ZERO_F ((float32) -1e30)
00194
00195 #define S3_MAX_FRAMES 15000
00196
00197 #define RENORM_THRESH ((int32) ((S3_LOGPROB_ZERO)>>1))
00199 #define S3_SUCCESS 0
00200 #define S3_ERROR -1
00201 #define S3_WARNING -2
00202
00204 #define MAX_N_STATE 20
00205
00208 #define MAX_N_ATTRIB 5
00209
00210 #ifndef TRUE
00211 #define TRUE 1
00212 #define FALSE 0
00213 #endif
00214
00215
00216 #define IO_ELAPSED 0
00217
00218
00219 #define UTT_ELAPSED 1
00220 #define UTT_IO_ELAPSED 2
00221 #define UTT_BW_ELAPSED 3
00222
00223 #define TYING_NON_EMITTING (0xffffffff)
00224 #define TYING_NO_ID (0xffffffff)
00225
00226 #define MAX_VERSION_LEN 128
00227
00228 #define MEG *1024*1024
00229
00230 #if 0
00231 {
00232 #endif
00233 #ifdef __cplusplus
00234 }
00235 #endif
00236
00237 #endif