ssr_win.h

00001 /*
00002 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
00003 ** Copyright (C) 2003-2005 M. Bakker, Ahead Software AG, http://www.nero.com
00004 **  
00005 ** This program is free software; you can redistribute it and/or modify
00006 ** it under the terms of the GNU General Public License as published by
00007 ** the Free Software Foundation; either version 2 of the License, or
00008 ** (at your option) any later version.
00009 ** 
00010 ** This program is distributed in the hope that it will be useful,
00011 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 ** GNU General Public License for more details.
00014 ** 
00015 ** You should have received a copy of the GNU General Public License
00016 ** along with this program; if not, write to the Free Software 
00017 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018 **
00019 ** Any non-GPL usage of this software or parts of this software is strictly
00020 ** forbidden.
00021 **
00022 ** Software using this code must display the following message visibly in the
00023 ** software:
00024 ** "FAAD2 AAC/HE-AAC/HE-AACv2/DRM decoder (c) Ahead Software, www.nero.com"
00025 ** in, for example, the about-box or help/startup screen.
00026 **
00027 ** Commercial non-GPL licensing of this software is possible.
00028 ** For more info contact Ahead Software through [email protected].
00029 **
00030 ** $Id: ssr_win.h,v 1.2 2005/11/01 21:41:43 gabest Exp $
00031 **/
00032 
00033 #ifndef __SSR_WIN_H__
00034 #define __SSR_WIN_H__
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00040 #ifdef _MSC_VER
00041 #pragma warning(disable:4305)
00042 #pragma warning(disable:4244)
00043 #endif
00044 
00045 static real_t sine_short_32[] = {
00046     0.0245412290,
00047     0.0735645667,
00048     0.1224106774,
00049     0.1709618866,
00050     0.2191012502,
00051     0.2667127550,
00052     0.3136817515,
00053     0.3598950505,
00054     0.4052413106,
00055     0.4496113360,
00056     0.4928981960,
00057     0.5349976420,
00058     0.5758082271,
00059     0.6152316332,
00060     0.6531728506,
00061     0.6895405650,
00062     0.7242470980,
00063     0.7572088838,
00064     0.7883464694,
00065     0.8175848126,
00066     0.8448535800,
00067     0.8700870275,
00068     0.8932242990,
00069     0.9142097831,
00070     0.9329928160,
00071     0.9495282173,
00072     0.9637760520,
00073     0.9757021666,
00074     0.9852776527,
00075     0.9924795628,
00076     0.9972904325,
00077     0.9996988177
00078 };
00079 
00080 static real_t sine_long_256[] = {
00081     0.0030679568,
00082     0.0092037553,
00083     0.0153392069,
00084     0.0214740802,
00085     0.0276081469,
00086     0.0337411724,
00087     0.0398729295,
00088     0.0460031852,
00089     0.0521317050,
00090     0.0582582653,
00091     0.0643826351,
00092     0.0705045760,
00093     0.0766238645,
00094     0.0827402696,
00095     0.0888535529,
00096     0.0949634984,
00097     0.1010698676,
00098     0.1071724296,
00099     0.1132709533,
00100     0.1193652153,
00101     0.1254549921,
00102     0.1315400302,
00103     0.1376201212,
00104     0.1436950415,
00105     0.1497645378,
00106     0.1558284014,
00107     0.1618863940,
00108     0.1679383069,
00109     0.1739838719,
00110     0.1800229102,
00111     0.1860551536,
00112     0.1920804083,
00113     0.1980984211,
00114     0.2041089684,
00115     0.2101118416,
00116     0.2161068022,
00117     0.2220936269,
00118     0.2280720919,
00119     0.2340419590,
00120     0.2400030345,
00121     0.2459550500,
00122     0.2518978119,
00123     0.2578310966,
00124     0.2637546957,
00125     0.2696683407,
00126     0.2755718231,
00127     0.2814649343,
00128     0.2873474658,
00129     0.2932191789,
00130     0.2990798354,
00131     0.3049292266,
00132     0.3107671738,
00133     0.3165933788,
00134     0.3224076927,
00135     0.3282098472,
00136     0.3339996636,
00137     0.3397769034,
00138     0.3455413282,
00139     0.3512927592,
00140     0.3570309579,
00141     0.3627557456,
00142     0.3684668541,
00143     0.3741640747,
00144     0.3798472285,
00145     0.3855160773,
00146     0.3911703825,
00147     0.3968099952,
00148     0.4024346471,
00149     0.4080441594,
00150     0.4136383235,
00151     0.4192169011,
00152     0.4247796834,
00153     0.4303264916,
00154     0.4358570874,
00155     0.4413712919,
00156     0.4468688369,
00157     0.4523496032,
00158     0.4578133225,
00159     0.4632597864,
00160     0.4686888456,
00161     0.4741002321,
00162     0.4794937670,
00163     0.4848692715,
00164     0.4902265072,
00165     0.4955652654,
00166     0.5008853674,
00167     0.5061866641,
00168     0.5114688873,
00169     0.5167317986,
00170     0.5219752789,
00171     0.5271991491,
00172     0.5324031115,
00173     0.5375871062,
00174     0.5427507758,
00175     0.5478940606,
00176     0.5530167222,
00177     0.5581185222,
00178     0.5631993413,
00179     0.5682589412,
00180     0.5732972026,
00181     0.5783138275,
00182     0.5833086967,
00183     0.5882815719,
00184     0.5932323337,
00185     0.5981607437,
00186     0.6030666232,
00187     0.6079497933,
00188     0.6128100753,
00189     0.6176473498,
00190     0.6224613190,
00191     0.6272518039,
00192     0.6320187449,
00193     0.6367619038,
00194     0.6414810419,
00195     0.6461760402,
00196     0.6508467197,
00197     0.6554928422,
00198     0.6601143479,
00199     0.6647109985,
00200     0.6692826152,
00201     0.6738290191,
00202     0.6783500314,
00203     0.6828455329,
00204     0.6873153448,
00205     0.6917592883,
00206     0.6961771250,
00207     0.7005687952,
00208     0.7049341202,
00209     0.7092728615,
00210     0.7135848999,
00211     0.7178700566,
00212     0.7221282125,
00213     0.7263591886,
00214     0.7305628061,
00215     0.7347388864,
00216     0.7388873696,
00217     0.7430079579,
00218     0.7471006513,
00219     0.7511651516,
00220     0.7552013993,
00221     0.7592092156,
00222     0.7631884217,
00223     0.7671388984,
00224     0.7710605264,
00225     0.7749531269,
00226     0.7788165212,
00227     0.7826505899,
00228     0.7864552140,
00229     0.7902302146,
00230     0.7939754725,
00231     0.7976908684,
00232     0.8013761640,
00233     0.8050313592,
00234     0.8086562157,
00235     0.8122506142,
00236     0.8158144355,
00237     0.8193475604,
00238     0.8228498101,
00239     0.8263210654,
00240     0.8297612667,
00241     0.8331701756,
00242     0.8365477324,
00243     0.8398938179,
00244     0.8432082534,
00245     0.8464909792,
00246     0.8497417569,
00247     0.8529606462,
00248     0.8561473489,
00249     0.8593018055,
00250     0.8624239564,
00251     0.8655136228,
00252     0.8685707450,
00253     0.8715950847,
00254     0.8745866418,
00255     0.8775452971,
00256     0.8804709315,
00257     0.8833633661,
00258     0.8862225413,
00259     0.8890483975,
00260     0.8918406963,
00261     0.8945994973,
00262     0.8973246217,
00263     0.9000158906,
00264     0.9026733041,
00265     0.9052967429,
00266     0.9078861475,
00267     0.9104412794,
00268     0.9129621983,
00269     0.9154487252,
00270     0.9179008007,
00271     0.9203183055,
00272     0.9227011204,
00273     0.9250492454,
00274     0.9273625612,
00275     0.9296408892,
00276     0.9318842888,
00277     0.9340925813,
00278     0.9362657070,
00279     0.9384035468,
00280     0.9405061007,
00281     0.9425731897,
00282     0.9446048737,
00283     0.9466009140,
00284     0.9485613704,
00285     0.9504860640,
00286     0.9523749948,
00287     0.9542281032,
00288     0.9560452700,
00289     0.9578264356,
00290     0.9595715404,
00291     0.9612805247,
00292     0.9629532695,
00293     0.9645897746,
00294     0.9661900401,
00295     0.9677538276,
00296     0.9692812562,
00297     0.9707721472,
00298     0.9722265005,
00299     0.9736442566,
00300     0.9750253558,
00301     0.9763697386,
00302     0.9776773453,
00303     0.9789481759,
00304     0.9801821709,
00305     0.9813792109,
00306     0.9825392962,
00307     0.9836624265,
00308     0.9847484827,
00309     0.9857975245,
00310     0.9868094325,
00311     0.9877841473,
00312     0.9887216687,
00313     0.9896219969,
00314     0.9904850721,
00315     0.9913108945,
00316     0.9920993447,
00317     0.9928504229,
00318     0.9935641289,
00319     0.9942404628,
00320     0.9948793054,
00321     0.9954807758,
00322     0.9960446954,
00323     0.9965711236,
00324     0.9970600605,
00325     0.9975114465,
00326     0.9979252815,
00327     0.9983015656,
00328     0.9986402392,
00329     0.9989413023,
00330     0.9992047548,
00331     0.9994305968,
00332     0.9996188283,
00333     0.9997693896,
00334     0.9998823404,
00335     0.9999576211,
00336     0.9999952912
00337 };
00338 
00339 static real_t kbd_short_32[] = {
00340     0.0000875914060105,
00341     0.0009321760265333,
00342     0.0032114611466596,
00343     0.0081009893216786,
00344     0.0171240286619181,
00345     0.0320720743527833,
00346     0.0548307856028528,
00347     0.0871361822564870,
00348     0.1302923415174603,
00349     0.1848955425508276,
00350     0.2506163195331889,
00351     0.3260874142923209,
00352     0.4089316830907141,
00353     0.4959414909423747,
00354     0.5833939894958904,
00355     0.6674601983218376,
00356     0.7446454751465113,
00357     0.8121892962974020,
00358     0.8683559394406505,
00359     0.9125649996381605,
00360     0.9453396205809574,
00361     0.9680864942677585,
00362     0.9827581789763112,
00363     0.9914756203467121,
00364     0.9961964092194694,
00365     0.9984956609571091,
00366     0.9994855586984285,
00367     0.9998533730714648,
00368     0.9999671864476404,
00369     0.9999948432453556,
00370     0.9999995655238333,
00371     0.9999999961638728
00372 };
00373 
00374 
00375 static real_t kbd_long_256[] = {
00376     0.0005851230124487,
00377     0.0009642149851497,
00378     0.0013558207534965,
00379     0.0017771849644394,
00380     0.0022352533849672,
00381     0.0027342299070304,
00382     0.0032773001022195,
00383     0.0038671998069216,
00384     0.0045064443384152,
00385     0.0051974336885144,
00386     0.0059425050016407,
00387     0.0067439602523141,
00388     0.0076040812644888,
00389     0.0085251378135895,
00390     0.0095093917383048,
00391     0.0105590986429280,
00392     0.0116765080854300,
00393     0.0128638627792770,
00394     0.0141233971318631,
00395     0.0154573353235409,
00396     0.0168678890600951,
00397     0.0183572550877256,
00398     0.0199276125319803,
00399     0.0215811201042484,
00400     0.0233199132076965,
00401     0.0251461009666641,
00402     0.0270617631981826,
00403     0.0290689473405856,
00404     0.0311696653515848,
00405     0.0333658905863535,
00406     0.0356595546648444,
00407     0.0380525443366107,
00408     0.0405466983507029,
00409     0.0431438043376910,
00410     0.0458455957104702,
00411     0.0486537485902075,
00412     0.0515698787635492,
00413     0.0545955386770205,
00414     0.0577322144743916,
00415     0.0609813230826460,
00416     0.0643442093520723,
00417     0.0678221432558827,
00418     0.0714163171546603,
00419     0.0751278431308314,
00420     0.0789577503982528,
00421     0.0829069827918993,
00422     0.0869763963425241,
00423     0.0911667569410503,
00424     0.0954787380973307,
00425     0.0999129187977865,
00426     0.1044697814663005,
00427     0.1091497100326053,
00428     0.1139529881122542,
00429     0.1188797973021148,
00430     0.1239302155951605,
00431     0.1291042159181728,
00432     0.1344016647957880,
00433     0.1398223211441467,
00434     0.1453658351972151,
00435     0.1510317475686540,
00436     0.1568194884519144,
00437     0.1627283769610327,
00438     0.1687576206143887,
00439     0.1749063149634756,
00440     0.1811734433685097,
00441     0.1875578769224857,
00442     0.1940583745250518,
00443     0.2006735831073503,
00444     0.2074020380087318,
00445     0.2142421635060113,
00446     0.2211922734956977,
00447     0.2282505723293797,
00448     0.2354151558022098,
00449     0.2426840122941792,
00450     0.2500550240636293,
00451     0.2575259686921987,
00452     0.2650945206801527,
00453     0.2727582531907993,
00454     0.2805146399424422,
00455     0.2883610572460804,
00456     0.2962947861868143,
00457     0.3043130149466800,
00458     0.3124128412663888,
00459     0.3205912750432127,
00460     0.3288452410620226,
00461     0.3371715818562547,
00462     0.3455670606953511,
00463     0.3540283646950029,
00464     0.3625521080463003,
00465     0.3711348353596863,
00466     0.3797730251194006,
00467     0.3884630932439016,
00468     0.3972013967475546,
00469     0.4059842374986933,
00470     0.4148078660689724,
00471     0.4236684856687616,
00472     0.4325622561631607,
00473     0.4414852981630577,
00474     0.4504336971855032,
00475     0.4594035078775303,
00476     0.4683907582974173,
00477     0.4773914542472655,
00478     0.4864015836506502,
00479     0.4954171209689973,
00480     0.5044340316502417,
00481     0.5134482766032377,
00482     0.5224558166913167,
00483     0.5314526172383208,
00484     0.5404346525403849,
00485     0.5493979103766972,
00486     0.5583383965124314,
00487     0.5672521391870222,
00488     0.5761351935809411,
00489     0.5849836462541291,
00490     0.5937936195492526,
00491     0.6025612759529649,
00492     0.6112828224083939,
00493     0.6199545145721097,
00494     0.6285726610088878,
00495     0.6371336273176413,
00496     0.6456338401819751,
00497     0.6540697913388968,
00498     0.6624380414593221,
00499     0.6707352239341151,
00500     0.6789580485595255,
00501     0.6871033051160131,
00502     0.6951678668345944,
00503     0.7031486937449871,
00504     0.7110428359000029,
00505     0.7188474364707993,
00506     0.7265597347077880,
00507     0.7341770687621900,
00508     0.7416968783634273,
00509     0.7491167073477523,
00510     0.7564342060337386,
00511     0.7636471334404891,
00512     0.7707533593446514,
00513     0.7777508661725849,
00514     0.7846377507242818,
00515     0.7914122257259034,
00516     0.7980726212080798,
00517     0.8046173857073919,
00518     0.8110450872887550,
00519     0.8173544143867162,
00520     0.8235441764639875,
00521     0.8296133044858474,
00522     0.8355608512093652,
00523     0.8413859912867303,
00524     0.8470880211822968,
00525     0.8526663589032990,
00526     0.8581205435445334,
00527     0.8634502346476508,
00528     0.8686552113760616,
00529     0.8737353715068081,
00530     0.8786907302411250,
00531     0.8835214188357692,
00532     0.8882276830575707,
00533     0.8928098814640207,
00534     0.8972684835130879,
00535     0.9016040675058185,
00536     0.9058173183656508,
00537     0.9099090252587376,
00538     0.9138800790599416,
00539     0.9177314696695282,
00540     0.9214642831859411,
00541     0.9250796989403991,
00542     0.9285789863994010,
00543     0.9319635019415643,
00544     0.9352346855155568,
00545     0.9383940571861993,
00546     0.9414432135761304,
00547     0.9443838242107182,
00548     0.9472176277741918,
00549     0.9499464282852282,
00550     0.9525720912004834,
00551     0.9550965394547873,
00552     0.9575217494469370,
00553     0.9598497469802043,
00554     0.9620826031668507,
00555     0.9642224303060783,
00556     0.9662713777449607,
00557     0.9682316277319895,
00558     0.9701053912729269,
00559     0.9718949039986892,
00560     0.9736024220549734,
00561     0.9752302180233160,
00562     0.9767805768831932,
00563     0.9782557920246753,
00564     0.9796581613210076,
00565     0.9809899832703159,
00566     0.9822535532154261,
00567     0.9834511596505429,
00568     0.9845850806232530,
00569     0.9856575802399989,
00570     0.9866709052828243,
00571     0.9876272819448033,
00572     0.9885289126911557,
00573     0.9893779732525968,
00574     0.9901766097569984,
00575     0.9909269360049311,
00576     0.9916310308941294,
00577     0.9922909359973702,
00578     0.9929086532976777,
00579     0.9934861430841844,
00580     0.9940253220113651,
00581     0.9945280613237534,
00582     0.9949961852476154,
00583     0.9954314695504363,
00584     0.9958356402684387,
00585     0.9962103726017252,
00586     0.9965572899760172,
00587     0.9968779632693499,
00588     0.9971739102014799,
00589     0.9974465948831872,
00590     0.9976974275220812,
00591     0.9979277642809907,
00592     0.9981389072844972,
00593     0.9983321047686901,
00594     0.9985085513687731,
00595     0.9986693885387259,
00596     0.9988157050968516,
00597     0.9989485378906924,
00598     0.9990688725744943,
00599     0.9991776444921379,
00600     0.9992757396582338,
00601     0.9993639958299003,
00602     0.9994432036616085,
00603     0.9995141079353859,
00604     0.9995774088586188,
00605     0.9996337634216871,
00606     0.9996837868076957,
00607     0.9997280538466377,
00608     0.9997671005064359,
00609     0.9998014254134544,
00610     0.9998314913952471,
00611     0.9998577270385304,
00612     0.9998805282555989,
00613     0.9999002598526793,
00614     0.9999172570940037,
00615     0.9999318272557038,
00616     0.9999442511639580,
00617     0.9999547847121726,
00618     0.9999636603523446,
00619     0.9999710885561258,
00620     0.9999772592414866,
00621     0.9999823431612708,
00622     0.9999864932503106,
00623     0.9999898459281599,
00624     0.9999925223548691,
00625     0.9999946296375997,
00626     0.9999962619864214,
00627     0.9999975018180320,
00628     0.9999984208055542,
00629     0.9999990808746198,
00630     0.9999995351446231,
00631     0.9999998288155155
00632 };
00633 
00634 #ifdef __cplusplus
00635 }
00636 #endif
00637 #endif

Generated on Tue Dec 13 14:47:47 2005 for guliverkli by  doxygen 1.4.5