00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _V_BOOKUTIL_H_
00019 #define _V_BOOKUTIL_H_
00020
00021 #include <stdio.h>
00022 #include <sys/time.h>
00023
00024 #include "localcodebook.h"
00025
00026 extern char *get_line(FILE *in);
00027 extern char *setup_line(FILE *in);
00028 extern int get_line_value(FILE *in,float *value);
00029 extern int get_next_value(FILE *in,float *value);
00030 extern int get_next_ivalue(FILE *in,long *ivalue);
00031 extern void reset_next_value(void);
00032 extern int get_vector(codebook *b,FILE *in,int start,int num,float *a);
00033 extern char *find_seek_to(FILE *in,char *s);
00034
00035 extern codebook *codebook_load(char *filename);
00036 extern void write_codebook(FILE *out,char *name,const static_codebook *c);
00037
00038 extern void spinnit(char *s,int n);
00039 extern void build_tree_from_lengths(int vals, long *hist, long *lengths);
00040 extern void build_tree_from_lengths0(int vals, long *hist, long *lengths);
00041
00042 #endif
00043