examples/sfexamples/oggvorbiscodec/src/libvorbis/vq/bookutil.h

00001 /********************************************************************
00002  *                                                                  *
00003  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
00004  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
00005  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
00006  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
00007  *                                                                  *
00008  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001             *
00009  * by the XIPHOPHORUS Company http://www.xiph.org/                  *
00010  *                                                                  *
00011  ********************************************************************
00012 
00013  function: utility functions for loading .vqh and .vqd files
00014  last mod: $Id: bookutil.h 7187 2004-07-20 07:24:27Z xiphmont $
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 

Generated by  doxygen 1.6.2