more automation work
[platform/upstream/libvorbis.git] / lib / sharedbook.h
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE.  *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5  * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE.    *
6  * PLEASE READ THESE TERMS DISTRIBUTING.                            *
7  *                                                                  *
8  * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000             *
9  * by Monty <monty@xiph.org> and The XIPHOPHORUS Company            *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14  function: basic shared codebook operations
15  last mod: $Id: sharedbook.h,v 1.3 2000/10/12 03:12:54 xiphmont Exp $
16
17  ********************************************************************/
18
19 #ifndef _V_INT_SHCODEBOOK_H_
20 #define _V_INT_SHCODEBOOK_H_
21
22 #include "vorbis/codebook.h"
23
24 extern void vorbis_staticbook_clear(static_codebook *b);
25 extern int vorbis_book_init_encode(codebook *dest,const static_codebook *source);
26 extern int vorbis_book_init_decode(codebook *dest,const static_codebook *source);
27 extern void vorbis_book_clear(codebook *b);
28
29 extern float *_book_unquantize(const static_codebook *b);
30 extern float *_book_logdist(const static_codebook *b,float *vals);
31 extern float _float32_unpack(long val);
32 extern long   _float32_pack(float val);
33 extern int  _best(codebook *book, float *a, int step);
34 extern int _ilog(unsigned int v);
35 extern long _book_maptype1_quantvals(const static_codebook *b);
36
37 extern int vorbis_book_besterror(codebook *book,float *a,int step,int addmul);
38 extern long vorbis_book_codeword(codebook *book,int entry);
39 extern long vorbis_book_codelen(codebook *book,int entry);
40
41
42
43 #endif