examples/SFExamples/oggvorbiscodec94/src/libvorbis/lib/modes/residue_8.h

00001 /********************************************************************
00002  *                                                                  *
00003  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
00004  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
00005  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
00006  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
00007  *                                                                  *
00008  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002             *
00009  * by the XIPHOPHORUS Company http://www.xiph.org/                  *
00010  *                                                                  *
00011  ********************************************************************
00012 
00013  function: toplevel residue templates 8/11kHz
00014  last mod: $Id: residue_8.h 7187 2004-07-20 07:24:27Z xiphmont $
00015 
00016  ********************************************************************/
00017 
00018 #include "vorbis/codec.h"
00019 #include "backends.h"
00020 
00021 /***** residue backends *********************************************/
00022 
00023 static static_bookblock _resbook_8s_0={
00024   {
00025     {0},{0,0,&_8c0_s_p1_0},{0,0,&_8c0_s_p2_0},{0,0,&_8c0_s_p3_0},
00026     {0,0,&_8c0_s_p4_0},{0,0,&_8c0_s_p5_0},{0,0,&_8c0_s_p6_0},
00027     {&_8c0_s_p7_0,&_8c0_s_p7_1},{&_8c0_s_p8_0,&_8c0_s_p8_1},
00028     {&_8c0_s_p9_0,&_8c0_s_p9_1,&_8c0_s_p9_2}
00029    }
00030 };
00031 static static_bookblock _resbook_8s_1={
00032   {
00033     {0},{0,0,&_8c1_s_p1_0},{0,0,&_8c1_s_p2_0},{0,0,&_8c1_s_p3_0},
00034     {0,0,&_8c1_s_p4_0},{0,0,&_8c1_s_p5_0},{0,0,&_8c1_s_p6_0},
00035     {&_8c1_s_p7_0,&_8c1_s_p7_1},{&_8c1_s_p8_0,&_8c1_s_p8_1},
00036     {&_8c1_s_p9_0,&_8c1_s_p9_1,&_8c1_s_p9_2}
00037    }
00038 };
00039 
00040 static vorbis_residue_template _res_8s_0[]={
00041   {2,0,  &_residue_44_mid,
00042    &_huff_book__8c0_s_single,&_huff_book__8c0_s_single,
00043    &_resbook_8s_0,&_resbook_8s_0},
00044 };
00045 static vorbis_residue_template _res_8s_1[]={
00046   {2,0,  &_residue_44_mid,
00047    &_huff_book__8c1_s_single,&_huff_book__8c1_s_single,
00048    &_resbook_8s_1,&_resbook_8s_1},
00049 };
00050 
00051 static vorbis_mapping_template _mapres_template_8_stereo[2]={
00052   { _map_nominal, _res_8s_0 }, /* 0 */
00053   { _map_nominal, _res_8s_1 }, /* 1 */
00054 };
00055 
00056 static static_bookblock _resbook_8u_0={
00057   {
00058     {0},
00059     {0,0,&_8u0__p1_0},
00060     {0,0,&_8u0__p2_0},
00061     {0,0,&_8u0__p3_0},
00062     {0,0,&_8u0__p4_0},
00063     {0,0,&_8u0__p5_0},
00064     {&_8u0__p6_0,&_8u0__p6_1},
00065     {&_8u0__p7_0,&_8u0__p7_1,&_8u0__p7_2}
00066    }
00067 };
00068 static static_bookblock _resbook_8u_1={
00069   {
00070     {0},
00071     {0,0,&_8u1__p1_0},
00072     {0,0,&_8u1__p2_0},
00073     {0,0,&_8u1__p3_0},
00074     {0,0,&_8u1__p4_0},
00075     {0,0,&_8u1__p5_0},
00076     {0,0,&_8u1__p6_0},
00077     {&_8u1__p7_0,&_8u1__p7_1},
00078     {&_8u1__p8_0,&_8u1__p8_1},
00079     {&_8u1__p9_0,&_8u1__p9_1,&_8u1__p9_2}
00080    }
00081 };
00082 
00083 static vorbis_residue_template _res_8u_0[]={
00084   {1,0,  &_residue_44_low_un,
00085    &_huff_book__8u0__single,&_huff_book__8u0__single,
00086    &_resbook_8u_0,&_resbook_8u_0},
00087 };
00088 static vorbis_residue_template _res_8u_1[]={
00089   {1,0,  &_residue_44_mid_un,
00090    &_huff_book__8u1__single,&_huff_book__8u1__single,
00091    &_resbook_8u_1,&_resbook_8u_1},
00092 };
00093 
00094 static vorbis_mapping_template _mapres_template_8_uncoupled[2]={
00095   { _map_nominal_u, _res_8u_0 }, /* 0 */
00096   { _map_nominal_u, _res_8u_1 }, /* 1 */
00097 };

Generated by  doxygen 1.6.2