PocketSphinx 5prealpha
s3types.h File Reference

Size definition of semantically units. More...

#include <float.h>
#include <assert.h>
#include <sphinxbase/prim_type.h>
#include <sphinxbase/err.h>
#include <sphinxbase/ckd_alloc.h>

Go to the source code of this file.

Macros

#define BAD_S3CIPID   ((s3cipid_t) -1)
 Ci phone id. More...
 
#define NOT_S3CIPID(p)   ((p)<0)
 
#define IS_S3CIPID(p)   ((p)>=0)
 
#define MAX_S3CIPID   32767
 
#define BAD_S3PID   ((s3pid_t) -1)
 Phone id (triphone or ciphone) More...
 
#define NOT_S3PID(p)   ((p)<0)
 
#define IS_S3PID(p)   ((p)>=0)
 
#define MAX_S3PID   ((int32)0x7ffffffe)
 
#define BAD_S3SSID   ((s3ssid_t) 0xffff)
 Senone sequence id (triphone or ciphone) More...
 
#define NOT_S3SSID(p)   ((p) == BAD_S3SSID)
 
#define IS_S3SSID(p)   ((p) != BAD_S3SSID)
 
#define MAX_S3SSID   ((s3ssid_t)0xfffe)
 
#define BAD_S3TMATID   ((s3tmatid_t) -1)
 Transition matrix id; there can be as many as pids. More...
 
#define NOT_S3TMATID(t)   ((t)<0)
 
#define IS_S3TMATID(t)   ((t)>=0)
 
#define MAX_S3TMATID   ((int32)0x7ffffffe)
 
#define BAD_S3WID   ((s3wid_t) -1)
 Dictionary word id. More...
 
#define NOT_S3WID(w)   ((w)<0)
 
#define IS_S3WID(w)   ((w)>=0)
 
#define MAX_S3WID   ((int32)0x7ffffffe)
 

Typedefs

typedef int16 s3cipid_t
 Size definitions for more semantially meaningful units. More...
 
typedef int32 s3pid_t
 
typedef uint16 s3ssid_t
 
typedef int32 s3tmatid_t
 
typedef int32 s3wid_t
 

Detailed Description

Size definition of semantically units.

Common for both s3 and s3.X decoder.

Definition in file s3types.h.

Macro Definition Documentation

◆ BAD_S3CIPID

#define BAD_S3CIPID   ((s3cipid_t) -1)

Ci phone id.

Definition at line 64 of file s3types.h.

◆ BAD_S3PID

#define BAD_S3PID   ((s3pid_t) -1)

Phone id (triphone or ciphone)

Definition at line 72 of file s3types.h.

◆ BAD_S3SSID

#define BAD_S3SSID   ((s3ssid_t) 0xffff)

Senone sequence id (triphone or ciphone)

Definition at line 78 of file s3types.h.

◆ BAD_S3TMATID

#define BAD_S3TMATID   ((s3tmatid_t) -1)

Transition matrix id; there can be as many as pids.

Definition at line 84 of file s3types.h.

◆ BAD_S3WID

#define BAD_S3WID   ((s3wid_t) -1)

Dictionary word id.

Definition at line 90 of file s3types.h.

◆ IS_S3CIPID

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

Definition at line 66 of file s3types.h.

◆ IS_S3PID

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

Definition at line 74 of file s3types.h.

◆ IS_S3SSID

#define IS_S3SSID (   p)    ((p) != BAD_S3SSID)

Definition at line 80 of file s3types.h.

◆ IS_S3TMATID

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

Definition at line 86 of file s3types.h.

◆ IS_S3WID

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

Definition at line 92 of file s3types.h.

◆ MAX_S3CIPID

#define MAX_S3CIPID   32767

Definition at line 67 of file s3types.h.

◆ MAX_S3PID

#define MAX_S3PID   ((int32)0x7ffffffe)

Definition at line 75 of file s3types.h.

◆ MAX_S3SSID

#define MAX_S3SSID   ((s3ssid_t)0xfffe)

Definition at line 81 of file s3types.h.

◆ MAX_S3TMATID

#define MAX_S3TMATID   ((int32)0x7ffffffe)

Definition at line 87 of file s3types.h.

◆ MAX_S3WID

#define MAX_S3WID   ((int32)0x7ffffffe)

Definition at line 93 of file s3types.h.

◆ NOT_S3CIPID

#define NOT_S3CIPID (   p)    ((p)<0)

Definition at line 65 of file s3types.h.

◆ NOT_S3PID

#define NOT_S3PID (   p)    ((p)<0)

Definition at line 73 of file s3types.h.

◆ NOT_S3SSID

#define NOT_S3SSID (   p)    ((p) == BAD_S3SSID)

Definition at line 79 of file s3types.h.

◆ NOT_S3TMATID

#define NOT_S3TMATID (   t)    ((t)<0)

Definition at line 85 of file s3types.h.

◆ NOT_S3WID

#define NOT_S3WID (   w)    ((w)<0)

Definition at line 91 of file s3types.h.

Typedef Documentation

◆ s3cipid_t

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

Definition at line 63 of file s3types.h.

◆ s3pid_t

typedef int32 s3pid_t

Definition at line 71 of file s3types.h.

◆ s3ssid_t

typedef uint16 s3ssid_t

Definition at line 77 of file s3types.h.

◆ s3tmatid_t

typedef int32 s3tmatid_t

Definition at line 83 of file s3types.h.

◆ s3wid_t

typedef int32 s3wid_t

Definition at line 89 of file s3types.h.