Path: blob/master/libs/mpg123/src/libmpg123/l2tables.h
4394 views
/*1l2tables.h: Layer 2 Alloc tables23copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.14see COPYING and AUTHORS files in distribution or http://mpg123.org5initially written by Michael Hipp67most other tables are calculated on program start (which is (of course) not ISO-conform)8Layer-3 huffman table is in huffman.h910Note: runtime computation of those other tables is optional now, and only for11floating point decoding.12*/131415#ifndef _MPG123_L2TABLES_H_16#define _MPG123_L2TABLES_H_1718static const struct al_table alloc_0[] = {19{4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},20{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},21{4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},22{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},23{4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},24{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},25{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},26{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},27{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},28{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},29{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},30{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},31{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},32{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},33{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},34{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},35{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},36{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},37{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},38{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},39{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},40{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},41{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},42{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},43{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},44{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},45{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},46{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},47{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},48{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},49{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},50{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},51{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},52{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},53{2,0},{5,3},{7,5},{16,-32767},54{2,0},{5,3},{7,5},{16,-32767},55{2,0},{5,3},{7,5},{16,-32767},56{2,0},{5,3},{7,5},{16,-32767} };5758static const struct al_table alloc_1[] = {59{4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},60{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},61{4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},62{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},63{4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},64{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},65{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},66{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},67{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},68{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},69{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},70{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},71{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},72{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},73{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},74{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},75{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},76{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},77{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},78{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},79{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},80{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},81{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},82{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},83{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},84{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},85{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},86{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},87{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},88{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},89{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},90{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},91{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},92{3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},93{2,0},{5,3},{7,5},{16,-32767},94{2,0},{5,3},{7,5},{16,-32767},95{2,0},{5,3},{7,5},{16,-32767},96{2,0},{5,3},{7,5},{16,-32767},97{2,0},{5,3},{7,5},{16,-32767},98{2,0},{5,3},{7,5},{16,-32767},99{2,0},{5,3},{7,5},{16,-32767} };100101static const struct al_table alloc_2[] = {102{4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},103{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},104{4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},105{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},106{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},107{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},108{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},109{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},110{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},111{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63} };112113static const struct al_table alloc_3[] = {114{4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},115{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},116{4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},117{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},118{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},119{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},120{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},121{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},122{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},123{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},124{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},125{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},126{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},127{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63} };128129static const struct al_table alloc_4[] = {130{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},131{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},132{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},133{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},134{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},135{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},136{4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},137{9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},138{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},139{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},140{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},141{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},142{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},143{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},144{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},145{2,0},{5,3},{7,5},{10,9},146{2,0},{5,3},{7,5},{10,9},147{2,0},{5,3},{7,5},{10,9},148{2,0},{5,3},{7,5},{10,9},149{2,0},{5,3},{7,5},{10,9},150{2,0},{5,3},{7,5},{10,9},151{2,0},{5,3},{7,5},{10,9},152{2,0},{5,3},{7,5},{10,9},153{2,0},{5,3},{7,5},{10,9},154{2,0},{5,3},{7,5},{10,9},155{2,0},{5,3},{7,5},{10,9},156{2,0},{5,3},{7,5},{10,9},157{2,0},{5,3},{7,5},{10,9},158{2,0},{5,3},{7,5},{10,9},159{2,0},{5,3},{7,5},{10,9},160{2,0},{5,3},{7,5},{10,9},161{2,0},{5,3},{7,5},{10,9},162{2,0},{5,3},{7,5},{10,9},163{2,0},{5,3},{7,5},{10,9} };164165#endif166167168169