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
00095 #ifdef __cplusplus
00096 extern "C" {
00097 #endif
00098 #if 0
00099 }
00100 #endif
00101
00109 typedef int16 s3cipid_t;
00110 #define BAD_S3CIPID ((s3cipid_t) -1)
00111 #define NOT_S3CIPID(p) ((p)<0)
00112 #define IS_S3CIPID(p) ((p)>=0)
00113 #define MAX_S3CIPID 32767
00114
00115
00116
00117 typedef int32 s3pid_t;
00118 #define BAD_S3PID ((s3pid_t) -1)
00119 #define NOT_S3PID(p) ((p)<0)
00120 #define IS_S3PID(p) ((p)>=0)
00121 #define MAX_S3PID ((int32)0x7ffffffe)
00122
00123 typedef uint16 s3ssid_t;
00124 #define BAD_S3SSID ((s3ssid_t) 0xffff)
00125 #define NOT_S3SSID(p) ((p) == BAD_S3SSID)
00126 #define IS_S3SSID(p) ((p) != BAD_S3SSID)
00127 #define MAX_S3SSID ((s3ssid_t)0xfffe)
00128
00129 typedef int32 s3tmatid_t;
00130 #define BAD_S3TMATID ((s3tmatid_t) -1)
00131 #define NOT_S3TMATID(t) ((t)<0)
00132 #define IS_S3TMATID(t) ((t)>=0)
00133 #define MAX_S3TMATID ((int32)0x7ffffffe)
00134
00135 typedef int32 s3wid_t;
00136 #define BAD_S3WID ((s3wid_t) -1)
00137 #define NOT_S3WID(w) ((w)<0)
00138 #define IS_S3WID(w) ((w)>=0)
00139 #define MAX_S3WID ((int32)0x7ffffffe)
00140
00141 typedef uint16 s3lmwid_t;
00142 #define BAD_S3LMWID ((s3lmwid_t) 0xffff)
00143 #define NOT_S3LMWID(w) ((w)==BAD_S3LMWID)
00144 #define IS_S3LMWID(w) ((w)!=BAD_S3LMWID)
00145 #define MAX_S3LMWID ((uint32)0xfffe)
00146 #define BAD_LMCLASSID (-1)
00147
00148 typedef uint32 s3lmwid32_t;
00149 #define BAD_S3LMWID32 ((s3lmwid32_t) 0x0fffffff)
00150 #define NOT_S3LMWID32(w) ((w)==BAD_S3LMWID32)
00151 #define IS_S3LMWID32(w) ((w)!=BAD_S3LMWID32)
00152 #define MAX_S3LMWID32 ((uint32)0xfffffffe)
00153
00154
00155
00156
00157
00158
00159
00160 #define BAD_LMWID(lm) (lm->is32bits? BAD_S3LMWID32 : BAD_S3LMWID)
00161 #define NOT_LMWID(lm,w) (lm->is32bits? NOT_S3LMWID32(w): NOT_S3LMWID(w))
00162 #define IS_LMWID(lm,w) (lm->is32bits? IS_S3LMWID32(w): IS_S3LMWID(w))
00163 #define MAX_LMWID(lm) (lm->is32bits? MAX_S3LMWID32: MAX_S3LMWID)
00164
00165 typedef int32 s3latid_t;
00166 #define BAD_S3LATID ((s3latid_t) -1)
00167 #define NOT_S3LATID(l) ((l)<0)
00168 #define IS_S3LATID(l) ((l)>=0)
00169 #define MAX_S3LATID ((int32)0x7ffffffe)
00170
00171 typedef int16 s3frmid_t;
00172 #define BAD_S3FRMID ((s3frmid_t) -1)
00173 #define NOT_S3FRMID(f) ((f)<0)
00174 #define IS_S3FRMID(f) ((f)>=0)
00175 #define MAX_S3FRMID ((int32)0x7ffe)
00176
00177 typedef uint16 s3senid_t;
00178 #define BAD_S3SENID ((s3senid_t) 0xffff)
00179 #define NOT_S3SENID(s) ((s) == BAD_S3SENID)
00180 #define IS_S3SENID(s) ((s) != BAD_S3SENID)
00181 #define MAX_S3SENID ((int16)0x7ffe)
00182
00183 typedef int16 s3mgauid_t;
00184 #define BAD_S3MGAUID ((s3mgauid_t) -1)
00185 #define NOT_S3MGAUID(m) ((m)<0)
00186 #define IS_S3MGAUID(m) ((m)>=0)
00187 #define MAX_S3MGAUID ((int32)0x00007ffe)
00188
00189
00190 #define S3_LOGPROB_ZERO ((int32) 0xc8000000)
00191 #define S3_LOGPROB_ZERO_F ((float32) -1e30)
00193
00194 #define S3_MAX_FRAMES 15000
00195
00196 #define RENORM_THRESH ((int32) ((S3_LOGPROB_ZERO)>>1))
00198 #define S3_SUCCESS 0
00199 #define S3_ERROR -1
00200 #define S3_WARNING -2
00201
00203 #define MAX_N_STATE 20
00204
00207 #define MAX_N_ATTRIB 5
00208
00209 #ifndef TRUE
00210 #define TRUE 1
00211 #define FALSE 0
00212 #endif
00213
00214
00215 #define IO_ELAPSED 0
00216
00217
00218 #define UTT_ELAPSED 1
00219 #define UTT_IO_ELAPSED 2
00220 #define UTT_BW_ELAPSED 3
00221
00222 #define TYING_NON_EMITTING (0xffffffff)
00223 #define TYING_NO_ID (0xffffffff)
00224
00225 #define MAX_VERSION_LEN 128
00226
00227 #define MEG *1024*1024
00228
00229 #if 0
00230 {
00231 #endif
00232 #ifdef __cplusplus
00233 }
00234 #endif
00235
00236 #endif