Home | History | Annotate | Download | only in vq

Lines Matching defs:in

6  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
68 /* assumes the value patterning created by the tools in vq/ */
85 char *get_line(FILE *in){
87 if(feof(in))return NULL;
103 long c=fgetc(in);
131 int get_line_value(FILE *in,float *value){
148 int get_next_value(FILE *in,float *value){
150 if(get_line_value(in,value)){
151 value_line_buff=get_line(in);
159 int get_next_ivalue(FILE *in,long *ivalue){
161 int ret=get_next_value(in,&value);
174 char *setup_line(FILE *in){
176 value_line_buff=get_line(in);
181 int get_vector(codebook *b,FILE *in,int start, int n,float *a){
187 if(v_sofar==n || get_line_value(in,a)){
189 if(get_next_value(in,a))
193 get_line_value(in,a);
198 if(get_line_value(in,a+i))
216 char *find_seek_to(FILE *in,char *s){
217 rewind(in);
219 char *line=get_line(in);
237 FILE *in=fopen(filename,"r");
241 if(in==NULL){
247 find_seek_to(in,"static const static_codebook ");
250 line=get_line(in);
253 fprintf(stderr,"1: syntax in %s in line:\t %s",filename,line);
256 line=get_line(in);
257 line=get_line(in);
261 fprintf(stderr,"1: syntax in %s in line:\t %s",filename,line);
278 find_seek_to(in,"static const long _vq_quantlist_");
282 if(get_next_ivalue(in,c->quantlist+i)){
288 find_seek_to(in,"_lengthlist");
292 if(get_next_ivalue(in,c->lengthlist+i)){
298 fclose(in);
397 fprintf(stderr,"\rTotal samples in training set: %ld \n",samples);
406 /* wrap build_tree_from_lengths to allow zero entries in the histogram */
440 /* save the book in C header form */