Incremental update. Reduced maximum codebook/mapping/mode/backend
[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.3 2000/01/28 14:31:28 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   if(i){
29     memset(i,0,sizeof(vorbis_info_residue0));
30     free(i);
31   }
32 }
33
34 void free_look(vorbis_look_residue *i){
35 }
36
37 /* not yet */
38 void pack(vorbis_info_residue *vr,oggpack_buffer *opb){
39 }
40
41 /* vorbis_info is for range checking */
42 vorbis_info_residue *unpack(vorbis_info *vi,oggpack_buffer *opb){
43 }
44
45 vorbis_look_residue *look (vorbis_info *vi,vorbis_info_mode *vm,
46                           vorbis_info_residue *vr){
47 }
48
49 int forward(vorbis_block *vb,vorbis_look_residue *l,double **in,int **aux,int ch){
50 }
51 int inverse(vorbis_block *vb,vorbis_look_residue *l,double **in,int ch){
52 }
53
54 vorbis_func_residue residue0_exportbundle={
55   &pack,
56   &unpack,
57   &look,
58   &free_info,
59   &free_look,
60   &forward,
61   &inverse
62 };