Edinburgh Speech Tools  2.1-release
esps_utils.h File Reference
#include <cstdio>
#include "EST_TrackFile.h"
Include dependency graph for esps_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ESPS_PREAMBLE
 
struct  ESPS_FIXED_HDR
 
struct  esps_fea
 
struct  esps_field
 
struct  esps_rec
 
struct  esps_hdr
 

Macros

#define ESPS_MAGIC   27162
 
#define ESPS_DOUBLE   1
 
#define ESPS_FLOAT   2
 
#define ESPS_INT   3
 
#define ESPS_SHORT   4
 
#define ESPS_CHAR   5 /* I doubt I'm treating char and byte appropriately */
 
#define ESPS_CODED   7 /* enumerated type. Same size as short */
 
#define ESPS_BYTE   8
 
#define ESPS_FEA_FILE   1
 
#define ESPS_FEA_DIRECTORY   15
 
#define ESPS_FEA_COMMAND   11
 

Enumerations

enum  esps_file_type { ESPS_FEA, ESPS_SD, ESPS_SPGRAM, ESPS_FILT }
 

Functions

esps_fea new_esps_fea (void)
 
void delete_esps_fea (esps_fea r)
 
void print_esps_fea (esps_fea r)
 
esps_fea read_esps_fea (FILE *fd, esps_hdr hdr)
 
void write_esps_fea (FILE *fd, esps_fea t, esps_hdr hdr)
 
esps_hdr make_esps_hdr (void)
 
esps_hdr make_esps_sd_hdr (void)
 
void delete_esps_hdr (esps_hdr h)
 
enum EST_read_status read_esps_hdr (esps_hdr *hdr, FILE *fd)
 
enum EST_write_status write_esps_hdr (esps_hdr hdr, FILE *fd)
 
int fea_value_d (const char *name, int pos, esps_hdr hdr, double *d)
 
int fea_value_f (const char *name, int pos, esps_hdr hdr, float *d)
 
int fea_value_s (const char *name, int pos, esps_hdr hdr, short *d)
 
int fea_value_i (const char *name, int pos, esps_hdr hdr, int *d)
 
int fea_value_c (const char *name, int pos, esps_hdr hdr, char *d)
 
double get_field_d (esps_rec r, int field, int pos)
 
float get_field_f (esps_rec r, int field, int pos)
 
int get_field_i (esps_rec r, int field, int pos)
 
short get_field_s (esps_rec r, int field, int pos)
 
char get_field_c (esps_rec r, int field, int pos)
 
void set_field_d (esps_rec r, int field, int pos, double d)
 
void set_field_f (esps_rec r, int field, int pos, float d)
 
void set_field_i (esps_rec r, int field, int pos, int d)
 
void set_field_s (esps_rec r, int field, int pos, short d)
 
void set_field_c (esps_rec r, int field, int pos, char d)
 
esps_rec new_esps_rec (const esps_hdr hdr)
 
void delete_esps_rec (esps_rec r)
 
int read_esps_rec (esps_rec r, esps_hdr h, FILE *fd)
 
int write_esps_rec (esps_rec r, esps_hdr h, FILE *fd)
 
void add_field (esps_hdr hdr, const char *name, int type, int dimension)
 
void add_fea_d (esps_hdr hdr, const char *name, int pos, double d)
 
void add_fea_s (esps_hdr hdr, const char *name, int pos, short d)
 
void add_fea_i (esps_hdr hdr, const char *name, int pos, int d)
 
void add_fea_f (esps_hdr hdr, const char *name, int pos, float d)
 
void add_fea_c (esps_hdr hdr, const char *name, int pos, char d)
 
void add_fea_special (esps_hdr hdr, int type, const char *name)
 

Macro Definition Documentation

#define ESPS_MAGIC   27162

Definition at line 44 of file esps_utils.h.

#define ESPS_DOUBLE   1

Definition at line 141 of file esps_utils.h.

#define ESPS_FLOAT   2

Definition at line 142 of file esps_utils.h.

#define ESPS_INT   3

Definition at line 143 of file esps_utils.h.

#define ESPS_SHORT   4

Definition at line 144 of file esps_utils.h.

#define ESPS_CHAR   5 /* I doubt I'm treating char and byte appropriately */

Definition at line 145 of file esps_utils.h.

#define ESPS_CODED   7 /* enumerated type. Same size as short */

Definition at line 146 of file esps_utils.h.

#define ESPS_BYTE   8

Definition at line 147 of file esps_utils.h.

#define ESPS_FEA_FILE   1

Definition at line 151 of file esps_utils.h.

#define ESPS_FEA_DIRECTORY   15

Definition at line 152 of file esps_utils.h.

#define ESPS_FEA_COMMAND   11

Definition at line 153 of file esps_utils.h.

Enumeration Type Documentation

Enumerator
ESPS_FEA 
ESPS_SD 
ESPS_SPGRAM 
ESPS_FILT 

Definition at line 125 of file esps_utils.h.

Function Documentation

esps_fea new_esps_fea ( void  )

Definition at line 84 of file esps_utils.cc.

void delete_esps_fea ( esps_fea  r)

Definition at line 96 of file esps_utils.cc.

void print_esps_fea ( esps_fea  r)

Definition at line 111 of file esps_utils.cc.

esps_fea read_esps_fea ( FILE *  fd,
esps_hdr  hdr 
)

Definition at line 549 of file esps_utils.cc.

void write_esps_fea ( FILE *  fd,
esps_fea  t,
esps_hdr  hdr 
)

Definition at line 467 of file esps_utils.cc.

esps_hdr make_esps_hdr ( void  )

Definition at line 980 of file esps_utils.cc.

esps_hdr make_esps_sd_hdr ( void  )

Definition at line 971 of file esps_utils.cc.

void delete_esps_hdr ( esps_hdr  h)

Definition at line 760 of file esps_utils.cc.

enum EST_read_status read_esps_hdr ( esps_hdr *  hdr,
FILE *  fd 
)

Definition at line 989 of file esps_utils.cc.

enum EST_write_status write_esps_hdr ( esps_hdr  hdr,
FILE *  fd 
)

Definition at line 1242 of file esps_utils.cc.

int fea_value_d ( const char *  name,
int  pos,
esps_hdr  hdr,
double *  d 
)

Definition at line 338 of file esps_utils.cc.

int fea_value_f ( const char *  name,
int  pos,
esps_hdr  hdr,
float *  d 
)

Definition at line 359 of file esps_utils.cc.

int fea_value_s ( const char *  name,
int  pos,
esps_hdr  hdr,
short *  d 
)

Definition at line 380 of file esps_utils.cc.

int fea_value_i ( const char *  name,
int  pos,
esps_hdr  hdr,
int d 
)

Definition at line 401 of file esps_utils.cc.

int fea_value_c ( const char *  name,
int  pos,
esps_hdr  hdr,
char *  d 
)

Definition at line 422 of file esps_utils.cc.

double get_field_d ( esps_rec  r,
int  field,
int  pos 
)

Definition at line 907 of file esps_utils.cc.

float get_field_f ( esps_rec  r,
int  field,
int  pos 
)

Definition at line 911 of file esps_utils.cc.

int get_field_i ( esps_rec  r,
int  field,
int  pos 
)

Definition at line 915 of file esps_utils.cc.

short get_field_s ( esps_rec  r,
int  field,
int  pos 
)

Definition at line 919 of file esps_utils.cc.

char get_field_c ( esps_rec  r,
int  field,
int  pos 
)

Definition at line 923 of file esps_utils.cc.

void set_field_d ( esps_rec  r,
int  field,
int  pos,
double  d 
)

Definition at line 927 of file esps_utils.cc.

void set_field_f ( esps_rec  r,
int  field,
int  pos,
float  d 
)

Definition at line 931 of file esps_utils.cc.

void set_field_i ( esps_rec  r,
int  field,
int  pos,
int  d 
)

Definition at line 935 of file esps_utils.cc.

void set_field_s ( esps_rec  r,
int  field,
int  pos,
short  d 
)

Definition at line 939 of file esps_utils.cc.

void set_field_c ( esps_rec  r,
int  field,
int  pos,
char  d 
)

Definition at line 943 of file esps_utils.cc.

esps_rec new_esps_rec ( const esps_hdr  hdr)

Definition at line 775 of file esps_utils.cc.

void delete_esps_rec ( esps_rec  r)

Definition at line 824 of file esps_utils.cc.

int read_esps_rec ( esps_rec  r,
esps_hdr  h,
FILE *  fd 
)

Definition at line 838 of file esps_utils.cc.

int write_esps_rec ( esps_rec  r,
esps_hdr  h,
FILE *  fd 
)

Definition at line 512 of file esps_utils.cc.

void add_field ( esps_hdr  hdr,
const char *  name,
int  type,
int  dimension 
)

Definition at line 138 of file esps_utils.cc.

void add_fea_d ( esps_hdr  hdr,
const char *  name,
int  pos,
double  d 
)

Definition at line 167 of file esps_utils.cc.

void add_fea_s ( esps_hdr  hdr,
const char *  name,
int  pos,
short  d 
)

Definition at line 264 of file esps_utils.cc.

void add_fea_i ( esps_hdr  hdr,
const char *  name,
int  pos,
int  d 
)

Definition at line 226 of file esps_utils.cc.

void add_fea_f ( esps_hdr  hdr,
const char *  name,
int  pos,
float  d 
)

Definition at line 197 of file esps_utils.cc.

void add_fea_c ( esps_hdr  hdr,
const char *  name,
int  pos,
char  d 
)

Definition at line 293 of file esps_utils.cc.

void add_fea_special ( esps_hdr  hdr,
int  type,
const char *  name 
)

Definition at line 322 of file esps_utils.cc.