examples/sfexamples/oggvorbiscodec/src/libvorbis/lib/modes/floor_all.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: key floor settings
00014  last mod: $Id: floor_all.h 7187 2004-07-20 07:24:27Z xiphmont $
00015 
00016  ********************************************************************/
00017 
00018 #include "vorbis/codec.h"
00019 #include "backends.h"
00020 #include "books/floor/floor_books.h"
00021 
00022 static static_codebook *_floor_128x4_books[]={
00023   &_huff_book_line_128x4_class0,
00024   &_huff_book_line_128x4_0sub0,
00025   &_huff_book_line_128x4_0sub1,
00026   &_huff_book_line_128x4_0sub2,
00027   &_huff_book_line_128x4_0sub3,
00028 };
00029 static static_codebook *_floor_256x4_books[]={
00030   &_huff_book_line_256x4_class0,
00031   &_huff_book_line_256x4_0sub0,
00032   &_huff_book_line_256x4_0sub1,
00033   &_huff_book_line_256x4_0sub2,
00034   &_huff_book_line_256x4_0sub3,
00035 };
00036 static static_codebook *_floor_128x7_books[]={
00037   &_huff_book_line_128x7_class0,
00038   &_huff_book_line_128x7_class1,
00039   
00040   &_huff_book_line_128x7_0sub1,
00041   &_huff_book_line_128x7_0sub2,
00042   &_huff_book_line_128x7_0sub3,
00043   &_huff_book_line_128x7_1sub1,
00044   &_huff_book_line_128x7_1sub2,
00045   &_huff_book_line_128x7_1sub3, 
00046 };
00047 static static_codebook *_floor_256x7_books[]={
00048   &_huff_book_line_256x7_class0,
00049   &_huff_book_line_256x7_class1,
00050   
00051   &_huff_book_line_256x7_0sub1,
00052   &_huff_book_line_256x7_0sub2,
00053   &_huff_book_line_256x7_0sub3,
00054   &_huff_book_line_256x7_1sub1,
00055   &_huff_book_line_256x7_1sub2,
00056   &_huff_book_line_256x7_1sub3, 
00057 };
00058 static static_codebook *_floor_128x11_books[]={
00059   &_huff_book_line_128x11_class1,
00060   &_huff_book_line_128x11_class2,
00061   &_huff_book_line_128x11_class3,
00062   
00063   &_huff_book_line_128x11_0sub0,
00064   &_huff_book_line_128x11_1sub0,
00065   &_huff_book_line_128x11_1sub1,
00066   &_huff_book_line_128x11_2sub1,
00067   &_huff_book_line_128x11_2sub2,
00068   &_huff_book_line_128x11_2sub3, 
00069   &_huff_book_line_128x11_3sub1,
00070   &_huff_book_line_128x11_3sub2,
00071   &_huff_book_line_128x11_3sub3, 
00072 };
00073 static static_codebook *_floor_128x17_books[]={
00074   &_huff_book_line_128x17_class1,
00075   &_huff_book_line_128x17_class2,
00076   &_huff_book_line_128x17_class3,
00077   
00078   &_huff_book_line_128x17_0sub0,
00079   &_huff_book_line_128x17_1sub0,
00080   &_huff_book_line_128x17_1sub1,
00081   &_huff_book_line_128x17_2sub1,
00082   &_huff_book_line_128x17_2sub2,
00083   &_huff_book_line_128x17_2sub3, 
00084   &_huff_book_line_128x17_3sub1,
00085   &_huff_book_line_128x17_3sub2,
00086   &_huff_book_line_128x17_3sub3, 
00087 };
00088 static static_codebook *_floor_256x4low_books[]={
00089   &_huff_book_line_256x4low_class0,
00090   &_huff_book_line_256x4low_0sub0,
00091   &_huff_book_line_256x4low_0sub1,
00092   &_huff_book_line_256x4low_0sub2,
00093   &_huff_book_line_256x4low_0sub3,
00094 };
00095 static static_codebook *_floor_1024x27_books[]={
00096   &_huff_book_line_1024x27_class1,
00097   &_huff_book_line_1024x27_class2,
00098   &_huff_book_line_1024x27_class3,
00099   &_huff_book_line_1024x27_class4,
00100   
00101   &_huff_book_line_1024x27_0sub0,
00102   &_huff_book_line_1024x27_1sub0,
00103   &_huff_book_line_1024x27_1sub1,
00104   &_huff_book_line_1024x27_2sub0,
00105   &_huff_book_line_1024x27_2sub1,
00106   &_huff_book_line_1024x27_3sub1,
00107   &_huff_book_line_1024x27_3sub2,
00108   &_huff_book_line_1024x27_3sub3,
00109   &_huff_book_line_1024x27_4sub1,
00110   &_huff_book_line_1024x27_4sub2,
00111   &_huff_book_line_1024x27_4sub3,
00112 };
00113 static static_codebook *_floor_2048x27_books[]={
00114   &_huff_book_line_2048x27_class1,
00115   &_huff_book_line_2048x27_class2,
00116   &_huff_book_line_2048x27_class3,
00117   &_huff_book_line_2048x27_class4,
00118   
00119   &_huff_book_line_2048x27_0sub0,
00120   &_huff_book_line_2048x27_1sub0,
00121   &_huff_book_line_2048x27_1sub1,
00122   &_huff_book_line_2048x27_2sub0,
00123   &_huff_book_line_2048x27_2sub1,
00124   &_huff_book_line_2048x27_3sub1,
00125   &_huff_book_line_2048x27_3sub2,
00126   &_huff_book_line_2048x27_3sub3,
00127   &_huff_book_line_2048x27_4sub1,
00128   &_huff_book_line_2048x27_4sub2,
00129   &_huff_book_line_2048x27_4sub3,
00130 };
00131 
00132 static static_codebook *_floor_512x17_books[]={
00133   &_huff_book_line_512x17_class1,
00134   &_huff_book_line_512x17_class2,
00135   &_huff_book_line_512x17_class3,
00136   
00137   &_huff_book_line_512x17_0sub0,
00138   &_huff_book_line_512x17_1sub0,
00139   &_huff_book_line_512x17_1sub1,
00140   &_huff_book_line_512x17_2sub1,
00141   &_huff_book_line_512x17_2sub2,
00142   &_huff_book_line_512x17_2sub3, 
00143   &_huff_book_line_512x17_3sub1,
00144   &_huff_book_line_512x17_3sub2,
00145   &_huff_book_line_512x17_3sub3, 
00146 };
00147 
00148 static static_codebook **_floor_books[10]={
00149   _floor_128x4_books,
00150   _floor_256x4_books,
00151   _floor_128x7_books,
00152   _floor_256x7_books,
00153   _floor_128x11_books,
00154   _floor_128x17_books,
00155   _floor_256x4low_books,
00156   _floor_1024x27_books,
00157   _floor_2048x27_books,
00158   _floor_512x17_books,
00159 };
00160 
00161 static vorbis_info_floor1 _floor[10]={
00162   /* 128 x 4 */
00163   {
00164     1,{0},{4},{2},{0},
00165     {{1,2,3,4}},
00166     4,{0,128, 33,8,16,70},
00167 
00168     60,30,500,   1.,18.,  -1
00169   },
00170   /* 256 x 4 */
00171   {
00172     1,{0},{4},{2},{0},
00173     {{1,2,3,4}},
00174     4,{0,256, 66,16,32,140},
00175 
00176     60,30,500,   1.,18.,  -1
00177   },
00178   /* 128 x 7 */
00179   {
00180     2,{0,1},{3,4},{2,2},{0,1},
00181     {{-1,2,3,4},{-1,5,6,7}},
00182     4,{0,128, 14,4,58, 2,8,28,90},
00183     
00184     60,30,500,   1.,18.,  -1
00185   },
00186   /* 256 x 7 */
00187   {
00188     2,{0,1},{3,4},{2,2},{0,1},
00189     {{-1,2,3,4},{-1,5,6,7}},
00190     4,{0,256, 28,8,116, 4,16,56,180},
00191     
00192     60,30,500,   1.,18.,  -1
00193   },
00194   /* 128 x 11 */
00195   {
00196     4,{0,1,2,3},{2,3,3,3},{0,1,2,2},{-1,0,1,2},
00197     {{3},{4,5},{-1,6,7,8},{-1,9,10,11}},
00198     
00199     2,{0,128,  8,33,  4,16,70,  2,6,12,  23,46,90},
00200     
00201      60,30,500,   1,18.,  -1
00202   },
00203   /* 128 x 17 */
00204   {
00205     6,{0,1,1,2,3,3},{2,3,3,3},{0,1,2,2},{-1,0,1,2},
00206     {{3},{4,5},{-1,6,7,8},{-1,9,10,11}},
00207     2,{0,128,  12,46,  4,8,16,  23,33,70,  2,6,10,  14,19,28,  39,58,90},
00208     
00209     60,30,500,    1,18.,  -1 
00210   },
00211   /* 256 x 4 (low bitrate version) */
00212   {
00213     1,{0},{4},{2},{0},
00214     {{1,2,3,4}},
00215     4,{0,256, 66,16,32,140},
00216 
00217     60,30,500,   1.,18.,  -1
00218   },
00219   /* 1024 x 27 */
00220   {
00221     8,{0,1,2,2,3,3,4,4},{3,4,3,4,3},{0,1,1,2,2},{-1,0,1,2,3},
00222     {{4},{5,6},{7,8},{-1,9,10,11},{-1,12,13,14}},
00223     2,{0,1024,   93,23,372, 6,46,186,750,  14,33,65, 130,260,556,
00224        3,10,18,28,  39,55,79,111,  158,220,312,  464,650,850},
00225     
00226     60,30,500,    3,18.,  -1 /* lowpass */
00227   },
00228   /* 2048 x 27 */
00229   {
00230     8,{0,1,2,2,3,3,4,4},{3,4,3,4,3},{0,1,1,2,2},{-1,0,1,2,3},
00231     {{4},{5,6},{7,8},{-1,9,10,11},{-1,12,13,14}},
00232     2,{0,2048,   186,46,744, 12,92,372,1500,  28,66,130, 260,520,1112,
00233        6,20,36,56,  78,110,158,222,  316,440,624,  928,1300,1700},
00234     
00235     60,30,500,    3,18.,  -1 /* lowpass */
00236   },
00237   /* 512 x 17 */
00238   {
00239     6,{0,1,1,2,3,3},{2,3,3,3},{0,1,2,2},{-1,0,1,2},
00240     {{3},{4,5},{-1,6,7,8},{-1,9,10,11}},
00241     2,{0,512,  46,186,  16,33,65,  93,130,278,  
00242        7,23,39,  55,79,110,  156,232,360},
00243     
00244     60,30,500,    1,18.,  -1 /* lowpass! */
00245   },
00246 
00247 };
00248 

Generated by  doxygen 1.6.2