The lib and vq, at least, build again. Tackling the examples and xmms
[platform/upstream/libvorbis.git] / lib / res0.c
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: residue backend 0 implementation
15  last mod: $Id: res0.c,v 1.2 2000/01/28 09:05:16 xiphmont Exp $
16
17  ********************************************************************/
18
19 #include <stdlib.h>
20 #include <string.h>
21 #include "vorbis/codec.h"
22 #include "bitwise.h"
23 #include "registry.h"
24
25 /* unfinished as of 20000118 */
26
27 void free_info(vorbis_info_residue *i){
28   vorbis_info_residue0 *d=(vorbis_info_residue0 *)i;
29   if(d){
30     if(d->books)free(d->books);
31     memset(d,0,sizeof(vorbis_info_residue0));
32     free(d);
33   }
34 }
35
36 void free_look(vorbis_look_residue *i){
37 }
38
39 /* not yet */
40 void pack(vorbis_info_residue *vr,oggpack_buffer *opb){
41 }
42
43 /* vorbis_info is for range checking */
44 vorbis_info_residue *unpack(vorbis_info *vi,oggpack_buffer *opb){
45 }
46
47 vorbis_look_residue *look (vorbis_info *vi,vorbis_info_mode *vm,
48                           vorbis_info_residue *vr){
49 }
50
51 int forward(vorbis_block *vb,vorbis_look_residue *l,double **in,int **aux,int ch){
52 }
53 int inverse(vorbis_block *vb,vorbis_look_residue *l,double **in,int ch){
54 }
55
56 vorbis_func_residue residue0_exportbundle={
57   &pack,
58   &unpack,
59   &look,
60   &free_info,
61   &free_look,
62   &forward,
63   &inverse
64 };