Revision 9a32573b libavcodec/wmavoice_data.h

View differences:

libavcodec/wmavoice_data.h
3020 3020
    0, -0.0273968070, -0.0392575669, -0.0276240534
3021 3021
};
3022 3022

  
3023
/**
3024
 * LUT for 1.071575641632 * pow(1.0331663, n - 127)
3025
 */
3026
static const float wmavoice_energy_table[128] = {
3027
    0.0169982178, 0.0175619858, 0.0181444519, 0.0187462362,
3028
    0.0193679795, 0.0200103437, 0.0206740128, 0.0213596933,
3029
    0.0220681153, 0.0228000330, 0.0235562258, 0.0243374986,
3030
    0.0251446834, 0.0259786395, 0.0268402549, 0.0277304468,
3031
    0.0286501631, 0.0296003830, 0.0305821182, 0.0315964139,
3032
    0.0326443501, 0.0337270424, 0.0348456436, 0.0360013446,
3033
    0.0371953760, 0.0384290090, 0.0397035571, 0.0410203772,
3034
    0.0423808713, 0.0437864880, 0.0452387238, 0.0467391249,
3035
    0.0482892887, 0.0498908657, 0.0515455612, 0.0532551367,
3036
    0.0550214125, 0.0568462692, 0.0587316496, 0.0606795611,
3037
    0.0626920777, 0.0647713419, 0.0669195677, 0.0691390421,
3038
    0.0714321284, 0.0738012678, 0.0762489827, 0.0787778794,
3039
    0.0813906502, 0.0840900769, 0.0868790336, 0.0897604897,
3040
    0.0927375130, 0.0958132732, 0.0989910450, 0.1022742117,
3041
    0.1056662688, 0.1091708280, 0.1127916204, 0.1165325012,
3042
    0.1203974531, 0.1243905911, 0.1285161668, 0.1327785725,
3043
    0.1371823465, 0.1417321773, 0.1464329093, 0.1512895470,
3044
    0.1563072616, 0.1614913951, 0.1668474671, 0.1723811803,
3045
    0.1780984262, 0.1840052921, 0.1901080668, 0.1964132480,
3046
    0.2029275487, 0.2096579046, 0.2166114816, 0.2237956830,
3047
    0.2312181577, 0.2388868085, 0.2468098001, 0.2549955679,
3048
    0.2634528274, 0.2721905830, 0.2812181375, 0.2905451026,
3049
    0.3001814086, 0.3101373153, 0.3204234225, 0.3310506819,
3050
    0.3420304081, 0.3533742912, 0.3650944090, 0.3772032397,
3051
    0.3897136755, 0.4026390362, 0.4159930832, 0.4297900346,
3052
    0.4440445799, 0.4587718956, 0.4739876619, 0.4897080789,
3053
    0.5059498840, 0.5227303696, 0.5400674019, 0.5579794393,
3054
    0.5764855528, 0.5956054456, 0.6153594745, 0.6357686714,
3055
    0.6568547659, 0.6786402082, 0.7011481929, 0.7244026842,
3056
    0.7484284410, 0.7732510432, 0.7988969192, 0.8253933741,
3057
    0.8527686184, 0.8810517982, 0.9102730265, 0.9404634147,
3058
    0.9716551065, 1.0038813113, 1.0371763400, 1.0715756416
3059
};
3060

  
3061
/**
3062
 * LUT for f(x,y) = pow((y + 6.9) / 64, 0.025 * (x + 1)).
3063
 */
3064
static const float wmavoice_denoise_power_table[12][64] = {
3065
    { 0.9458379339, 0.9490436287, 0.9518757236, 0.9544130754,
3066
      0.9567118717, 0.9588135761, 0.9607496688, 0.9625446194,
3067
      0.9642178285, 0.9657849396, 0.9672587526, 0.9686498743,
3068
      0.9699671937, 0.9712182343, 0.9724094211, 0.9735462842,
3069
      0.9746336187, 0.9756756090, 0.9766759291, 0.9776378218,
3070
      0.9785641645, 0.9794575217, 0.9803201890, 0.9811542296,
3071
      0.9819615045, 0.9827436985, 0.9835023412, 0.9842388263,
3072
      0.9849544265, 0.9856503078, 0.9863275406, 0.9869871101,
3073
      0.9876299254, 0.9882568267, 0.9888685922, 0.9894659445,
3074
      0.9900495551, 0.9906200497, 0.9911780119, 0.9917239872,
3075
      0.9922584859, 0.9927819864, 0.9932949377, 0.9937977618,
3076
      0.9942908555, 0.9947745929, 0.9952493267, 0.9957153901,
3077
      0.9961730980, 0.9966227482, 0.9970646231, 0.9974989903,
3078
      0.9979261037, 0.9983462046, 0.9987595223, 0.9991662752,
3079
      0.9995666709, 0.9999609077, 1.0003491745, 1.0007316515,
3080
      1.0011085110, 1.0014799178, 1.0018460292, 1.0022069960 },
3081
    { 0.8946093973, 0.9006838092, 0.9060673931, 0.9109043185,
3082
      0.9152976055, 0.9193234737, 0.9230399260, 0.9264921443,
3083
      0.9297160207, 0.9327405496, 0.9355894944, 0.9382825789,
3084
      0.9408363568, 0.9432648587, 0.9455800822, 0.9477923675,
3085
      0.9499106907, 0.9519428941, 0.9538958704, 0.9557757107,
3086
      0.9575878241, 0.9593370368, 0.9610276730, 0.9626636222,
3087
      0.9642483964, 0.9657851769, 0.9672768552, 0.9687260672,
3088
      0.9701352224, 0.9715065293, 0.9728420173, 0.9741435556,
3089
      0.9754128696, 0.9766515555, 0.9778610927, 0.9790428553,
3090
      0.9801981216, 0.9813280829, 0.9824338513, 0.9835164667,
3091
      0.9845769028, 0.9856160726, 0.9866348334, 0.9876339913,
3092
      0.9886143053, 0.9895764906, 0.9905212223, 0.9914491381,
3093
      0.9923608411, 0.9932569022, 0.9941378627, 0.9950042356,
3094
      0.9958565084, 0.9966951442, 0.9975205834, 0.9983332454,
3095
      0.9991335296, 0.9999218170, 1.0006984708, 1.0014638383,
3096
      1.0022182509, 1.0029620257, 1.0036954662, 1.0044188628 },
3097
    { 0.8461555040, 0.8547882305, 0.8624635555, 0.8693789920,
3098
      0.8756760853, 0.8814598273, 0.8868103032, 0.8917900284,
3099
      0.8964487626, 0.9008267754, 0.9049571273, 0.9088673021,
3100
      0.9125804007, 0.9161160306, 0.9194909803, 0.9227197376,
3101
      0.9258148939, 0.9287874629, 0.9316471355, 0.9344024839,
3102
      0.9370611291, 0.9396298766, 0.9421148300, 0.9445214846,
3103
      0.9468548060, 0.9491192967, 0.9513190517, 0.9534578074,
3104
      0.9555389816, 0.9575657096, 0.9595408742, 0.9614671327,
3105
      0.9633469396, 0.9651825670, 0.9669761222, 0.9687295635,
3106
      0.9704447142, 0.9721232742, 0.9737668316, 0.9753768718,
3107
      0.9769547868, 0.9785018824, 0.9800193854, 0.9815084500,
3108
      0.9829701633, 0.9844055505, 0.9858155796, 0.9872011653,
3109
      0.9885631734, 0.9899024236, 0.9912196934, 0.9925157203,
3110
      0.9937912053, 0.9950468143, 0.9962831814, 0.9975009102,
3111
      0.9987005760, 0.9998827277, 1.0010478892, 1.0021965608,
3112
      1.0033292209, 1.0044463270, 1.0055483173, 1.0066356112 },
3113
    { 0.8003259737, 0.8112313241, 0.8209581209, 0.8297466775,
3114
      0.8377697066, 0.8451556492, 0.8520027051, 0.8583876935,
3115
      0.8643718792, 0.8700049328, 0.8753277020, 0.8803741979,
3116
      0.8851730502, 0.8897485937, 0.8941216918, 0.8983103719,
3117
      0.9023303202, 0.9061952736, 0.9099173316, 0.9135072091,
3118
      0.9169744409, 0.9203275502, 0.9235741882, 0.9267212496,
3119
      0.9297749699, 0.9327410079, 0.9356245146, 0.9384301933,
3120
      0.9411623497, 0.9438249364, 0.9464215906, 0.9489556668,
3121
      0.9514302661, 0.9538482608, 0.9562123167, 0.9585249126,
3122
      0.9607883576, 0.9630048062, 0.9651762722, 0.9673046403,
3123
      0.9693916775, 0.9714390425, 0.9734482944, 0.9754209007,
3124
      0.9773582446, 0.9792616307, 0.9811322918, 0.9829713934,
3125
      0.9847800389, 0.9865592739, 0.9883100900, 0.9900334289,
3126
      0.9917301853, 0.9934012104, 0.9950473143, 0.9966692689,
3127
      0.9982678100, 0.9998436400, 1.0013974295, 1.0029298194,
3128
      1.0044414224, 1.0059328250, 1.0074045889, 1.0088572520 },
3129
    { 0.7569786654, 0.7698939195, 0.7814501054, 0.7919210783,
3130
      0.8015042240, 0.8103467104, 0.8185613167, 0.8262364557,
3131
      0.8334427763, 0.8402376615, 0.8466683811, 0.8527743561,
3132
      0.8585888194, 0.8641400582, 0.8694523567, 0.8745467247,
3133
      0.8794414652, 0.8841526254, 0.8886943552, 0.8930791981,
3134
      0.8973183276, 0.9014217415, 0.9053984227, 0.9092564737,
3135
      0.9130032283, 0.9166453478, 0.9201889007, 0.9236394320,
3136
      0.9270020224, 0.9302813390, 0.9334816797, 0.9366070112,
3137
      0.9396610028, 0.9426470554, 0.9455683275, 0.9484277579,
3138
      0.9512280860, 0.9539718690, 0.9566614986, 0.9592992147,
3139
      0.9618871182, 0.9644271823, 0.9669212630, 0.9693711079,
3140
      0.9717783651, 0.9741445900, 0.9764712529, 0.9787597445,
3141
      0.9810113822, 0.9832274148, 0.9854090274, 0.9875573457,
3142
      0.9896734398, 0.9917583281, 0.9938129803, 0.9958383209,
3143
      0.9978352315, 0.9998045539, 1.0017470919, 1.0036636145,
3144
      1.0055548568, 1.0074215229, 1.0092642871, 1.0110837959 },
3145
    { 0.7159791370, 0.7306629191, 0.7438433845, 0.7558198318,
3146
      0.7668086064, 0.7769714272, 0.7864325139, 0.7952894548,
3147
      0.8036203840, 0.8114888792, 0.8189474022, 0.8260397728,
3148
      0.8328029877, 0.8392685815, 0.8454636629, 0.8514117142,
3149
      0.8571332177, 0.8626461513, 0.8679663850, 0.8731080020,
3150
      0.8780835596, 0.8829043049, 0.8875803529, 0.8921208349,
3151
      0.8965340237, 0.9008274393, 0.9050079382, 0.9090817905,
3152
      0.9130547454, 0.9169320882, 0.9207186893, 0.9244190474,
3153
      0.9280373261, 0.9315773876, 0.9350428208, 0.9384369673,
3154
      0.9417629433, 0.9450236603, 0.9482218422, 0.9513600421,
3155
      0.9544406555, 0.9574659338, 0.9604379957, 0.9633588374,
3156
      0.9662303420, 0.9690542879, 0.9718323569, 0.9745661408,
3157
      0.9772571477, 0.9799068082, 0.9825164805, 0.9850874551,
3158
      0.9876209597, 0.9901181627, 0.9925801775, 0.9950080658,
3159
      0.9974028405, 0.9997654692, 1.0020968764, 1.0043979464,
3160
      1.0066695255, 1.0089124239, 1.0111274185, 1.0133152537 },
3161
    { 0.6772002277, 0.6934309881, 0.7080464599, 0.7213643301,
3162
      0.7336148970, 0.7449707526, 0.7555647772, 0.7655015856,
3163
      0.7748651015, 0.7837237382, 0.7921340426, 0.8001433220,
3164
      0.8077915768, 0.8151129499, 0.8221368310, 0.8288887107,
3165
      0.8353908496, 0.8416628090, 0.8477218755, 0.8535834053,
3166
      0.8592611049, 0.8647672624, 0.8701129393, 0.8753081305,
3167
      0.8803618988, 0.8852824894, 0.8900774261, 0.8947535945,
3168
      0.8993173131, 0.9037743949, 0.9081302004, 0.9123896841,
3169
      0.9165574352, 0.9206377129, 0.9246344779, 0.9285514202,
3170
      0.9323919830, 0.9361593853, 0.9398566405, 0.9434865742,
3171
      0.9470518396, 0.9505549317, 0.9539981992, 0.9573838564,
3172
      0.9607139933, 0.9639905847, 0.9672154989, 0.9703905051,
3173
      0.9735172803, 0.9765974162, 0.9796324243, 0.9826237418,
3174
      0.9855727362, 0.9884807098, 0.9913489039, 0.9941785028,
3175
      0.9969706369, 0.9997263861, 1.0024467831, 1.0051328157,
3176
      1.0077854297, 1.0104055314, 1.0129939892, 1.0155516364 },
3177
    { 0.6405216642, 0.6580962612, 0.6739722363, 0.6884795488,
3178
      0.7018580813, 0.7142880714, 0.7259086094, 0.7368294324,
3179
      0.7471387455, 0.7569085832, 0.7661985859, 0.7750587283,
3180
      0.7835313288, 0.7916525600, 0.7994535998, 0.8069615243,
3181
      0.8142000068, 0.8211898738, 0.8279495504, 0.8344954211,
3182
      0.8408421252, 0.8470027997, 0.8529892811, 0.8588122744,
3183
      0.8644814947, 0.8700057878, 0.8753932324, 0.8806512276,
3184
      0.8857865684, 0.8908055105, 0.8957138271, 0.9005168576,
3185
      0.9052195513, 0.9098265046, 0.9143419945, 0.9187700080,
3186
      0.9231142680, 0.9273782568, 0.9315652364, 0.9356782672,
3187
      0.9397202245, 0.9436938133, 0.9476015819, 0.9514459336,
3188
      0.9552291382, 0.9589533414, 0.9626205741, 0.9662327603,
3189
      0.9697917251, 0.9732992008, 0.9767568340, 0.9801661903,
3190
      0.9835287605, 0.9868459649, 0.9901191578, 0.9933496315,
3191
      0.9965386205, 0.9996873045, 1.0027968119, 1.0058682226,
3192
      1.0089025710, 1.0119008485, 1.0148640056, 1.0177929548 },
3193
    { 0.6058296875, 0.6245620637, 0.6415378101, 0.6570938835,
3194
      0.6714759586, 0.6848691001, 0.6974164561, 0.7092312055,
3195
      0.7204044988, 0.7310109103, 0.7411122884, 0.7507605397,
3196
      0.7599996842, 0.7688674015, 0.7773962122, 0.7856143935,
3197
      0.7935466990, 0.8012149303, 0.8086383963, 0.8158342858,
3198
      0.8228179717, 0.8296032631, 0.8362026133, 0.8426272954,
3199
      0.8488875492, 0.8549927056, 0.8609512936, 0.8667711307,
3200
      0.8724594015, 0.8780227256, 0.8834672161, 0.8887985309,
3201
      0.8940219180, 0.8991422543, 0.9041640810, 0.9090916337,
3202
      0.9139288704, 0.9186794948, 0.9233469789, 0.9279345818,
3203
      0.9324453671, 0.9368822185, 0.9412478543, 0.9455448393,
3204
      0.9497755970, 0.9539424198, 0.9580474782, 0.9620928299,
3205
      0.9660804271, 0.9700121244, 0.9738896845, 0.9777147851,
3206
      0.9814890239, 0.9852139236, 0.9888909370, 0.9925214512,
3207
      0.9961067913, 0.9996482244, 1.0031469629, 1.0066041676,
3208
      1.0100209506, 1.0133983785, 1.0167374742, 1.0200392198 },
3209
    { 0.5730166999, 0.5927366473, 0.6106642672, 0.6271389942,
3210
      0.6424090212, 0.6566617910, 0.6700426292, 0.6826666808,
3211
      0.6946268614, 0.7059993279, 0.7168473476, 0.7272241023,
3212
      0.7371747608, 0.7467380401, 0.7559474006, 0.7648319736,
3213
      0.7734172908, 0.7817258650, 0.7897776570, 0.7975904541,
3214
      0.8051801811, 0.8125611560, 0.8197463039, 0.8267473349,
3215
      0.8335748949, 0.8402386937, 0.8467476129, 0.8531098003,
3216
      0.8593327495, 0.8654233698, 0.8713880464, 0.8772326935,
3217
      0.8829628002, 0.8885834710, 0.8940994619, 0.8995152120,
3218
      0.9048348715, 0.9100623268, 0.9152012229, 0.9202549833,
3219
      0.9252268281, 0.9301197899, 0.9349367288, 0.9396803449,
3220
      0.9443531909, 0.9489576823, 0.9534961076, 0.9579706374,
3221
      0.9623833320, 0.9667361492, 0.9710309512, 0.9752695109,
3222
      0.9794535174, 0.9835845813, 0.9876642399, 0.9916939614,
3223
      0.9956751493, 0.9996091459, 1.0034972362, 1.0073406510,
3224
      1.0111405700, 1.0148981248, 1.0186144013, 1.0222904422 },
3225
    { 0.5419809316, 0.5625329386, 0.5812764912, 0.5985496562,
3226
      0.6146003370, 0.6296162401, 0.6437432340, 0.6570971404,
3227
      0.6697716039, 0.6818435182, 0.6933768712, 0.7044255353,
3228
      0.7150353340, 0.7252456009, 0.7350903742, 0.7445993259,
3229
      0.7537984929, 0.7627108595, 0.7713568269, 0.7797545943,
3230
      0.7879204712, 0.7958691361, 0.8036138516, 0.8111666444,
3231
      0.8185384580, 0.8257392814, 0.8327782597, 0.8396637886,
3232
      0.8464035955, 0.8530048108, 0.8594740287, 0.8658173611,
3233
      0.8720404845, 0.8781486812, 0.8841468762, 0.8900396688,
3234
      0.8958313620, 0.9015259874, 0.9071273286, 0.9126389413,
3235
      0.9180641715, 0.9234061727, 0.9286679198, 0.9338522236,
3236
      0.9389617420, 0.9439989920, 0.9489663591, 0.9538661069,
3237
      0.9587003852, 0.9634712378, 0.9681806094, 0.9728303524,
3238
      0.9774222323, 0.9819579336, 0.9864390644, 0.9908671615,
3239
      0.9952436943, 0.9995700689, 1.0038476318, 1.0080776733,
3240
      1.0122614305, 1.0164000906, 1.0204947932, 1.0245466331 },
3241
    { 0.5126261246, 0.5338683013, 0.5533029807, 0.5712636181,
3242
      0.5879954388, 0.6036845987, 0.6184760989, 0.6324853169,
3243
      0.6458057215, 0.6585142011, 0.6706748475, 0.6823417062,
3244
      0.6935608163, 0.7043717519, 0.7148088052, 0.7249019070,
3245
      0.7346773529, 0.7441583823, 0.7533656456, 0.7623175831,
3246
      0.7710307376, 0.7795200117, 0.7877988829, 0.7958795841,
3247
      0.8037732557, 0.8114900754, 0.8190393682, 0.8264297018,
3248
      0.8336689680, 0.8407644543, 0.8477229049, 0.8545505751,
3249
      0.8612532786, 0.8678364291, 0.8743050768, 0.8806639416,
3250
      0.8869174414, 0.8930697184, 0.8991246621, 0.9050859297,
3251
      0.9109569648, 0.9167410144, 0.9224411436, 0.9280602496,
3252
      0.9336010737, 0.9390662129, 0.9444581300, 0.9497791628,
3253
      0.9550315328, 0.9602173528, 0.9653386345, 0.9703972943,
3254
      0.9753951600, 0.9803339761, 0.9852154088, 0.9900410510,
3255
      0.9948124263, 0.9995309934, 1.0041981497, 1.0088152348,
3256
      1.0133835335, 1.0179042791, 1.0223786564, 1.0268078035 },
3257
};
3258

  
3023 3259
#endif /* AVCODEC_WMAVOICE_DATA_H */

Also available in: Unified diff