examples/SFExamples/oggvorbiscodec/src/libvorbis/lib/modes/residue_16.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 16/22kHz
00014  last mod: $Id: residue_16.h 7187 2004-07-20 07:24:27Z xiphmont $
00015 
00016  ********************************************************************/
00017 
00018 /***** residue backends *********************************************/
00019 
00020 static static_bookblock _resbook_16s_0={
00021   {
00022     {0},
00023     {0,0,&_16c0_s_p1_0},
00024     {0,0,&_16c0_s_p2_0},
00025     {0,0,&_16c0_s_p3_0},
00026     {0,0,&_16c0_s_p4_0},
00027     {0,0,&_16c0_s_p5_0},
00028     {0,0,&_16c0_s_p6_0},
00029     {&_16c0_s_p7_0,&_16c0_s_p7_1},
00030     {&_16c0_s_p8_0,&_16c0_s_p8_1},
00031     {&_16c0_s_p9_0,&_16c0_s_p9_1,&_16c0_s_p9_2}
00032    }
00033 };
00034 static static_bookblock _resbook_16s_1={
00035   {
00036     {0},
00037     {0,0,&_16c1_s_p1_0},
00038     {0,0,&_16c1_s_p2_0},
00039     {0,0,&_16c1_s_p3_0},
00040     {0,0,&_16c1_s_p4_0},
00041     {0,0,&_16c1_s_p5_0},
00042     {0,0,&_16c1_s_p6_0},
00043     {&_16c1_s_p7_0,&_16c1_s_p7_1},
00044     {&_16c1_s_p8_0,&_16c1_s_p8_1},
00045     {&_16c1_s_p9_0,&_16c1_s_p9_1,&_16c1_s_p9_2}
00046    }
00047 };
00048 static static_bookblock _resbook_16s_2={
00049   {
00050     {0},
00051     {0,0,&_16c2_s_p1_0},
00052     {0,0,&_16c2_s_p2_0},
00053     {0,0,&_16c2_s_p3_0},
00054     {0,0,&_16c2_s_p4_0},
00055     {&_16c2_s_p5_0,&_16c2_s_p5_1},
00056     {&_16c2_s_p6_0,&_16c2_s_p6_1},
00057     {&_16c2_s_p7_0,&_16c2_s_p7_1},
00058     {&_16c2_s_p8_0,&_16c2_s_p8_1},
00059     {&_16c2_s_p9_0,&_16c2_s_p9_1,&_16c2_s_p9_2}
00060    }
00061 };
00062 
00063 static vorbis_residue_template _res_16s_0[]={
00064   {2,0,  &_residue_44_mid,
00065    &_huff_book__16c0_s_single,&_huff_book__16c0_s_single,
00066    &_resbook_16s_0,&_resbook_16s_0},
00067 };
00068 static vorbis_residue_template _res_16s_1[]={
00069   {2,0,  &_residue_44_mid,
00070    &_huff_book__16c1_s_short,&_huff_book__16c1_s_short,
00071    &_resbook_16s_1,&_resbook_16s_1},
00072   
00073   {2,0,  &_residue_44_mid,
00074    &_huff_book__16c1_s_long,&_huff_book__16c1_s_long,
00075    &_resbook_16s_1,&_resbook_16s_1}
00076 };
00077 static vorbis_residue_template _res_16s_2[]={
00078   {2,0,  &_residue_44_high,
00079    &_huff_book__16c2_s_short,&_huff_book__16c2_s_short,
00080    &_resbook_16s_2,&_resbook_16s_2},
00081   
00082   {2,0,  &_residue_44_high,
00083    &_huff_book__16c2_s_long,&_huff_book__16c2_s_long,
00084    &_resbook_16s_2,&_resbook_16s_2}
00085 };
00086 
00087 static vorbis_mapping_template _mapres_template_16_stereo[3]={
00088   { _map_nominal, _res_16s_0 }, /* 0 */
00089   { _map_nominal, _res_16s_1 }, /* 1 */
00090   { _map_nominal, _res_16s_2 }, /* 2 */
00091 };
00092 
00093 static static_bookblock _resbook_16u_0={
00094   {
00095     {0},
00096     {0,0,&_16u0__p1_0},
00097     {0,0,&_16u0__p2_0},
00098     {0,0,&_16u0__p3_0},
00099     {0,0,&_16u0__p4_0},
00100     {0,0,&_16u0__p5_0},
00101     {&_16u0__p6_0,&_16u0__p6_1},
00102     {&_16u0__p7_0,&_16u0__p7_1,&_16u0__p7_2}
00103    }
00104 };
00105 static static_bookblock _resbook_16u_1={
00106   {
00107     {0},
00108     {0,0,&_16u1__p1_0},
00109     {0,0,&_16u1__p2_0},
00110     {0,0,&_16u1__p3_0},
00111     {0,0,&_16u1__p4_0},
00112     {0,0,&_16u1__p5_0},
00113     {0,0,&_16u1__p6_0},
00114     {&_16u1__p7_0,&_16u1__p7_1},
00115     {&_16u1__p8_0,&_16u1__p8_1},
00116     {&_16u1__p9_0,&_16u1__p9_1,&_16u1__p9_2}
00117    }
00118 };
00119 static static_bookblock _resbook_16u_2={
00120   {
00121     {0},
00122     {0,0,&_16u2_p1_0},
00123     {0,0,&_16u2_p2_0},
00124     {0,0,&_16u2_p3_0},
00125     {0,0,&_16u2_p4_0},
00126     {&_16u2_p5_0,&_16u2_p5_1},
00127     {&_16u2_p6_0,&_16u2_p6_1},
00128     {&_16u2_p7_0,&_16u2_p7_1},
00129     {&_16u2_p8_0,&_16u2_p8_1},
00130     {&_16u2_p9_0,&_16u2_p9_1,&_16u2_p9_2}
00131    }
00132 };
00133 
00134 static vorbis_residue_template _res_16u_0[]={
00135   {1,0,  &_residue_44_low_un,
00136    &_huff_book__16u0__single,&_huff_book__16u0__single,
00137    &_resbook_16u_0,&_resbook_16u_0},
00138 };
00139 static vorbis_residue_template _res_16u_1[]={
00140   {1,0,  &_residue_44_mid_un,
00141    &_huff_book__16u1__short,&_huff_book__16u1__short,
00142    &_resbook_16u_1,&_resbook_16u_1},
00143   
00144   {1,0,  &_residue_44_mid_un,
00145    &_huff_book__16u1__long,&_huff_book__16u1__long,
00146    &_resbook_16u_1,&_resbook_16u_1}
00147 };
00148 static vorbis_residue_template _res_16u_2[]={
00149   {1,0,  &_residue_44_hi_un,
00150    &_huff_book__16u2__short,&_huff_book__16u2__short,
00151    &_resbook_16u_2,&_resbook_16u_2},
00152   
00153   {1,0,  &_residue_44_hi_un,
00154    &_huff_book__16u2__long,&_huff_book__16u2__long,
00155    &_resbook_16u_2,&_resbook_16u_2}
00156 };
00157 
00158 
00159 static vorbis_mapping_template _mapres_template_16_uncoupled[3]={
00160   { _map_nominal_u, _res_16u_0 }, /* 0 */
00161   { _map_nominal_u, _res_16u_1 }, /* 1 */
00162   { _map_nominal_u, _res_16u_2 }, /* 2 */
00163 };

Generated by  doxygen 1.6.2