On Mon, Aug 5, 2013 at 12:55 PM, Diego Biurrun <[email protected]> wrote:
> From: Kostya Shishkov <[email protected]> > > Signed-off-by: Diego Biurrun <[email protected]> > --- > > Rebased on top of master. > > > > --- /dev/null > +++ b/libavcodec/metasound_data_lsp.c > @@ -0,0 +1,475 @@ > +/* > + * MetaSound decoder > + * Copyright (c) 2013 Konstantin Shishkov > + * > + * This file is part of Libav. > + * > + * Libav is free software; you can redistribute it and/or > + * modify it under the terms of the GNU Lesser General Public > + * License as published by the Free Software Foundation; either > + * version 2.1 of the License, or (at your option) any later version. > + * > + * Libav is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + * Lesser General Public License for more details. > + * > + * You should have received a copy of the GNU Lesser General Public > + * License along with Libav; if not, write to the Free Software > + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA > 02110-1301 USA > + */ > + > +#include <stdint.h> > + > +static const float lsp8[] = { > + 0.27020001, 0.50959998, 0.6437, 0.76719999, 0.96390003, 1.0696, 1.2625, > 1.5789, > + 1.9285001, 2.2383001, 2.5129001, 2.8469999, 0.17399999, 0.36770001, > 0.60820001, 0.8387, > + 1.1084, 1.3721, 1.6362, 1.8733, 2.0639999, 2.3441999, 2.6087, 2.8548, > + 0.15360001, 0.32789999, 0.51429999, 0.68589997, 0.9763, 1.2744, 1.5605, > 1.8566, > + 2.1006999, 2.345, 2.6075001, 2.885, 0.2075, 0.4533, 0.77090001, > 1.0377001, > + 1.2953, 1.5132, 1.7826, 2.0351, 2.2590001, 2.4995999, 2.6795001, 2.8748, > + 0.1393, 0.24529999, 0.37540001, 0.54530001, 0.81480002, 1.1289001, > 1.4389, 1.7592, > + 2.0353, 2.3215001, 2.5934, 2.8587999, 0.125, 0.36269999, 0.76130003, > 1.138, > + 1.4163001, 1.5565, 1.692, 1.813, 1.8678, 2.0427001, 2.4317999, 2.8543999, > + 0.2256, 0.42230001, 0.64520001, 0.8599, 1.0673, 1.3118, 1.5486, > 1.8365999, > + 2.0759001, 2.3025999, 2.5283999, 2.803, 0.2304, 0.4404, 0.68910003, > 0.89639997, > + 1.151, 1.4202, 1.6483001, 1.858, 2.1180999, 2.3685999, 2.6078, 2.9128001, > + 0.223, 0.38159999, 0.55199999, 0.60619998, 0.79089999, 1.0987999, 1.433, > 1.7846, > + 2.0713, 2.3457, 2.6048, 2.8708, 0.2447, 0.57999998, 0.82489997, > 0.99049997, > + 1.1720999, 1.399, 1.6694, 1.9064, 2.1307001, 2.4254999, 2.6815, 2.9117, > + 0.1974, 0.38119999, 0.58020002, 0.77590001, 0.92799997, 1.1547, > 1.4170001, 1.6368999, > + 1.8890001, 2.2586999, 2.5625999, 2.8239, 0.1209, 0.25099999, 0.48410001, > 0.80479997, > + 1.1197, 1.3563, 1.6073, 1.8926001, 2.135, 2.3669, 2.6291001, 2.8985, > + 0.2352, 0.43470001, 0.65820003, 0.81779999, 0.95480001, 1.1654, 1.4942, > 1.8812, > + 2.1703, 2.3778999, 2.6412001, 2.8871, 0.20909999, 0.4084, 0.67299998, > 0.91509998, > + 1.1259, 1.3262, 1.5937001, 1.8128999, 2.0237, 2.3317001, 2.5778, 2.862, > + 0.1167, 0.2406, 0.45199999, 0.72979999, 0.98479998, 1.2448, 1.5137, > 1.7874, > + 2.0280001, 2.302, 2.5913999, 2.8794, 0.3003, 0.4966, 0.65200001, > 0.85049999, > + 1.16, 1.3981, 1.5805, 1.8346, 2.0757, 2.3102, 2.576, 2.8499, > + 0.24510001, 0.4163, 0.59600002, 0.78049999, 0.95069999, 1.2438, 1.5587, > 1.8581001, > + 2.0734999, 2.3197999, 2.5704, 2.822, 0.31119999, 0.5517, 0.70319998, > 0.85280001, > + 1.1489, 1.4256999, 1.6848, 1.9388, 2.1577001, 2.4265001, 2.6677999, > 2.9051001, > + 0.22490001, 0.3897, 0.55589998, 0.74730003, 1.0158, 1.3581001, > 1.6914001, 1.993, > + 2.1842999, 2.3534, 2.5511999, 2.8065, 0.25999999, 0.45739999, 0.7349, > 0.9691, > + 1.1696, 1.3848, 1.6335, 1.9021, 2.1173999, 2.3480999, 2.5901999, 2.839, > + 0.2246, 0.33719999, 0.456, 0.52490002, 0.70560002, 1.0273, 1.381, 1.7132, > + 1.9819, 2.2574, 2.5409999, 2.8491001, 0.1419, 0.48339999, 0.88349998, > 1.1453, > + 1.2839, 1.4224, 1.5592999, 1.7877001, 2.1285, 2.4070001, 2.6043, 2.8511, > + 0.1886, 0.36770001, 0.56169999, 0.80989999, 1.1277, 1.3841, 1.5804, > 1.8135999, > + 2.0307, 2.2804999, 2.5399001, 2.8322001, 0.2351, 0.41510001, 0.66750002, > 0.87129998, > + 1.0464, 1.3292, 1.6586, 1.9281, 2.1355, 2.3494999, 2.6222, 2.8782001, > + 0.27000001, 0.44890001, 0.62059999, 0.71210003, 0.7737, 0.98479998, > 1.3658, 1.7433, > + 2.0139, 2.2242999, 2.4806001, 2.8175001, 0.24789999, 0.4425, 0.64899999, > 0.87449998, > + 1.1161, 1.3849, 1.6773, 1.9566, 2.1491001, 2.3624001, 2.5685, 2.8113999, > + 0.2035, 0.37009999, 0.55669999, 0.79530001, 1.0082, 1.2758, 1.5373, > 1.7822, > + 2.0174999, 2.2600999, 2.4758999, 2.7771001, 0.1856, 0.3461, 0.59979999, > 0.9041, > + 1.2383, 1.4612, 1.6667, 1.9305, 2.1617, 2.4107001, 2.6477001, 2.8656001, > + 0.21070001, 0.37149999, 0.52890003, 0.66509998, 0.84200001, 1.1168, > 1.4401, 1.723, > + 1.9901, 2.2686999, 2.5452001, 2.8655, 0.1218, 0.2999, 0.63480002, > 0.94819999, > + 1.2745, 1.5876, 1.9129, 2.2348001, 2.402, 2.4921999, 2.6350999, 2.8357, > + 0.1617, 0.34830001, 0.5869, 0.81629997, 1.0366, 1.2344, 1.4608999, > 1.7029001, > + 1.9476, 2.2337, 2.5258, 2.8441999, 0.25049999, 0.4894, 0.75099999, > 0.9152, > + 1.0845, 1.3657, 1.6528, 1.8346, 2.016, 2.2811, 2.5337999, 2.8136001, > + 0.094700001, 0.1158, 0.057799999, -0.0337, -0.0066, 0.0104, -0.0447, > -0.050500002, > + -0.077799998, -0.029300001, 0.0251, -0.0143, 0.034899998, -0.022700001, > -0.090899996, 0.052299999, > + 0.032499999, -0.041000001, -0.1045, -0.089900002, -0.00089999998, > 0.0074999998, -0.057500001, -0.085500002, > + -0.0129, 0.057500001, 0.059700001, 0.039099999, 0.037099998, -0.0184, > -0.0082999999, 0.0287, > + 0.0143, 0.0167, 0.012, -0.016799999, 0.045200001, 0.022299999, -0.0352, > 0.0119, > + -0.049600001, -0.096500002, -0.066100001, -0.0071999999, 0.1099, > 0.084299996, -0.0087000001, -0.047800001, > + -0.0128, -0.012, -0.00039999999, 0.073100001, 0.1047, 0.063000001, > 0.0196, -0.0103, > + -0.039900001, -0.0986, -0.091200002, -0.039000001, -0.024700001, > -0.069399998, -0.074900001, -0.0066, > + 0.022299999, 0.0634, 0.034299999, -0.0134, 0.072700001, 0.0241, 0.0066, > 0.043699998, > + 0.061000001, 0.036400001, 0.024800001, -0.035799999, -0.068599999, > -0.0104, 0.042599998, 0.0088, > + -0.0137, -0.0165, 0.067100003, 0.081500001, -0.086300001, -0.064400002, > -0.0088, 0.0023000001, > + 0.0482, 0.1174, 0.127, 0.0594, 0.0165, 0.094899997, 0.1098, 0.0137, > + 0.49509999, 0.49990001, 0.49579999, 0.49070001, 0.4984, 0.49649999, > 0.49579999, 0.49959999, > + 0.49869999, 0.49579999, 0.49860001, 0.49770001, 0.2841, 0.2186, > 0.14740001, 0.16869999, > + 0.2217, 0.26320001, 0.27059999, 0.2624, 0.21619999, 0.24529999, > 0.24600001, 0.25310001, > +}; > That's a pretty ugly way to format a table of floats. Besides that, patch is fine for me. Have you tried asking J-B Kempf if he have some extra samples you can try your decoder on? -Vitor _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
