more automation work
[platform/upstream/libvorbis.git] / lib / bookinternal.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 codebook pack/unpack/code/decode operations
15  last mod: $Id: bookinternal.h,v 1.9 2000/10/12 03:12:52 xiphmont Exp $
16
17  ********************************************************************/
18
19 #ifndef _V_INT_CODEBOOK_H_
20 #define _V_INT_CODEBOOK_H_
21
22 #include <ogg/ogg.h>
23 #include "vorbis/codebook.h"
24
25 extern int vorbis_staticbook_pack(const static_codebook *c,oggpack_buffer *b);
26 extern int vorbis_staticbook_unpack(oggpack_buffer *b,static_codebook *c);
27
28 extern int vorbis_book_encode(codebook *book, int a, oggpack_buffer *b);
29 extern int vorbis_book_errorv(codebook *book, float *a);
30 extern int vorbis_book_encodev(codebook *book, int best,float *a, 
31                                oggpack_buffer *b);
32 extern int vorbis_book_encodevs(codebook *book, float *a, oggpack_buffer *b,
33                                 int step,int stagetype);
34
35 extern long vorbis_book_decode(codebook *book, oggpack_buffer *b);
36 extern long vorbis_book_decodevs(codebook *book, float *a, oggpack_buffer *b,
37                                  int step,int stagetype);
38 extern long s_vorbis_book_decodevs(codebook *book, float *a, oggpack_buffer *b,
39                                    int step,int stagetype);
40
41 #endif