Main Page | Class List | Directories | File List | Class Members | File Members

s3types.h File Reference

Size definition of semantically units. Common for both s3 and s3.X decoder. More...

#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


Detailed Description

Size definition of semantically units. Common for both s3 and s3.X decoder.


Define Documentation

#define BAD_LMCLASSID   (-1)
 

#define BAD_LMWID lm   )     (lm->is32bits? BAD_S3LMWID32 : BAD_S3LMWID)
 

#define BAD_S3CIPID   ((s3cipid_t) -1)
 

Ci phone id

#define BAD_S3FRMID   ((s3frmid_t) -1)
 

Frame id (must be SIGNED integer)

#define BAD_S3LATID   ((s3latid_t) -1)
 

Lattice entry id

#define BAD_S3LMWID   ((s3lmwid_t) 0xffff)
 

LM word id (uint16 for conserving space)

#define BAD_S3LMWID32   ((s3lmwid32_t) 0x0fffffff)
 

LM word id (uint32 for conserving space)

#define BAD_S3MGAUID   ((s3mgauid_t) -1)
 

Mixture-gaussian codebook id

#define BAD_S3PID   ((s3pid_t) -1)
 

Phone id (triphone or ciphone)

#define BAD_S3SENID   ((s3senid_t) -1)
 

Senone id

#define BAD_S3SSID   ((s3ssid_t) -1)
 

Senone sequence id (triphone or ciphone)

#define BAD_S3TMATID   ((s3tmatid_t) -1)
 

Transition matrix id; there can be as many as pids

#define BAD_S3WID   ((s3wid_t) -1)
 

Dictionary word id

#define FALSE   0
 

#define IO_ELAPSED   0
 

#define IS_LMWID lm,
 )     (lm->is32bits? IS_S3LMWID32(w): IS_S3LMWID(w))
 

#define IS_S3CIPID  )     ((p)>=0)
 

#define IS_S3FRMID  )     ((f)>=0)
 

#define IS_S3LATID  )     ((l)>=0)
 

#define IS_S3LMWID  )     ((w)!=BAD_S3LMWID)
 

#define IS_S3LMWID32  )     ((w)!=BAD_S3LMWID32)
 

#define IS_S3MGAUID  )     ((m)>=0)
 

#define IS_S3PID  )     ((p)>=0)
 

#define IS_S3SENID  )     ((s)>=0)
 

#define IS_S3SSID  )     ((p)>=0)
 

#define IS_S3TMATID  )     ((t)>=0)
 

#define IS_S3WID  )     ((w)>=0)
 

#define MAX_LMWID lm   )     (lm->is32bits? MAX_S3LMWID32: MAX_S3LMWID)
 

#define MAX_N_ATTRIB   5
 

The maximum # of attributes associated with any given acoustic model

#define MAX_N_STATE   20
 

The maximum # of states for any given acoustic model

#define MAX_S3CIPID   32767
 

#define MAX_S3FRMID   ((int32)0x7ffe)
 

#define MAX_S3LATID   ((int32)0x7ffffffe)
 

#define MAX_S3LMWID   ((uint32)0xfffe)
 

#define MAX_S3LMWID32   ((uint32)0xfffffffe)
 

#define MAX_S3MGAUID   ((int32)0x00007ffe)
 

#define MAX_S3PID   ((int32)0x7ffffffe)
 

#define MAX_S3SENID   ((int16)0x7ffe)
 

#define MAX_S3SSID   ((int32)0x7ffffffe)
 

#define MAX_S3TMATID   ((int32)0x7ffffffe)
 

#define MAX_S3WID   ((int32)0x7ffffffe)
 

#define MAX_VERSION_LEN   128
 

#define MEG   *1024*1024
 

#define NOT_LMWID lm,
 )     (lm->is32bits? NOT_S3LMWID32(w): NOT_S3LMWID(w))
 

#define NOT_S3CIPID  )     ((p)<0)
 

#define NOT_S3FRMID  )     ((f)<0)
 

#define NOT_S3LATID  )     ((l)<0)
 

#define NOT_S3LMWID  )     ((w)==BAD_S3LMWID)
 

#define NOT_S3LMWID32  )     ((w)==BAD_S3LMWID32)
 

#define NOT_S3MGAUID  )     ((m)<0)
 

#define NOT_S3PID  )     ((p)<0)
 

#define NOT_S3SENID  )     ((s)<0)
 

#define NOT_S3SSID  )     ((p)<0)
 

#define NOT_S3TMATID  )     ((t)<0)
 

#define NOT_S3WID  )     ((w)<0)
 

#define RENORM_THRESH   ((int32) ((S3_LOGPROB_ZERO)>>1))
 

#define S3_ERROR   -1
 

#define S3_LOGPROB_ZERO   ((int32) 0xc8000000)
 

#define S3_LOGPROB_ZERO_F   ((float32) -1e30)
 

#define S3_MAX_FRAMES   15000
 

#define S3_SUCCESS   0
 

#define S3_WARNING   -2
 

#define TRUE   1
 

#define TYING_NO_ID   (0xffffffff)
 

#define TYING_NON_EMITTING   (0xffffffff)
 

#define UTT_BW_ELAPSED   3
 

#define UTT_ELAPSED   1
 

#define UTT_IO_ELAPSED   2
 


Typedef Documentation

typedef int16 s3cipid_t
 

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).

typedef int16 s3frmid_t
 

typedef int32 s3latid_t
 

typedef uint32 s3lmwid32_t
 

typedef uint16 s3lmwid_t
 

typedef int16 s3mgauid_t
 

typedef int32 s3pid_t
 

typedef int16 s3senid_t
 

typedef s3pid_t s3ssid_t
 

typedef int32 s3tmatid_t
 

typedef int32 s3wid_t
 


Generated on Sat Apr 11 00:02:30 2009 by  doxygen 1.3.9.1