1 /********************************************************************
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. *
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/ *
12 ********************************************************************
14 function: residue backend 0 implementation
15 last mod: $Id: res0.c,v 1.2 2000/01/28 09:05:16 xiphmont Exp $
17 ********************************************************************/
21 #include "vorbis/codec.h"
25 /* unfinished as of 20000118 */
27 void free_info(vorbis_info_residue *i){
28 vorbis_info_residue0 *d=(vorbis_info_residue0 *)i;
30 if(d->books)free(d->books);
31 memset(d,0,sizeof(vorbis_info_residue0));
36 void free_look(vorbis_look_residue *i){
40 void pack(vorbis_info_residue *vr,oggpack_buffer *opb){
43 /* vorbis_info is for range checking */
44 vorbis_info_residue *unpack(vorbis_info *vi,oggpack_buffer *opb){
47 vorbis_look_residue *look (vorbis_info *vi,vorbis_info_mode *vm,
48 vorbis_info_residue *vr){
51 int forward(vorbis_block *vb,vorbis_look_residue *l,double **in,int **aux,int ch){
53 int inverse(vorbis_block *vb,vorbis_look_residue *l,double **in,int ch){
56 vorbis_func_residue residue0_exportbundle={