00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <stdint.h>
00023 #include "avcodec.h"
00024 #include "celp_filters.h"
00025 #include "ra144.h"
00026 #include "libavutil/common.h"
00027
00028 const int16_t ff_gain_val_tab[256][3] = {
00029 { 541, 956, 768}, { 877, 581, 568}, { 675,1574, 635}, {1248,1464, 668},
00030 {1246, 839, 1394}, {2560,1386, 991}, { 925, 687, 608}, {2208, 797, 1144},
00031 { 535, 832, 799}, { 762, 605, 1154}, { 832,1122, 1003}, {1180, 687, 1176},
00032 {1292, 901, 732}, {1656, 689, 896}, {1750,1248, 848}, {2284, 942, 1022},
00033 { 824,1472, 643}, { 517, 765, 512}, { 562,1816, 1522}, { 694,1826, 2700},
00034 { 704, 524, 672}, {1442, 757, 2232}, { 884, 551, 1266}, {2232,1007, 1692},
00035 { 932, 746, 777}, {1132, 822, 926}, {1226, 771, 611}, {2948,1342, 1008},
00036 {1302, 594, 1158}, {1602, 636, 1128}, {3408, 910, 1438}, {1996, 614, 575},
00037 { 665, 935, 628}, { 631,1192, 829}, { 644, 926, 1052}, { 879, 988, 1226},
00038 { 941,2768, 2772}, { 565,1344, 2304}, { 547, 628, 740}, { 639, 532, 1074},
00039 { 955,1208, 598}, {1124,1160, 900}, {1206, 899, 1242}, { 746, 533, 624},
00040 {1458,1028, 735}, {1706,1102, 692}, {1898,1018, 1004}, {2176, 988, 735},
00041 {1578, 782, 1642}, { 897, 516, 754}, {2068, 702, 1656}, {2344, 818, 1526},
00042 { 907, 652, 592}, {1056, 652, 642}, {2124,1416, 780}, {2664,1250, 727},
00043 {1894, 727, 1108}, {2196, 657, 981}, {4840, 920, 1704}, {4992,1238, 983},
00044 {2420, 909, 1094}, {2760, 935, 1032}, {2800, 612, 853}, {3068, 832, 574},
00045 { 523,1796, 923}, { 722,1916, 1382}, {1226,1542, 928}, { 758, 757, 584},
00046 { 512,1134, 577}, { 615,1276, 698}, { 574,2568, 2356}, { 993,2728, 3512},
00047 { 539, 890, 913}, { 694, 928, 1088}, { 805, 600, 1360}, {2160, 951, 3128},
00048 { 816, 950, 590}, { 955, 847, 811}, {1094, 883, 556}, {1304, 888, 604},
00049 { 863,1170, 855}, {1023, 997, 1032}, { 932,1228, 1280}, { 627, 564, 573},
00050 { 876, 900, 1448}, {1030, 857, 1792}, {1294, 953, 1758}, {1612, 854, 1714},
00051 {1090,1166, 631}, {1314,1202, 751}, {1480, 905, 795}, {1682,1016, 568},
00052 {1494,1178, 983}, { 878, 613, 526}, {1728,1446, 779}, {2136,1348, 774},
00053 { 950, 649, 939}, {1180, 703, 899}, {1236, 527, 1158}, {1450, 647, 972},
00054 {1282, 647, 707}, {1460, 663, 644}, {1614, 572, 578}, {3516,1222, 821},
00055 {2668, 729, 1682}, {3128, 585, 1502}, {3208, 733, 976}, {6800, 871, 1416},
00056 {3480, 743, 1408}, {3764, 899, 1170}, {3772, 632, 875}, {4092, 732, 638},
00057 {3112, 753, 2620}, {3372, 945, 1890}, {3768, 969, 2288}, {2016, 559, 854},
00058 {1736, 729, 787}, {1940, 686, 547}, {2140, 635, 674}, {4480,1272, 828},
00059 {3976, 592, 1666}, {4384, 621, 1388}, {4400, 801, 955}, {4656, 522, 646},
00060 {4848, 625, 1636}, {4984, 591, 874}, {5352, 535, 1001}, {11216,938, 1184},
00061 { 925,3280, 1476}, { 735,1580, 1088}, {1150,1576, 674}, { 655, 783, 528},
00062 { 527,2052, 1354}, { 782,1704, 1880}, { 578, 910, 1026}, { 692, 882, 1468},
00063 { 586, 683, 715}, { 739, 609, 717}, { 778, 773, 697}, { 922, 785, 813},
00064 { 766, 651, 984}, { 978, 596, 1030}, {1070, 757, 1080}, {1324, 687, 1178},
00065 {1108,2144, 979}, { 723, 982, 690}, { 936, 956, 527}, {1180,1002, 547},
00066 { 517,1306, 825}, { 832,1184, 974}, {1024, 957, 903}, {1262,1090, 906},
00067 {1028, 720, 649}, {1192, 679, 694}, {2468,1480, 979}, {2844,1370, 877},
00068 {1310, 835, 848}, {1508, 839, 698}, {1742,1030, 769}, {1910, 852, 573},
00069 {1280, 859, 1174}, {1584, 863, 1108}, {1686, 708, 1364}, {1942, 768, 1104},
00070 { 891, 536, 690}, {1016, 560, 663}, {2172, 870, 1348}, {2404, 999, 1170},
00071 {1890, 966, 889}, {2116, 912, 777}, {2296,1020, 714}, {4872,1844, 932},
00072 {2392, 778, 929}, {2604, 772, 744}, {2764, 957, 722}, {5832,1532, 984},
00073 {2188, 519, 1264}, {2332, 532, 922}, {5064, 995, 2412}, {2708, 571, 874},
00074 {2408, 545, 666}, {5016,1084, 875}, {5376, 983, 1196}, {5536, 979, 730},
00075 {5344, 634, 1744}, {5688, 706, 1348}, {5912, 977, 1190}, {6072, 905, 763},
00076 {6048, 582, 1526}, {11968,1013,1816}, {12864,937, 1900}, {12560,1086, 998},
00077 {1998, 684, 1884}, {2504, 633, 1992}, {1252, 567, 835}, {1478, 571, 973},
00078 {2620, 769, 1414}, {2808, 952, 1142}, {2908, 712, 1028}, {2976, 686, 741},
00079 {1462, 552, 714}, {3296, 991, 1452}, {1590, 615, 544}, {3480,1150, 824},
00080 {3212, 832, 923}, {3276, 839, 531}, {3548, 786, 852}, {3732, 764, 570},
00081 {5728, 906, 2616}, {6272, 804, 2252}, {3096, 535, 876}, {3228, 598, 649},
00082 {6536, 759, 1436}, {6648, 993, 846}, {6864, 567, 1210},{14016,1012, 1302},
00083 {3408, 548, 1098}, {7160,1008, 1742}, {7136,1000, 1182}, {7480,1032, 836},
00084 {7448, 612, 1552}, {7744, 614, 816}, {8384, 777, 1438}, {8784, 694, 786},
00085 { 882,1508, 1068}, { 597, 837, 766}, {1270, 954, 1408}, { 803, 550, 798},
00086 {1398,1308, 798}, {1848,1534, 738}, { 970, 675, 608}, {1264, 706, 684},
00087 {1716, 767, 1126}, {2108, 765, 1404}, {2236, 924, 1003}, {2472,1048, 611},
00088 { 999, 942, 963}, {1094, 857, 935}, {2936, 926, 1138}, {1934, 746, 551},
00089 {3336, 633, 1762}, {3764, 701, 1454}, {1890, 564, 636}, {4096,1126, 793},
00090 {3936, 556, 1140}, {3936, 540, 740}, {4216, 764, 874}, {8480,1328, 1014},
00091 {2184, 515, 1042}, {4432, 934, 1344}, {4784, 945, 1112}, {5016,1062, 733},
00092 {9216,1020, 2028}, {9968, 924, 1188}, {5424, 909, 1206}, {6512, 744, 1086}
00093 };
00094
00095 const uint8_t ff_gain_exp_tab[256] = {
00096 15, 15, 15, 15, 15, 16, 14, 15, 14, 14, 14, 14, 14, 14, 14, 14,
00097 14, 13, 14, 14, 13, 14, 13, 14, 13, 13, 13, 14, 13, 13, 14, 13,
00098 13, 13, 13, 13, 14, 13, 12, 12, 13, 13, 13, 12, 13, 13, 13, 13,
00099 13, 12, 13, 13, 12, 12, 13, 13, 13, 13, 14, 14, 13, 13, 13, 13,
00100 13, 13, 13, 12, 12, 12, 13, 13, 12, 12, 12, 13, 12, 12, 12, 12,
00101 12, 12, 12, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 12, 12,
00102 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 14, 13, 13, 13, 13,
00103 13, 13, 13, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14,
00104 13, 12, 12, 11, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
00105 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 11, 11, 11, 11,
00106 12, 12, 12, 12, 11, 11, 12, 12, 12, 12, 12, 13, 12, 12, 12, 13,
00107 12, 12, 13, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14,
00108 12, 12, 11, 11, 12, 12, 12, 12, 11, 12, 11, 12, 12, 12, 12, 12,
00109 13, 13, 12, 12, 13, 13, 13, 14, 12, 13, 13, 13, 13, 13, 13, 13,
00110 11, 10, 11, 10, 11, 11, 10, 10, 11, 11, 11, 11, 10, 9, 11, 10,
00111 12, 12, 11, 12, 12, 12, 12, 13, 11, 12, 12, 12, 13, 13, 12, 12
00112 };
00113
00114 const int8_t ff_cb1_vects[128][40]={
00115 {
00116 38, -4, 15, -4, 14, -13, 12, -11, -2, -6,
00117 -6, -11, -45, -16, -11, -13, -7, 6, -12, 4,
00118 -20, 3, -16, 12, -1, 12, 46, 24, 0, 33,
00119 -3, 9, -12, -12, -8, -7, 17, -6, 0, -2,
00120 }, {
00121 60, -16, 3, -22, 10, -32, 0, -28, -17, -18,
00122 -3, -25, -37, -23, -10, 3, 2, 3, 0, 3,
00123 -14, 0, -14, -1, 0, 2, 32, 9, -1, 25,
00124 7, 13, -5, 13, 8, 1, 2, 8, -10, 6,
00125 }, {
00126 27, -12, 28, -2, 6, -7, 15, 9, -11, 1,
00127 -13, -11, -40, 4, -29, -14, -19, -5, -23, -8,
00128 -30, -13, -17, 0, -14, 12, 34, 20, -2, 25,
00129 2, -16, -4, -12, 15, 16, 29, 7, 24, 10,
00130 }, {
00131 49, -24, 16, -20, 2, -26, 2, -7, -25, -10,
00132 -11, -25, -32, -3, -27, 2, -8, -8, -11, -9,
00133 -24, -17, -16, -14, -13, 2, 20, 5, -4, 17,
00134 14, -12, 3, 13, 33, 25, 14, 23, 15, 19,
00135 }, {
00136 46, -6, 21, 8, -2, -16, -5, -8, -11, 4,
00137 8, 15, -24, 4, -2, -26, -3, -16, -16, -14,
00138 -9, -2, -1, 4, 19, 7, 36, 17, 9, 13,
00139 0, 31, -5, -12, 7, -8, 11, -15, -13, -4,
00140 }, {
00141 68, -18, 9, -9, -6, -35, -18, -25, -26, -7,
00142 10, 1, -16, -3, -1, -9, 6, -19, -4, -15,
00143 -4, -6, 0, -8, 20, -2, 23, 2, 7, 5,
00144 12, 35, 1, 13, 24, 0, -3, 0, -22, 4,
00145 }, {
00146 35, -14, 34, 10, -10, -10, -1, 12, -20, 12,
00147 0, 15, -18, 24, -20, -27, -14, -28, -27, -27,
00148 -20, -19, -2, -8, 5, 7, 25, 13, 5, 5,
00149 6, 5, 2, -12, 31, 15, 23, -1, 12, 8,
00150 }, {
00151 57, -26, 22, -7, -14, -28, -14, -3, -35, 0,
00152 3, 1, -11, 16, -18, -10, -4, -31, -15, -28,
00153 -14, -23, -1, -21, 7, -2, 11, -1, 3, -1,
00154 18, 9, 10, 13, 49, 24, 8, 14, 2, 16,
00155 }, {
00156 25, 15, 22, 11, 18, 4, 15, -22, 8, -2,
00157 -17, -9, -48, -20, -30, -17, -16, 11, -1, 16,
00158 2, 10, -5, 26, -2, -4, 22, 0, 2, 10,
00159 -6, 13, -14, 10, -23, 0, 10, -2, 1, 0,
00160 }, {
00161 47, 3, 11, -6, 15, -13, 2, -38, -6, -13,
00162 -15, -22, -40, -28, -28, 0, -5, 8, 10, 15,
00163 7, 7, -4, 13, -1, -14, 9, -14, 0, 2,
00164 4, 18, -7, 36, -6, 8, -3, 13, -7, 8,
00165 }, {
00166 14, 7, 36, 13, 10, 10, 18, 0, 0, 5,
00167 -25, -8, -43, 0, -48, -18, -27, 0, -12, 3,
00168 -7, -6, -7, 13, -15, -5, 11, -3, 0, 2,
00169 0, -12, -6, 10, 0, 23, 22, 11, 26, 12,
00170 }, {
00171 36, -5, 24, -4, 7, -7, 6, -17, -14, -5,
00172 -22, -22, -35, -8, -46, -1, -17, -3, 0, 2,
00173 -2, -10, -5, 0, -14, -15, -2, -18, -2, -4,
00174 11, -7, 1, 36, 18, 32, 7, 27, 17, 20,
00175 }, {
00176 33, 13, 29, 24, 1, 1, -2, -18, 0, 9,
00177 -3, 17, -27, 0, -21, -30, -12, -11, -5, -2,
00178 12, 4, 9, 19, 18, -9, 13, -6, 11, -8,
00179 -2, 35, -8, 10, -7, -1, 4, -11, -10, -2,
00180 }, {
00181 55, 1, 17, 6, -1, -16, -15, -35, -15, -2,
00182 0, 4, -19, -8, -20, -13, -1, -14, 7, -3,
00183 18, 0, 10, 5, 19, -19, 0, -21, 8, -16,
00184 9, 39, 0, 36, 10, 7, -9, 4, -20, 5,
00185 }, {
00186 22, 5, 42, 26, -6, 8, 1, 2, -9, 17,
00187 -10, 18, -21, 19, -39, -31, -23, -23, -16, -15,
00188 2, -12, 7, 6, 5, -9, 1, -10, 7, -16,
00189 4, 9, 0, 10, 17, 22, 16, 2, 14, 9,
00190 }, {
00191 44, -6, 30, 8, -9, -10, -11, -14, -23, 5,
00192 -8, 4, -14, 12, -37, -14, -12, -26, -4, -16,
00193 8, -16, 9, -7, 6, -19, -12, -25, 5, -24,
00194 15, 13, 8, 36, 34, 31, 1, 18, 4, 18,
00195 }, {
00196 -3, -5, -9, -7, 15, -1, 5, 13, 2, 12,
00197 5, 2, -21, -23, -2, -16, 0, 5, -6, 13,
00198 -23, 3, -32, 10, -15, 8, 44, 28, 9, 37,
00199 -2, 13, -9, -15, -12, -27, -7, -12, 0, -11,
00200 }, {
00201 18, -17, -21, -25, 11, -19, -6, -3, -11, 0,
00202 7, -11, -13, -31, -1, 0, 9, 1, 5, 12,
00203 -18, 0, -31, -2, -13, -1, 30, 14, 7, 29,
00204 9, 18, -1, 10, 4, -18, -22, 3, -10, -2,
00205 }, {
00206 -13, -13, 3, -5, 7, 4, 9, 34, -5, 20,
00207 -2, 3, -16, -3, -20, -17, -11, -7, -17, 0,
00208 -34, -13, -33, -2, -28, 8, 32, 24, 5, 29,
00209 3, -12, 0, -15, 11, -3, 3, 2, 24, 1,
00210 }, {
00211 8, -25, -8, -23, 3, -13, -3, 17, -20, 8,
00212 0, -10, -8, -11, -18, 0, -1, -10, -5, 0,
00213 -28, -17, -32, -15, -26, -1, 19, 9, 3, 21,
00214 15, -7, 6, 9, 29, 5, -10, 17, 15, 9,
00215 }, {
00216 4, -6, -3, 5, -1, -4, -11, 16, -6, 23,
00217 19, 29, 0, -3, 6, -30, 3, -17, -10, -5,
00218 -13, -2, -17, 3, 5, 3, 35, 21, 17, 17,
00219 2, 35, -2, -15, 3, -28, -13, -21, -13, -13,
00220 }, {
00221 26, -19, -15, -12, -5, -22, -24, 0, -21, 12,
00222 21, 15, 8, -11, 7, -12, 14, -20, 2, -6,
00223 -7, -6, -16, -9, 6, -5, 21, 7, 15, 10,
00224 13, 39, 5, 10, 20, -19, -28, -5, -22, -5,
00225 }, {
00226 -5, -15, 9, 7, -9, 2, -8, 37, -14, 31,
00227 11, 29, 5, 16, -11, -30, -7, -29, -21, -18,
00228 -23, -19, -18, -9, -7, 3, 23, 17, 14, 9,
00229 8, 9, 6, -15, 27, -4, -2, -6, 12, -1,
00230 }, {
00231 16, -27, -2, -10, -13, -16, -20, 20, -29, 20,
00232 14, 16, 13, 8, -9, -13, 2, -33, -9, -19,
00233 -17, -23, -17, -22, -6, -6, 9, 2, 12, 2,
00234 20, 13, 13, 10, 45, 4, -16, 8, 2, 7,
00235 }, {
00236 -16, 14, -2, 8, 20, 17, 9, 2, 14, 16,
00237 -6, 5, -24, -28, -21, -20, -8, 9, 4, 25,
00238 -1, 11, -22, 24, -15, -8, 21, 5, 11, 14,
00239 -5, 18, -11, 7, -27, -20, -14, -7, 1, -9,
00240 }, {
00241 6, 2, -14, -9, 16, -1, -3, -14, 0, 5,
00242 -3, -8, -16, -36, -19, -3, 1, 6, 17, 24,
00243 4, 7, -21, 11, -14, -18, 7, -9, 9, 7,
00244 6, 22, -3, 33, -10, -11, -28, 7, -7, 0,
00245 }, {
00246 -26, 6, 11, 10, 12, 23, 12, 23, 5, 24,
00247 -13, 5, -19, -8, -38, -21, -20, -2, -6, 12,
00248 -11, -5, -23, 11, -29, -9, 9, 0, 7, 6,
00249 1, -7, -2, 7, -3, 3, -2, 6, 27, 3,
00250 }, {
00251 -4, -6, 0, -7, 8, 4, 0, 6, -9, 13,
00252 -11, -7, -11, -15, -37, -4, -9, -5, 5, 11,
00253 -5, -9, -22, -1, -27, -18, -4, -14, 5, 0,
00254 12, -3, 4, 32, 14, 12, -17, 22, 17, 11,
00255 }, {
00256 -8, 12, 3, 21, 3, 14, -8, 5, 4, 28,
00257 7, 32, -2, -8, -12, -34, -4, -12, 1, 6,
00258 9, 4, -7, 17, 4, -13, 11, -1, 19, -4,
00259 0, 39, -4, 7, -11, -21, -20, -16, -10, -11,
00260 }, {
00261 13, 0, -8, 3, 0, -4, -21, -11, -9, 16,
00262 10, 18, 5, -16, -10, -16, 5, -15, 13, 5,
00263 15, 1, -6, 4, 6, -23, -2, -16, 17, -12,
00264 10, 44, 3, 33, 6, -12, -34, -1, -20, -3,
00265 }, {
00266 -18, 4, 17, 23, -4, 20, -4, 26, -3, 36,
00267 0, 32, 2, 12, -29, -34, -16, -24, -10, -6,
00268 0, -12, -8, 4, -8, -13, 0, -6, 16, -12,
00269 5, 13, 3, 7, 13, 3, -8, -2, 14, 0,
00270 }, {
00271 3, -7, 5, 5, -8, 2, -17, 9, -18, 24,
00272 2, 19, 10, 4, -28, -17, -5, -28, 2, -7,
00273 4, -15, -7, -8, -6, -23, -13, -21, 14, -20,
00274 17, 18, 11, 33, 30, 11, -23, 13, 5, 9,
00275 }, {
00276 60, 10, 7, -1, 9, -8, 6, -13, 2, -15,
00277 -1, -10, -13, -11, 15, 0, 6, 9, -1, 0,
00278 -13, 1, -11, -3, -13, 21, 13, 26, -7, 31,
00279 -10, -7, -16, -33, -31, -10, 22, -8, 1, -2,
00280 }, {
00281 82, -1, -4, -19, 6, -27, -6, -29, -12, -26,
00282 1, -24, -5, -18, 17, 17, 17, 6, 10, 0,
00283 -7, -2, -9, -16, -12, 11, 0, 11, -9, 23,
00284 0, -3, -8, -8, -13, -1, 8, 7, -7, 6,
00285 }, {
00286 49, 2, 21, 0, 1, -2, 9, 8, -6, -6,
00287 -8, -10, -8, 9, -2, 0, -4, -2, -13, -12,
00288 -23, -15, -12, -16, -26, 21, 2, 21, -11, 23,
00289 -4, -33, -7, -33, -6, 13, 34, 5, 27, 10,
00290 }, {
00291 71, -10, 9, -17, -1, -20, -3, -8, -21, -18,
00292 -6, -24, 0, 1, 0, 16, 6, -5, 0, -13,
00293 -17, -19, -11, -29, -25, 11, -11, 6, -13, 15,
00294 7, -29, 0, -8, 11, 22, 20, 21, 17, 18,
00295 }, {
00296 67, 8, 14, 11, -7, -11, -11, -9, -7, -3,
00297 13, 16, 8, 9, 24, -12, 10, -13, -5, -17,
00298 -2, -4, 3, -10, 6, 17, 4, 19, 0, 11,
00299 -6, 13, -9, -33, -14, -10, 16, -17, -10, -4,
00300 }, {
00301 90, -3, 2, -6, -10, -29, -24, -26, -21, -15,
00302 15, 2, 16, 1, 25, 4, 21, -16, 6, -18,
00303 3, -8, 5, -24, 8, 7, -9, 4, -1, 3,
00304 5, 18, -1, -7, 2, -1, 2, -1, -19, 3,
00305 }, {
00306 57, 0, 27, 13, -14, -5, -7, 11, -15, 4,
00307 5, 16, 13, 29, 6, -13, 0, -25, -16, -31,
00308 -12, -22, 2, -23, -6, 16, -7, 14, -2, 3,
00309 0, -12, 0, -33, 9, 13, 28, -3, 14, 7,
00310 }, {
00311 79, -11, 15, -4, -18, -23, -20, -5, -30, -7,
00312 7, 2, 21, 21, 8, 3, 10, -28, -4, -31,
00313 -6, -25, 3, -37, -4, 7, -20, 0, -4, -4,
00314 11, -7, 6, -8, 27, 22, 14, 12, 5, 16,
00315 }, {
00316 47, 30, 15, 14, 14, 9, 9, -23, 13, -10,
00317 -12, -7, -16, -15, -3, -3, -1, 14, 9, 12,
00318 9, 8, 0, 10, -14, 4, -9, 2, -5, 8,
00319 -13, -3, -18, -10, -45, -3, 16, -4, 4, 0,
00320 }, {
00321 69, 17, 3, -3, 10, -8, -3, -40, -1, -21,
00322 -10, -21, -8, -23, -1, 13, 8, 11, 21, 11,
00323 15, 4, 0, -2, -13, -5, -23, -12, -7, 0,
00324 -1, 0, -10, 14, -28, 5, 1, 11, -5, 7,
00325 }, {
00326 36, 21, 28, 16, 6, 16, 12, -2, 4, -2,
00327 -20, -7, -11, 4, -20, -4, -12, 2, -1, 0,
00328 0, -8, -2, -2, -27, 4, -21, -2, -9, 0,
00329 -6, -29, -9, -10, -21, 21, 28, 10, 29, 11,
00330 }, {
00331 58, 9, 16, -1, 2, -2, 0, -19, -10, -13,
00332 -17, -21, -3, -3, -19, 12, -2, 0, 10, -1,
00333 5, -12, 0, -15, -26, -5, -34, -16, -11, -7,
00334 4, -25, -2, 14, -3, 29, 13, 25, 20, 20,
00335 }, {
00336 55, 28, 21, 27, -2, 7, -8, -20, 4, 1,
00337 1, 18, 5, 4, 5, -16, 2, -8, 5, -5,
00338 19, 2, 14, 3, 6, 0, -18, -4, 2, -11,
00339 -8, 18, -11, -10, -29, -3, 10, -13, -8, -3,
00340 }, {
00341 77, 16, 9, 9, -6, -11, -21, -37, -10, -10,
00342 4, 5, 13, -3, 7, 0, 13, -11, 17, -6,
00343 25, -1, 15, -9, 7, -9, -32, -19, 0, -18,
00344 2, 22, -3, 15, -12, 5, -4, 2, -17, 5,
00345 }, {
00346 44, 20, 34, 29, -10, 13, -4, 0, -4, 9,
00347 -5, 19, 10, 24, -11, -17, -8, -20, -5, -19,
00348 9, -14, 12, -9, -6, 0, -30, -9, 0, -19,
00349 -2, -7, -2, -10, -5, 20, 21, 1, 17, 9,
00350 }, {
00351 66, 8, 23, 11, -14, -5, -17, -16, -19, -2,
00352 -3, 5, 18, 17, -10, 0, 1, -23, 6, -20,
00353 15, -18, 14, -22, -5, -10, -44, -23, -2, -26,
00354 9, -3, 4, 14, 12, 29, 7, 16, 7, 18,
00355 }, {
00356 18, 9, -17, -4, 11, 3, 0, 11, 7, 4,
00357 10, 3, 10, -18, 24, -3, 14, 7, 4, 10,
00358 -16, 1, -27, -4, -27, 17, 12, 30, 0, 35,
00359 -9, -3, -12, -36, -35, -30, -2, -13, 2, -11,
00360 }, {
00361 40, -2, -29, -22, 7, -14, -12, -5, -7, -7,
00362 12, -9, 18, -26, 26, 14, 24, 4, 16, 9,
00363 -10, -2, -26, -18, -26, 7, -1, 15, -1, 27,
00364 2, 0, -4, -11, -17, -21, -16, 1, -7, -3,
00365 }, {
00366 8, 1, -3, -2, 3, 10, 3, 32, -1, 12,
00367 2, 4, 15, 1, 7, -3, 2, -4, -6, -3,
00368 -26, -15, -29, -17, -40, 17, 0, 26, -2, 27,
00369 -2, -29, -4, -36, -10, -6, 9, 0, 27, 0,
00370 }, {
00371 30, -11, -15, -20, 0, -8, -9, 15, -15, 0,
00372 5, -9, 23, -6, 8, 13, 13, -7, 5, -3,
00373 -20, -19, -27, -31, -39, 7, -13, 11, -4, 19,
00374 8, -25, 3, -11, 7, 2, -4, 16, 18, 9,
00375 }, {
00376 26, 7, -11, 8, -5, 1, -17, 14, -1, 15,
00377 24, 30, 32, 1, 33, -16, 18, -14, 0, -8,
00378 -6, -4, -12, -12, -6, 13, 2, 23, 8, 15,
00379 -4, 17, -5, -36, -18, -30, -8, -22, -10, -14,
00380 }, {
00381 48, -4, -23, -9, -9, -17, -30, -2, -16, 3,
00382 26, 16, 40, -6, 35, 1, 28, -17, 12, -9,
00383 0, -8, -11, -25, -5, 3, -10, 8, 6, 7,
00384 6, 22, 1, -11, -1, -21, -22, -7, -19, -5,
00385 }, {
00386 15, 0, 2, 10, -13, 7, -14, 35, -10, 23,
00387 16, 31, 37, 21, 16, -17, 6, -26, -10, -21,
00388 -16, -21, -13, -25, -19, 13, -8, 19, 5, 7,
00389 1, -8, 2, -36, 5, -6, 3, -8, 15, -1,
00390 }, {
00391 37, -12, -9, -7, -17, -11, -26, 18, -25, 12,
00392 19, 17, 45, 14, 17, 0, 17, -30, 1, -22,
00393 -10, -25, -12, -38, -18, 3, -22, 4, 3, 0,
00394 13, -3, 10, -11, 23, 2, -10, 7, 5, 7,
00395 }, {
00396 5, 29, -9, 11, 15, 22, 3, 0, 18, 8,
00397 -1, 6, 7, -23, 6, -6, 5, 12, 15, 21,
00398 5, 8, -17, 9, -28, 0, -11, 6, 2, 12,
00399 -11, 0, -14, -13, -49, -22, -8, -9, 4, -9,
00400 }, {
00401 27, 16, -21, -6, 12, 3, -9, -16, 3, -2,
00402 1, -7, 15, -31, 7, 10, 16, 9, 27, 21,
00403 11, 5, -16, -3, -26, -9, -24, -7, 0, 4,
00404 0, 4, -6, 11, -32, -14, -23, 6, -5, -1,
00405 }, {
00406 -4, 20, 3, 13, 8, 28, 6, 21, 10, 16,
00407 -8, 7, 12, -3, -11, -7, -5, 0, 4, 8,
00408 -4, -8, -18, -3, -41, 0, -22, 2, 0, 4,
00409 -5, -25, -6, -14, -25, 1, 2, 4, 29, 2,
00410 }, {
00411 17, 8, -8, -4, 4, 10, -6, 5, -4, 5,
00412 -6, -6, 20, -10, -9, 9, 4, -2, 16, 7,
00413 1, -12, -17, -16, -39, -9, -36, -12, -2, -3,
00414 6, -21, 1, 11, -7, 10, -11, 20, 20, 11,
00415 }, {
00416 13, 27, -3, 24, -1, 19, -14, 3, 9, 20,
00417 12, 33, 29, -3, 15, -20, 9, -9, 11, 3,
00418 16, 2, -2, 2, -7, -3, -20, 0, 10, -7,
00419 -7, 22, -7, -13, -33, -23, -14, -18, -7, -12,
00420 }, {
00421 35, 15, -15, 6, -4, 1, -27, -12, -5, 8,
00422 15, 19, 37, -11, 16, -2, 20, -12, 23, 2,
00423 22, -1, -1, -11, -5, -13, -34, -14, 8, -14,
00424 4, 26, 0, 11, -16, -14, -29, -2, -17, -3,
00425 }, {
00426 3, 19, 9, 26, -8, 26, -10, 24, 0, 28,
00427 5, 33, 34, 17, -2, -20, -1, -22, 0, -10,
00428 6, -14, -3, -10, -20, -4, -32, -4, 7, -15,
00429 0, -3, 0, -13, -9, 0, -3, -4, 17, 0,
00430 }, {
00431 25, 7, -2, 8, -12, 7, -23, 8, -13, 16,
00432 7, 20, 42, 9, 0, -3, 9, -25, 12, -10,
00433 12, -18, -2, -24, -19, -13, -46, -19, 5, -22,
00434 10, 0, 8, 11, 8, 9, -17, 11, 7, 8,
00435 }, {
00436 -25, -7, 2, -8, 12, -7, 23, -8, 13, -16,
00437 -7, -20, -42, -9, 0, 3, -9, 25, -12, 10,
00438 -12, 18, 2, 24, 19, 13, 46, 19, -5, 22,
00439 -10, 0, -8, -11, -8, -9, 17, -11, -7, -8,
00440 }, {
00441 -3, -19, -9, -26, 8, -26, 10, -24, 0, -28,
00442 -5, -33, -34, -17, 2, 20, 1, 22, 0, 10,
00443 -6, 14, 3, 10, 20, 4, 32, 4, -7, 15,
00444 0, 3, 0, 13, 9, 0, 3, 4, -17, 0,
00445 }, {
00446 -35, -15, 15, -6, 4, -1, 27, 12, 5, -8,
00447 -15, -19, -37, 11, -16, 2, -20, 12, -23, -2,
00448 -22, 1, 1, 11, 5, 13, 34, 14, -8, 14,
00449 -4, -26, 0, -11, 16, 14, 29, 2, 17, 3,
00450 }, {
00451 -13, -27, 3, -24, 1, -19, 14, -3, -9, -20,
00452 -12, -33, -29, 3, -15, 20, -9, 9, -11, -3,
00453 -16, -2, 2, -2, 7, 3, 20, 0, -10, 7,
00454 7, -22, 7, 13, 33, 23, 14, 18, 7, 12,
00455 }, {
00456 -17, -8, 8, 4, -4, -10, 6, -5, 4, -5,
00457 6, 6, -20, 10, 9, -9, -4, 2, -16, -7,
00458 -1, 12, 17, 16, 39, 9, 36, 12, 2, 3,
00459 -6, 21, -1, -11, 7, -10, 11, -20, -20, -11,
00460 }, {
00461 4, -20, -3, -13, -8, -28, -6, -21, -10, -16,
00462 8, -7, -12, 3, 11, 7, 5, 0, -4, -8,
00463 4, 8, 18, 3, 41, 0, 22, -2, 0, -4,
00464 5, 25, 6, 14, 25, -1, -2, -4, -29, -2,
00465 }, {
00466 -27, -16, 21, 6, -12, -3, 9, 16, -3, 2,
00467 -1, 7, -15, 31, -7, -10, -16, -9, -27, -21,
00468 -11, -5, 16, 3, 26, 9, 24, 7, 0, -4,
00469 0, -4, 6, -11, 32, 14, 23, -6, 5, 1,
00470 }, {
00471 -5, -29, 9, -11, -15, -22, -3, 0, -18, -8,
00472 1, -6, -7, 23, -6, 6, -5, -12, -15, -21,
00473 -5, -8, 17, -9, 28, 0, 11, -6, -2, -12,
00474 11, 0, 14, 13, 49, 22, 8, 9, -4, 9,
00475 }, {
00476 -37, 12, 9, 7, 17, 11, 26, -18, 25, -12,
00477 -19, -17, -45, -14, -17, 0, -17, 30, -1, 22,
00478 10, 25, 12, 38, 18, -3, 22, -4, -3, 0,
00479 -13, 3, -10, 11, -23, -2, 10, -7, -5, -7,
00480 }, {
00481 -15, 0, -2, -10, 13, -7, 14, -35, 10, -23,
00482 -16, -31, -37, -21, -16, 17, -6, 26, 10, 21,
00483 16, 21, 13, 25, 19, -13, 8, -19, -5, -7,
00484 -1, 8, -2, 36, -5, 6, -3, 8, -15, 1,
00485 }, {
00486 -48, 4, 23, 9, 9, 17, 30, 2, 16, -3,
00487 -26, -16, -40, 6, -35, -1, -28, 17, -12, 9,
00488 0, 8, 11, 25, 5, -3, 10, -8, -6, -7,
00489 -6, -22, -1, 11, 1, 21, 22, 7, 19, 5,
00490 }, {
00491 -26, -7, 11, -8, 5, -1, 17, -14, 1, -15,
00492 -24, -30, -32, -1, -33, 16, -18, 14, 0, 8,
00493 6, 4, 12, 12, 6, -13, -2, -23, -8, -15,
00494 4, -17, 5, 36, 18, 30, 8, 22, 10, 14,
00495 }, {
00496 -30, 11, 15, 20, 0, 8, 9, -15, 15, 0,
00497 -5, 9, -23, 6, -8, -13, -13, 7, -5, 3,
00498 20, 19, 27, 31, 39, -7, 13, -11, 4, -19,
00499 -8, 25, -3, 11, -7, -2, 4, -16, -18, -9,
00500 }, {
00501 -8, -1, 3, 2, -3, -10, -3, -32, 1, -12,
00502 -2, -4, -15, -1, -7, 3, -2, 4, 6, 3,
00503 26, 15, 29, 17, 40, -17, 0, -26, 2, -27,
00504 2, 29, 4, 36, 10, 6, -9, 0, -27, 0,
00505 }, {
00506 -40, 2, 29, 22, -7, 14, 12, 5, 7, 7,
00507 -12, 9, -18, 26, -26, -14, -24, -4, -16, -9,
00508 10, 2, 26, 18, 26, -7, 1, -15, 1, -27,
00509 -2, 0, 4, 11, 17, 21, 16, -1, 7, 3,
00510 }, {
00511 -18, -9, 17, 4, -11, -3, 0, -11, -7, -4,
00512 -10, -3, -10, 18, -24, 3, -14, -7, -4, -10,
00513 16, -1, 27, 4, 27, -17, -12, -30, 0, -35,
00514 9, 3, 12, 36, 35, 30, 2, 13, -2, 11,
00515 }, {
00516 -66, -8, -23, -11, 14, 5, 17, 16, 19, 2,
00517 3, -5, -18, -17, 10, 0, -1, 23, -6, 20,
00518 -15, 18, -14, 22, 5, 10, 44, 23, 2, 26,
00519 -9, 3, -4, -14, -12, -29, -7, -16, -7, -18,
00520 }, {
00521 -44, -20, -34, -29, 10, -13, 4, 0, 4, -9,
00522 5, -19, -10, -24, 11, 17, 8, 20, 5, 19,
00523 -9, 14, -12, 9, 6, 0, 30, 9, 0, 19,
00524 2, 7, 2, 10, 5, -20, -21, -1, -17, -9,
00525 }, {
00526 -77, -16, -9, -9, 6, 11, 21, 37, 10, 10,
00527 -4, -5, -13, 3, -7, 0, -13, 11, -17, 6,
00528 -25, 1, -15, 9, -7, 9, 32, 19, 0, 18,
00529 -2, -22, 3, -15, 12, -5, 4, -2, 17, -5,
00530 }, {
00531 -55, -28, -21, -27, 2, -7, 8, 20, -4, -1,
00532 -1, -18, -5, -4, -5, 16, -2, 8, -5, 5,
00533 -19, -2, -14, -3, -6, 0, 18, 4, -2, 11,
00534 8, -18, 11, 10, 29, 3, -10, 13, 8, 3,
00535 }, {
00536 -58, -9, -16, 1, -2, 2, 0, 19, 10, 13,
00537 17, 21, 3, 3, 19, -12, 2, 0, -10, 1,
00538 -5, 12, 0, 15, 26, 5, 34, 16, 11, 7,
00539 -4, 25, 2, -14, 3, -29, -13, -25, -20, -20,
00540 }, {
00541 -36, -21, -28, -16, -6, -16, -12, 2, -4, 2,
00542 20, 7, 11, -4, 20, 4, 12, -2, 1, 0,
00543 0, 8, 2, 2, 27, -4, 21, 2, 9, 0,
00544 6, 29, 9, 10, 21, -21, -28, -10, -29, -11,
00545 }, {
00546 -69, -17, -3, 3, -10, 8, 3, 40, 1, 21,
00547 10, 21, 8, 23, 1, -13, -8, -11, -21, -11,
00548 -15, -4, 0, 2, 13, 5, 23, 12, 7, 0,
00549 1, 0, 10, -14, 28, -5, -1, -11, 5, -7,
00550 }, {
00551 -47, -30, -15, -14, -14, -9, -9, 23, -13, 10,
00552 12, 7, 16, 15, 3, 3, 1, -14, -9, -12,
00553 -9, -8, 0, -10, 14, -4, 9, -2, 5, -8,
00554 13, 3, 18, 10, 45, 3, -16, 4, -4, 0,
00555 }, {
00556 -79, 11, -15, 4, 18, 23, 20, 5, 30, 7,
00557 -7, -2, -21, -21, -8, -3, -10, 28, 4, 31,
00558 6, 25, -3, 37, 4, -7, 20, 0, 4, 4,
00559 -11, 7, -6, 8, -27, -22, -14, -12, -5, -16,
00560 }, {
00561 -57, 0, -27, -13, 14, 5, 7, -11, 15, -4,
00562 -5, -16, -13, -29, -6, 13, 0, 25, 16, 31,
00563 12, 22, -2, 23, 6, -16, 7, -14, 2, -3,
00564 0, 12, 0, 33, -9, -13, -28, 3, -14, -7,
00565 }, {
00566 -90, 3, -2, 6, 10, 29, 24, 26, 21, 15,
00567 -15, -2, -16, -1, -25, -4, -21, 16, -6, 18,
00568 -3, 8, -5, 24, -8, -7, 9, -4, 1, -3,
00569 -5, -18, 1, 7, -2, 1, -2, 1, 19, -3,
00570 }, {
00571 -67, -8, -14, -11, 7, 11, 11, 9, 7, 3,
00572 -13, -16, -8, -9, -24, 12, -10, 13, 5, 17,
00573 2, 4, -3, 10, -6, -17, -4, -19, 0, -11,
00574 6, -13, 9, 33, 14, 10, -16, 17, 10, 4,
00575 }, {
00576 -71, 10, -9, 17, 1, 20, 3, 8, 21, 18,
00577 6, 24, 0, -1, 0, -16, -6, 5, 0, 13,
00578 17, 19, 11, 29, 25, -11, 11, -6, 13, -15,
00579 -7, 29, 0, 8, -11, -22, -20, -21, -17, -18,
00580 }, {
00581 -49, -2, -21, 0, -1, 2, -9, -8, 6, 6,
00582 8, 10, 8, -9, 2, 0, 4, 2, 13, 12,
00583 23, 15, 12, 16, 26, -21, -2, -21, 11, -23,
00584 4, 33, 7, 33, 6, -13, -34, -5, -27, -10,
00585 }, {
00586 -82, 1, 4, 19, -6, 27, 6, 29, 12, 26,
00587 -1, 24, 5, 18, -17, -17, -17, -6, -10, 0,
00588 7, 2, 9, 16, 12, -11, 0, -11, 9, -23,
00589 0, 3, 8, 8, 13, 1, -8, -7, 7, -6,
00590 }, {
00591 -60, -10, -7, 1, -9, 8, -6, 13, -2, 15,
00592 1, 10, 13, 11, -15, 0, -6, -9, 1, 0,
00593 13, -1, 11, 3, 13, -21, -13, -26, 7, -31,
00594 10, 7, 16, 33, 31, 10, -22, 8, -1, 2,
00595 }, {
00596 -3, 7, -5, -5, 8, -2, 17, -9, 18, -24,
00597 -2, -19, -10, -4, 28, 17, 5, 28, -2, 7,
00598 -4, 15, 7, 8, 6, 23, 13, 21, -14, 20,
00599 -17, -18, -11, -33, -30, -11, 23, -13, -5, -9,
00600 }, {
00601 18, -4, -17, -23, 4, -20, 4, -26, 3, -36,
00602 0, -32, -2, -12, 29, 34, 16, 24, 10, 6,
00603 0, 12, 8, -4, 8, 13, 0, 6, -16, 12,
00604 -5, -13, -3, -7, -13, -3, 8, 2, -14, 0,
00605 }, {
00606 -13, 0, 8, -3, 0, 4, 21, 11, 9, -16,
00607 -10, -18, -5, 16, 10, 16, -5, 15, -13, -5,
00608 -15, -1, 6, -4, -6, 23, 2, 16, -17, 12,
00609 -10, -44, -3, -33, -6, 12, 34, 1, 20, 3,
00610 }, {
00611 8, -12, -3, -21, -3, -14, 8, -5, -4, -28,
00612 -7, -32, 2, 8, 12, 34, 4, 12, -1, -6,
00613 -9, -4, 7, -17, -4, 13, -11, 1, -19, 4,
00614 0, -39, 4, -7, 11, 21, 20, 16, 10, 11,
00615 }, {
00616 4, 6, 0, 7, -8, -4, 0, -6, 9, -13,
00617 11, 7, 11, 15, 37, 4, 9, 5, -5, -11,
00618 5, 9, 22, 1, 27, 18, 4, 14, -5, 0,
00619 -12, 3, -4, -32, -14, -12, 17, -22, -17, -11,
00620 }, {
00621 26, -6, -11, -10, -12, -23, -12, -23, -5, -24,
00622 13, -5, 19, 8, 38, 21, 20, 2, 6, -12,
00623 11, 5, 23, -11, 29, 9, -9, 0, -7, -6,
00624 -1, 7, 2, -7, 3, -3, 2, -6, -27, -3,
00625 }, {
00626 -6, -2, 14, 9, -16, 1, 3, 14, 0, -5,
00627 3, 8, 16, 36, 19, 3, -1, -6, -17, -24,
00628 -4, -7, 21, -11, 14, 18, -7, 9, -9, -7,
00629 -6, -22, 3, -33, 10, 11, 28, -7, 7, 0,
00630 }, {
00631 16, -14, 2, -8, -20, -17, -9, -2, -14, -16,
00632 6, -5, 24, 28, 21, 20, 8, -9, -4, -25,
00633 1, -11, 22, -24, 15, 8, -21, -5, -11, -14,
00634 5, -18, 11, -7, 27, 20, 14, 7, -1, 9,
00635 }, {
00636 -16, 27, 2, 10, 13, 16, 20, -20, 29, -20,
00637 -14, -16, -13, -8, 9, 13, -2, 33, 9, 19,
00638 17, 23, 17, 22, 6, 6, -9, -2, -12, -2,
00639 -20, -13, -13, -10, -45, -4, 16, -8, -2, -7,
00640 }, {
00641 5, 15, -9, -7, 9, -2, 8, -37, 14, -31,
00642 -11, -29, -5, -16, 11, 30, 7, 29, 21, 18,
00643 23, 19, 18, 9, 7, -3, -23, -17, -14, -9,
00644 -8, -9, -6, 15, -27, 4, 2, 6, -12, 1,
00645 }, {
00646 -26, 19, 15, 12, 5, 22, 24, 0, 21, -12,
00647 -21, -15, -8, 11, -7, 12, -14, 20, -2, 6,
00648 7, 6, 16, 9, -6, 5, -21, -7, -15, -10,
00649 -13, -39, -5, -10, -20, 19, 28, 5, 22, 5,
00650 }, {
00651 -4, 6, 3, -5, 1, 4, 11, -16, 6, -23,
00652 -19, -29, 0, 3, -6, 30, -3, 17, 10, 5,
00653 13, 2, 17, -3, -5, -3, -35, -21, -17, -17,
00654 -2, -35, 2, 15, -3, 28, 13, 21, 13, 13,
00655 }, {
00656 -8, 25, 8, 23, -3, 13, 3, -17, 20, -8,
00657 0, 10, 8, 11, 18, 0, 1, 10, 5, 0,
00658 28, 17, 32, 15, 26, 1, -19, -9, -3, -21,
00659 -15, 7, -6, -9, -29, -5, 10, -17, -15, -9,
00660 }, {
00661 13, 13, -3, 5, -7, -4, -9, -34, 5, -20,
00662 2, -3, 16, 3, 20, 17, 11, 7, 17, 0,
00663 34, 13, 33, 2, 28, -8, -32, -24, -5, -29,
00664 -3, 12, 0, 15, -11, 3, -3, -2, -24, -1,
00665 }, {
00666 -18, 17, 21, 25, -11, 19, 6, 3, 11, 0,
00667 -7, 11, 13, 31, 1, 0, -9, -1, -5, -12,
00668 18, 0, 31, 2, 13, 1, -30, -14, -7, -29,
00669 -9, -18, 1, -10, -4, 18, 22, -3, 10, 2,
00670 }, {
00671 3, 5, 9, 7, -15, 1, -5, -13, -2, -12,
00672 -5, -2, 21, 23, 2, 16, 0, -5, 6, -13,
00673 23, -3, 32, -10, 15, -8, -44, -28, -9, -37,
00674 2, -13, 9, 15, 12, 27, 7, 12, 0, 11,
00675 }, {
00676 -44, 6, -30, -8, 9, 10, 11, 14, 23, -5,
00677 8, -4, 14, -12, 37, 14, 12, 26, 4, 16,
00678 -8, 16, -9, 7, -6, 19, 12, 25, -5, 24,
00679 -15, -13, -8, -36, -34, -31, -1, -18, -4, -18,
00680 }, {
00681 -22, -5, -42, -26, 6, -8, -1, -2, 9, -17,
00682 10, -18, 21, -19, 39, 31, 23, 23, 16, 15,
00683 -2, 12, -7, -6, -5, 9, -1, 10, -7, 16,
00684 -4, -9, 0, -10, -17, -22, -16, -2, -14, -9,
00685 }, {
00686 -55, -1, -17, -6, 1, 16, 15, 35, 15, 2,
00687 0, -4, 19, 8, 20, 13, 1, 14, -7, 3,
00688 -18, 0, -10, -5, -19, 19, 0, 21, -8, 16,
00689 -9, -39, 0, -36, -10, -7, 9, -4, 20, -5,
00690 }, {
00691 -33, -13, -29, -24, -1, -1, 2, 18, 0, -9,
00692 3, -17, 27, 0, 21, 30, 12, 11, 5, 2,
00693 -12, -4, -9, -19, -18, 9, -13, 6, -11, 8,
00694 2, -35, 8, -10, 7, 1, -4, 11, 10, 2,
00695 }, {
00696 -36, 5, -24, 4, -7, 7, -6, 17, 14, 5,
00697 22, 22, 35, 8, 46, 1, 17, 3, 0, -2,
00698 2, 10, 5, 0, 14, 15, 2, 18, 2, 4,
00699 -11, 7, -1, -36, -18, -32, -7, -27, -17, -20,
00700 }, {
00701 -14, -7, -36, -13, -10, -10, -18, 0, 0, -5,
00702 25, 8, 43, 0, 48, 18, 27, 0, 12, -3,
00703 7, 6, 7, -13, 15, 5, -11, 3, 0, -2,
00704 0, 12, 6, -10, 0, -23, -22, -11, -26, -12,
00705 }, {
00706 -47, -3, -11, 6, -15, 13, -2, 38, 6, 13,
00707 15, 22, 40, 28, 28, 0, 5, -8, -10, -15,
00708 -7, -7, 4, -13, 1, 14, -9, 14, 0, -2,
00709 -4, -18, 7, -36, 6, -8, 3, -13, 7, -8,
00710 }, {
00711 -25, -15, -22, -11, -18, -4, -15, 22, -8, 2,
00712 17, 9, 48, 20, 30, 17, 16, -11, 1, -16,
00713 -2, -10, 5, -26, 2, 4, -22, 0, -2, -10,
00714 6, -13, 14, -10, 23, 0, -10, 2, -1, 0,
00715 }, {
00716 -57, 26, -22, 7, 14, 28, 14, 3, 35, 0,
00717 -3, -1, 11, -16, 18, 10, 4, 31, 15, 28,
00718 14, 23, 1, 21, -7, 2, -11, 1, -3, 1,
00719 -18, -9, -10, -13, -49, -24, -8, -14, -2, -16,
00720 }, {
00721 -35, 14, -34, -10, 10, 10, 1, -12, 20, -12,
00722 0, -15, 18, -24, 20, 27, 14, 28, 27, 27,
00723 20, 19, 2, 8, -5, -7, -25, -13, -5, -5,
00724 -6, -5, -2, 12, -31, -15, -23, 1, -12, -8,
00725 }, {
00726 -68, 18, -9, 9, 6, 35, 18, 25, 26, 7,
00727 -10, -1, 16, 3, 1, 9, -6, 19, 4, 15,
00728 4, 6, 0, 8, -20, 2, -23, -2, -7, -5,
00729 -12, -35, -1, -13, -24, 0, 3, 0, 22, -4,
00730 }, {
00731 -46, 6, -21, -8, 2, 16, 5, 8, 11, -4,
00732 -8, -15, 24, -4, 2, 26, 3, 16, 16, 14,
00733 9, 2, 1, -4, -19, -7, -36, -17, -9, -13,
00734 0, -31, 5, 12, -7, 8, -11, 15, 13, 4,
00735 }, {
00736 -49, 24, -16, 20, -2, 26, -2, 7, 25, 10,
00737 11, 25, 32, 3, 27, -2, 8, 8, 11, 9,
00738 24, 17, 16, 14, 13, -2, -20, -5, 4, -17,
00739 -14, 12, -3, -13, -33, -25, -14, -23, -15, -19,
00740 }, {
00741 -27, 12, -28, 2, -6, 7, -15, -9, 11, -1,
00742 13, 11, 40, -4, 29, 14, 19, 5, 23, 8,
00743 30, 13, 17, 0, 14, -12, -34, -20, 2, -25,
00744 -2, 16, 4, 12, -15, -16, -29, -7, -24, -10,
00745 }, {
00746 -60, 16, -3, 22, -10, 32, 0, 28, 17, 18,
00747 3, 25, 37, 23, 10, -3, -2, -3, 0, -3,
00748 14, 0, 14, 1, 0, -2, -32, -9, 1, -25,
00749 -7, -13, 5, -13, -8, -1, -2, -8, 10, -6,
00750 }, {
00751 -38, 4, -15, 4, -14, 13, -12, 11, 2, 6,
00752 6, 11, 45, 16, 11, 13, 7, -6, 12, -4,
00753 20, -3, 16, -12, 1, -12, -46, -24, 0, -33,
00754 3, -9, 12, 12, 8, 7, -17, 6, 0, 2
00755 }
00756 };
00757
00758 const int8_t ff_cb2_vects[128][40]={
00759 {
00760 73, -32, -60, -15, -26, 59, 2, -33, 30, -10,
00761 -3, -17, 8, 30, -1, -26, -4, -22, 10, 16,
00762 -36, -5, -11, 56, 37, 6, -10, -5, -13, -3,
00763 6, -5, 11, 4, -19, -5, -16, 41, 24, 13,
00764 }, {
00765 4, -11, -37, 23, -5, 46, -2, -29, -5, -39,
00766 -21, -9, 0, 49, 12, -9, -16, -26, 22, 15,
00767 -45, -20, -5, 40, 22, 17, -26, 31, -14, 2,
00768 -14, 10, 30, 20, -27, -9, -39, 39, 18, 5,
00769 }, {
00770 34, -25, -48, -28, -11, 34, -2, -41, 9, -7,
00771 -17, 21, 20, 24, -17, -33, 0, -24, 10, 42,
00772 3, -5, 10, 42, 11, 8, -3, 3, 16, 9,
00773 22, -2, 0, -33, -10, 18, 7, 58, 10, 28,
00774 }, {
00775 -34, -4, -25, 10, 9, 21, -7, -36, -26, -36,
00776 -35, 28, 12, 42, -3, -16, -12, -28, 21, 42,
00777 -5, -21, 16, 26, -4, 19, -19, 39, 15, 15,
00778 1, 13, 19, -17, -17, 14, -15, 55, 4, 19,
00779 }, {
00780 28, -20, -51, -14, -6, 7, 0, -26, 27, -4,
00781 18, -40, -6, 16, -1, -15, 0, -55, -5, -16,
00782 -19, 14, -3, 49, 14, 1, -22, -30, -12, 0,
00783 24, 15, 9, -17, -45, -29, 4, 28, 51, 35,
00784 }, {
00785 -40, 0, -28, 24, 14, -5, -4, -21, -7, -33,
00786 0, -32, -15, 35, 12, 1, -11, -58, 5, -16,
00787 -28, 0, 1, 33, 0, 11, -39, 5, -14, 6,
00788 3, 31, 28, -1, -53, -33, -19, 25, 46, 26,
00789 }, {
00790 -11, -14, -39, -27, 9, -17, -4, -33, 6, 0,
00791 4, -1, 5, 10, -17, -22, 5, -57, -5, 9,
00792 20, 13, 18, 35, -11, 3, -16, -22, 17, 13,
00793 40, 19, -1, -55, -35, -5, 27, 44, 37, 49,
00794 }, {
00795 -80, 6, -16, 11, 30, -30, -9, -28, -28, -29,
00796 -13, 6, -2, 28, -3, -5, -7, -60, 5, 9,
00797 11, -1, 24, 19, -27, 13, -32, 13, 15, 19,
00798 19, 35, 17, -39, -43, -9, 4, 42, 32, 41,
00799 }, {
00800 78, -21, -43, 4, -38, 17, 17, -5, 55, 24,
00801 -15, -36, 14, 4, 24, -24, 12, 5, 17, 31,
00802 -54, -5, -2, 27, 43, -12, 2, 9, -9, -15,
00803 22, -3, 28, 21, -20, 3, 20, 28, 9, -5,
00804 }, {
00805 9, -1, -20, 43, -17, 3, 12, 0, 20, -4,
00806 -33, -29, 6, 22, 38, -7, 0, 1, 29, 30,
00807 -63, -21, 3, 11, 27, -1, -14, 45, -10, -9,
00808 1, 12, 47, 37, -28, 0, -2, 26, 4, -13,
00809 }, {
00810 39, -14, -30, -8, -22, -8, 12, -12, 34, 27,
00811 -29, 2, 26, -2, 8, -31, 16, 3, 17, 57,
00812 -14, -6, 19, 13, 16, -10, 8, 17, 20, -2,
00813 38, 0, 17, -16, -11, 27, 44, 45, -4, 8,
00814 }, {
00815 -29, 5, -7, 30, -1, -21, 7, -7, 0, 0,
00816 -47, 9, 18, 15, 22, -14, 4, 0, 28, 57,
00817 -23, -21, 25, -2, 1, 0, -7, 53, 19, 3,
00818 17, 15, 36, 0, -19, 24, 21, 43, -9, 0,
00819 }, {
00820 33, -10, -34, 5, -17, -35, 15, 1, 53, 30,
00821 6, -59, 0, -10, 24, -13, 17, -27, 1, -1,
00822 -37, 13, 4, 20, 20, -18, -10, -16, -8, -11,
00823 39, 18, 26, 0, -46, -20, 41, 15, 37, 15,
00824 }, {
00825 -35, 10, -11, 44, 3, -48, 10, 6, 17, 2,
00826 -11, -51, -8, 8, 38, 3, 4, -31, 12, -2,
00827 -46, -1, 10, 4, 5, -7, -26, 19, -10, -5,
00828 18, 34, 45, 15, -54, -24, 18, 13, 31, 7,
00829 }, {
00830 -5, -3, -21, -7, -2, -60, 10, -5, 32, 34,
00831 -7, -20, 11, -16, 8, -20, 21, -29, 1, 24,
00832 2, 13, 27, 6, -5, -15, -3, -8, 21, 1,
00833 55, 21, 15, -38, -37, 3, 65, 32, 23, 30,
00834 }, {
00835 -74, 17, 0, 31, 18, -73, 5, 0, -3, 5,
00836 -25, -12, 3, 1, 22, -3, 9, -33, 12, 24,
00837 -6, -2, 33, -9, -21, -5, -20, 27, 19, 7,
00838 34, 37, 34, -22, -44, 0, 41, 29, 17, 21,
00839 }, {
00840 76, -35, -31, -28, -49, 43, -40, 0, 29, -14,
00841 8, 5, 10, 18, -26, -46, 0, 7, 6, 3,
00842 -25, -7, -2, 40, 28, 14, 18, -3, -27, -28,
00843 -8, -45, -13, 34, -13, -27, -15, 31, 12, 3,
00844 }, {
00845 7, -15, -9, 9, -28, 29, -45, 5, -6, -43,
00846 -9, 12, 2, 36, -12, -30, -11, 3, 17, 3,
00847 -34, -22, 3, 24, 12, 24, 2, 32, -28, -22,
00848 -29, -29, 5, 50, -21, -31, -38, 29, 7, -5,
00849 }, {
00850 36, -29, -19, -41, -34, 18, -45, -6, 8, -10,
00851 -5, 43, 23, 11, -42, -53, 5, 5, 6, 30,
00852 14, -8, 20, 26, 1, 16, 25, 4, 3, -15,
00853 7, -41, -23, -3, -4, -3, 8, 48, -1, 17,
00854 }, {
00855 -32, -8, 3, -2, -13, 4, -50, -1, -27, -39,
00856 -23, 51, 15, 30, -27, -37, -7, 1, 17, 29,
00857 5, -23, 25, 10, -14, 26, 8, 41, 1, -9,
00858 -13, -26, -5, 12, -12, -7, -14, 45, -6, 9,
00859 }, {
00860 31, -24, -23, -27, -29, -9, -43, 8, 26, -7,
00861 30, -17, -4, 3, -26, -35, 5, -24, -10, -28,
00862 -9, 12, 5, 33, 5, 8, 5, -29, -26, -24,
00863 9, -23, -14, 12, -39, -52, 5, 18, 39, 24,
00864 }, {
00865 -37, -3, 0, 10, -7, -22, -48, 12, -8, -36,
00866 12, -9, -12, 22, -12, -19, -6, -28, 0, -29,
00867 -18, -3, 11, 17, -10, 18, -10, 7, -27, -18,
00868 -11, -7, 3, 28, -47, -55, -18, 15, 34, 16,
00869 }, {
00870 -8, -17, -10, -40, -13, -34, -47, 0, 5, -4,
00871 16, 21, 8, -2, -42, -43, 10, -26, -10, -2,
00872 31, 11, 27, 19, -21, 10, 12, -20, 3, -11,
00873 25, -20, -25, -25, -29, -28, 28, 34, 25, 38,
00874 }, {
00875 -77, 2, 11, -1, 7, -47, -52, 5, -29, -33,
00876 -1, 28, 0, 15, -28, -26, -2, -30, 0, -2,
00877 22, -4, 33, 3, -36, 21, -3, 15, 2, -5,
00878 4, -4, -6, -9, -37, -31, 5, 32, 20, 30,
00879 }, {
00880 81, -25, -14, -8, -61, 0, -25, 28, 54, 20,
00881 -3, -14, 17, -8, 0, -44, 16, 35, 13, 18,
00882 -43, -7, 6, 11, 33, -4, 30, 11, -22, -40,
00883 6, -43, 3, 50, -14, -18, 22, 18, -1, -16,
00884 }, {
00885 12, -4, 8, 29, -39, -12, -30, 33, 19, -8,
00886 -21, -6, 8, 9, 13, -28, 4, 31, 24, 18,
00887 -52, -23, 12, -4, 18, 5, 14, 47, -24, -34,
00888 -14, -27, 22, 66, -22, -22, -1, 16, -6, -24,
00889 }, {
00890 41, -18, -2, -21, -45, -24, -30, 21, 33, 24,
00891 -17, 24, 29, -15, -16, -51, 21, 33, 13, 45,
00892 -3, -8, 28, -2, 7, -2, 37, 19, 7, -27,
00893 22, -39, -7, 12, -5, 5, 45, 35, -15, -1,
00894 }, {
00895 -27, 1, 20, 17, -24, -38, -35, 26, -1, -4,
00896 -35, 32, 21, 3, -2, -35, 8, 29, 24, 44,
00897 -12, -24, 34, -18, -8, 7, 21, 55, 5, -21,
00898 2, -23, 11, 28, -13, 1, 22, 33, -21, -10,
00899 }, {
00900 36, -13, -5, -7, -40, -51, -28, 36, 52, 27,
00901 18, -36, 2, -22, 0, -33, 21, 2, -3, -13,
00902 -26, 11, 14, 4, 10, -10, 18, -14, -22, -36,
00903 24, -21, 1, 28, -40, -42, 42, 5, 25, 5,
00904 }, {
00905 -32, 6, 17, 31, -19, -65, -33, 41, 16, -1,
00906 0, -29, -6, -4, 13, -17, 9, -1, 8, -14,
00907 -35, -3, 19, -11, -4, 0, 1, 21, -23, -30,
00908 3, -5, 20, 44, -48, -46, 19, 3, 20, -3,
00909 }, {
00910 -3, -7, 6, -20, -25, -77, -32, 29, 31, 30,
00911 4, 2, 14, -29, -16, -40, 26, 0, -3, 12,
00912 13, 10, 36, -9, -15, -8, 24, -6, 7, -22,
00913 40, -17, -8, -9, -31, -18, 66, 22, 11, 19,
00914 }, {
00915 -72, 13, 29, 18, -4, -90, -37, 34, -4, 1,
00916 -13, 9, 6, -11, -2, -24, 13, -3, 7, 11,
00917 4, -4, 42, -25, -31, 1, 8, 29, 6, -17,
00918 19, -2, 10, 6, -38, -22, 42, 19, 6, 11,
00919 }, {
00920 116, -20, -68, -30, -28, 83, 28, -18, 32, -22,
00921 -13, -21, 5, 28, 5, -7, -24, -8, -22, 17,
00922 -23, 30, -25, 45, 15, -9, -11, -18, 22, -10,
00923 4, -2, 19, -12, 23, 3, -43, 2, 12, -4,
00924 }, {
00925 47, 0, -45, 7, -7, 69, 23, -13, -2, -51,
00926 -32, -14, -3, 47, 19, 8, -37, -11, -10, 16,
00927 -32, 15, -19, 29, 0, 1, -28, 18, 20, -4,
00928 -16, 13, 38, 3, 15, 0, -66, 0, 7, -13,
00929 }, {
00930 77, -13, -56, -43, -13, 57, 23, -26, 11, -19,
00931 -27, 16, 17, 22, -10, -15, -19, -10, -22, 43,
00932 16, 30, -2, 31, -11, -6, -5, -9, 52, 2,
00933 20, 0, 8, -50, 33, 27, -19, 19, -1, 9,
00934 }, {
00935 8, 6, -33, -4, 7, 44, 18, -21, -23, -48,
00936 -46, 24, 9, 40, 3, 1, -32, -13, -11, 43,
00937 7, 14, 3, 15, -26, 3, -21, 26, 50, 8,
00938 0, 16, 27, -34, 25, 23, -43, 17, -6, 1,
00939 }, {
00940 71, -9, -59, -29, -8, 30, 26, -11, 30, -16,
00941 8, -44, -9, 14, 5, 2, -19, -40, -38, -15,
00942 -7, 50, -17, 38, -7, -14, -24, -43, 22, -6,
00943 22, 19, 17, -34, -2, -20, -23, -10, 39, 16,
00944 }, {
00945 2, 11, -36, 9, 13, 17, 21, -6, -5, -45,
00946 -10, -36, -18, 33, 19, 19, -31, -44, -27, -15,
00947 -16, 34, -11, 22, -22, -4, -40, -7, 21, 0,
00948 1, 35, 36, -18, -10, -24, -46, -12, 34, 8,
00949 }, {
00950 32, -2, -47, -42, 7, 5, 21, -18, 9, -12,
00951 -5, -5, 2, 8, -10, -4, -14, -42, -38, 10,
00952 33, 49, 5, 24, -33, -12, -17, -35, 52, 6,
00953 38, 22, 7, -72, 7, 3, 0, 6, 25, 30,
00954 }, {
00955 -36, 18, -24, -3, 28, -7, 16, -13, -26, -41,
00956 -24, 1, -5, 26, 3, 12, -27, -46, -27, 10,
00957 24, 34, 10, 8, -49, -2, -34, 0, 51, 12,
00958 17, 38, 25, -56, 0, 0, -22, 3, 20, 22,
00959 }, {
00960 121, -9, -50, -10, -40, 40, 43, 9, 58, 12,
00961 -25, -41, 11, 2, 31, -5, -8, 19, -15, 32,
00962 -41, 30, -16, 16, 20, -28, 0, -3, 26, -22,
00963 19, 0, 36, 4, 22, 12, -6, -9, -1, -24,
00964 }, {
00965 52, 10, -27, 27, -18, 26, 38, 14, 23, -16,
00966 -44, -33, 3, 20, 45, 10, -20, 15, -3, 31,
00967 -50, 14, -10, 0, 5, -17, -15, 32, 24, -16,
00968 -1, 15, 55, 20, 14, 8, -29, -12, -7, -32,
00969 }, {
00970 82, -3, -38, -23, -24, 15, 38, 2, 37, 15,
00971 -39, -2, 23, -4, 15, -12, -3, 17, -15, 58,
00972 -1, 29, 6, 2, -5, -26, 7, 4, 56, -9,
00973 35, 3, 25, -33, 32, 36, 17, 7, -15, -9,
00974 }, {
00975 13, 17, -15, 15, -3, 1, 33, 7, 1, -12,
00976 -58, 5, 15, 13, 29, 3, -16, 13, -4, 57,
00977 -10, 13, 11, -13, -21, -15, -9, 40, 55, -3,
00978 14, 19, 44, -17, 24, 32, -5, 4, -21, -18,
00979 }, {
00980 76, 1, -41, -9, -19, -12, 41, 17, 55, 18,
00981 -3, -63, -3, -12, 30, 5, -3, -12, -31, 0,
00982 -24, 49, -8, 9, -1, -33, -12, -29, 27, -18,
00983 37, 21, 34, -17, -3, -11, 14, -23, 25, -2,
00984 }, {
00985 7, 22, -18, 29, 1, -25, 36, 21, 20, -9,
00986 -22, -56, -11, 6, 45, 21, -15, -16, -20, -1,
00987 -33, 34, -2, -6, -17, -23, -28, 6, 25, -12,
00988 16, 37, 53, -1, -11, -15, -8, -25, 20, -11,
00989 }, {
00990 37, 8, -29, -22, -4, -37, 36, 9, 34, 22,
00991 -17, -24, 8, -18, 15, -2, 1, -14, -31, 25,
00992 15, 48, 13, -4, -28, -31, -5, -21, 57, -4,
00993 53, 24, 23, -55, 6, 12, 37, -6, 11, 11,
00994 }, {
00995 -31, 28, -6, 16, 16, -50, 31, 14, 0, -6,
00996 -36, -17, 0, 0, 29, 14, -11, -18, -20, 25,
00997 6, 33, 19, -20, -43, -21, -21, 14, 55, 0,
00998 32, 40, 42, -39, -1, 8, 14, -8, 6, 3,
00999 }, {
01000 119, -24, -39, -44, -51, 66, -14, 15, 31, -26,
01001 -1, 0, 7, 16, -19, -28, -19, 22, -26, 4,
01002 -13, 28, -16, 29, 5, -1, 16, -16, 8, -35,
01003 -10, -42, -4, 17, 29, -19, -42, -7, 0, -15,
01004 }, {
01005 50, -3, -16, -5, -30, 53, -19, 20, -3, -55,
01006 -19, 8, 0, 34, -5, -11, -32, 18, -15, 4,
01007 -22, 13, -10, 13, -9, 8, 0, 19, 7, -29,
01008 -31, -26, 13, 33, 21, -22, -65, -9, -4, -23,
01009 }, {
01010 79, -17, -27, -56, -36, 41, -19, 8, 10, -22,
01011 -15, 39, 20, 9, -35, -35, -15, 20, -26, 31,
01012 26, 27, 6, 15, -20, 0, 23, -8, 38, -22,
01013 5, -38, -15, -20, 39, 4, -18, 9, -13, -1,
01014 }, {
01015 10, 3, -4, -18, -15, 27, -24, 13, -24, -51,
01016 -34, 47, 12, 28, -21, -19, -27, 16, -15, 30,
01017 17, 12, 12, 0, -36, 10, 7, 27, 37, -16,
01018 -15, -22, 3, -4, 31, 1, -42, 7, -18, -9,
01019 }, {
01020 74, -12, -30, -42, -30, 14, -16, 23, 29, -19,
01021 20, -21, -7, 1, -19, -17, -14, -10, -43, -27,
01022 3, 48, -8, 22, -16, -7, 4, -42, 9, -31,
01023 6, -20, -6, -4, 3, -43, -22, -20, 28, 5,
01024 }, {
01025 5, 7, -7, -4, -9, 0, -21, 28, -6, -48,
01026 2, -14, -15, 20, -5, 0, -27, -14, -32, -28,
01027 -5, 32, -2, 6, -32, 3, -12, -5, 8, -25,
01028 -14, -4, 12, 11, -4, -47, -45, -22, 22, -2,
01029 }, {
01030 34, -6, -18, -55, -15, -11, -21, 16, 8, -16,
01031 6, 16, 5, -4, -35, -24, -10, -12, -43, -1,
01032 43, 47, 14, 8, -43, -5, 10, -34, 39, -18,
01033 22, -16, -17, -42, 13, -19, 1, -3, 14, 20,
01034 }, {
01035 -34, 14, 4, -17, 5, -24, -26, 20, -27, -45,
01036 -12, 24, -2, 13, -21, -8, -22, -16, -32, -2,
01037 34, 31, 20, -7, -58, 5, -5, 2, 38, -12,
01038 2, -1, 1, -26, 5, -23, -21, -6, 8, 11,
01039 }, {
01040 124, -13, -21, -23, -62, 23, 0, 43, 57, 8,
01041 -13, -18, 14, -10, 6, -26, -3, 49, -19, 19,
01042 -31, 27, -7, 0, 11, -20, 29, -1, 12, -47,
01043 4, -39, 11, 34, 28, -9, -5, -19, -13, -34,
01044 }, {
01045 55, 6, 1, 14, -41, 10, -4, 48, 22, -20,
01046 -31, -10, 5, 7, 20, -9, -16, 45, -8, 19,
01047 -40, 12, -1, -15, -4, -10, 12, 34, 11, -41,
01048 -16, -24, 30, 49, 20, -13, -28, -22, -18, -43,
01049 }, {
01050 84, -6, -9, -36, -47, -1, -4, 36, 36, 12,
01051 -27, 20, 26, -17, -9, -33, 1, 47, -19, 46,
01052 9, 27, 15, -13, -15, -18, 35, 6, 42, -33,
01053 20, -36, 1, -4, 38, 14, 18, -2, -27, -20,
01054 }, {
01055 15, 13, 13, 1, -26, -14, -9, 41, 1, -16,
01056 -46, 27, 18, 1, 4, -16, -11, 43, -8, 45,
01057 0, 11, 21, -29, -30, -8, 19, 42, 41, -28,
01058 0, -20, 20, 11, 30, 10, -4, -5, -32, -28,
01059 }, {
01060 79, -2, -12, -22, -42, -28, -1, 51, 54, 15,
01061 8, -41, 0, -24, 6, -15, 1, 17, -36, -12,
01062 -14, 47, 0, -6, -11, -26, 16, -27, 13, -43,
01063 22, -18, 10, 12, 2, -34, 15, -33, 13, -13,
01064 }, {
01065 10, 18, 10, 15, -21, -41, -6, 56, 19, -13,
01066 -9, -33, -9, -6, 20, 1, -11, 13, -24, -13,
01067 -23, 32, 6, -22, -26, -15, 0, 8, 12, -37,
01068 1, -2, 28, 27, -5, -37, -7, -35, 8, -21,
01069 }, {
01070 39, 4, 0, -35, -27, -53, -6, 44, 33, 18,
01071 -5, -2, 11, -31, -9, -22, 6, 15, -36, 13,
01072 25, 46, 23, -20, -37, -24, 23, -19, 43, -29,
01073 38, -14, 0, -26, 12, -10, 38, -16, 0, 0,
01074 }, {
01075 -29, 25, 22, 2, -6, -67, -11, 49, -1, -10,
01076 -24, 5, 3, -13, 4, -5, -6, 11, -25, 12,
01077 16, 31, 28, -36, -53, -13, 6, 16, 42, -24,
01078 17, 1, 18, -10, 4, -13, 15, -18, -5, -7,
01079 }, {
01080 29, -25, -22, -2, 6, 67, 11, -49, 1, 10,
01081 24, -5, -3, 13, -4, 5, 6, -11, 25, -12,
01082 -16, -31, -28, 36, 53, 13, -6, -16, -42, 24,
01083 -17, -1, -18, 10, -4, 13, -15, 18, 5, 7,
01084 }, {
01085 -39, -4, 0, 35, 27, 53, 6, -44, -33, -18,
01086 5, 2, -11, 31, 9, 22, -6, -15, 36, -13,
01087 -25, -46, -23, 20, 37, 24, -23, 19, -43, 29,
01088 -38, 14, 0, 26, -12, 10, -38, 16, 0, 0,
01089 }, {
01090 -10, -18, -10, -15, 21, 41, 6, -56, -19, 13,
01091 9, 33, 9, 6, -20, -1, 11, -13, 24, 13,
01092 23, -32, -6, 22, 26, 15, 0, -8, -12, 37,
01093 -1, 2, -28, -27, 5, 37, 7, 35, -8, 21,
01094 }, {
01095 -79, 2, 12, 22, 42, 28, 1, -51, -54, -15,
01096 -8, 41, 0, 24, -6, 15, -1, -17, 36, 12,
01097 14, -47, 0, 6, 11, 26, -16, 27, -13, 43,
01098 -22, 18, -10, -12, -2, 34, -15, 33, -13, 13,
01099 }, {
01100 -15, -13, -13, -1, 26, 14, 9, -41, -1, 16,
01101 46, -27, -18, -1, -4, 16, 11, -43, 8, -45,
01102 0, -11, -21, 29, 30, 8, -19, -42, -41, 28,
01103 0, 20, -20, -11, -30, -10, 4, 5, 32, 28,
01104 }, {
01105 -84, 6, 9, 36, 47, 1, 4, -36, -36, -12,
01106 27, -20, -26, 17, 9, 33, -1, -47, 19, -46,
01107 -9, -27, -15, 13, 15, 18, -35, -6, -42, 33,
01108 -20, 36, -1, 4, -38, -14, -18, 2, 27, 20,
01109 }, {
01110 -55, -6, -1, -14, 41, -10, 4, -48, -22, 20,
01111 31, 10, -5, -7, -20, 9, 16, -45, 8, -19,
01112 40, -12, 1, 15, 4, 10, -12, -34, -11, 41,
01113 16, 24, -30, -49, -20, 13, 28, 22, 18, 43,
01114 }, {
01115 -124, 13, 21, 23, 62, -23, 0, -43, -57, -8,
01116 13, 18, -14, 10, -6, 26, 3, -49, 19, -19,
01117 31, -27, 7, 0, -11, 20, -29, 1, -12, 47,
01118 -4, 39, -11, -34, -28, 9, 5, 19, 13, 34,
01119 }, {
01120 34, -14, -4, 17, -5, 24, 26, -20, 27, 45,
01121 12, -24, 2, -13, 21, 8, 22, 16, 32, 2,
01122 -34, -31, -20, 7, 58, -5, 5, -2, -38, 12,
01123 -2, 1, -1, 26, -5, 23, 21, 6, -8, -11,
01124 }, {
01125 -34, 6, 18, 55, 15, 11, 21, -16, -8, 16,
01126 -6, -16, -5, 4, 35, 24, 10, 12, 43, 1,
01127 -43, -47, -14, -8, 43, 5, -10, 34, -39, 18,
01128 -22, 16, 17, 42, -13, 19, -1, 3, -14, -20,
01129 }, {
01130 -5, -7, 7, 4, 9, 0, 21, -28, 6, 48,
01131 -2, 14, 15, -20, 5, 0, 27, 14, 32, 28,
01132 5, -32, 2, -6, 32, -3, 12, 5, -8, 25,
01133 14, 4, -12, -11, 4, 47, 45, 22, -22, 2,
01134 }, {
01135 -74, 12, 30, 42, 30, -14, 16, -23, -29, 19,
01136 -20, 21, 7, -1, 19, 17, 14, 10, 43, 27,
01137 -3, -48, 8, -22, 16, 7, -4, 42, -9, 31,
01138 -6, 20, 6, 4, -3, 43, 22, 20, -28, -5,
01139 }, {
01140 -10, -3, 4, 18, 15, -27, 24, -13, 24, 51,
01141 34, -47, -12, -28, 21, 19, 27, -16, 15, -30,
01142 -17, -12, -12, 0, 36, -10, -7, -27, -37, 16,
01143 15, 22, -3, 4, -31, -1, 42, -7, 18, 9,
01144 }, {
01145 -79, 17, 27, 56, 36, -41, 19, -8, -10, 22,
01146 15, -39, -20, -9, 35, 35, 15, -20, 26, -31,
01147 -26, -27, -6, -15, 20, 0, -23, 8, -38, 22,
01148 -5, 38, 15, 20, -39, -4, 18, -9, 13, 1,
01149 }, {
01150 -50, 3, 16, 5, 30, -53, 19, -20, 3, 55,
01151 19, -8, 0, -34, 5, 11, 32, -18, 15, -4,
01152 22, -13, 10, -13, 9, -8, 0, -19, -7, 29,
01153 31, 26, -13, -33, -21, 22, 65, 9, 4, 23,
01154 }, {
01155 -119, 24, 39, 44, 51, -66, 14, -15, -31, 26,
01156 1, 0, -7, -16, 19, 28, 19, -22, 26, -4,
01157 13, -28, 16, -29, -5, 1, -16, 16, -8, 35,
01158 10, 42, 4, -17, -29, 19, 42, 7, 0, 15,
01159 }, {
01160 31, -28, 6, -16, -16, 50, -31, -14, 0, 6,
01161 36, 17, 0, 0, -29, -14, 11, 18, 20, -25,
01162 -6, -33, -19, 20, 43, 21, 21, -14, -55, 0,
01163 -32, -40, -42, 39, 1, -8, -14, 8, -6, -3,
01164 }, {
01165 -37, -8, 29, 22, 4, 37, -36, -9, -34, -22,
01166 17, 24, -8, 18, -15, 2, -1, 14, 31, -25,
01167 -15, -48, -13, 4, 28, 31, 5, 21, -57, 4,
01168 -53, -24, -23, 55, -6, -12, -37, 6, -11, -11,
01169 }, {
01170 -7, -22, 18, -29, -1, 25, -36, -21, -20, 9,
01171 22, 56, 11, -6, -45, -21, 15, 16, 20, 1,
01172 33, -34, 2, 6, 17, 23, 28, -6, -25, 12,
01173 -16, -37, -53, 1, 11, 15, 8, 25, -20, 11,
01174 }, {
01175 -76, -1, 41, 9, 19, 12, -41, -17, -55, -18,
01176 3, 63, 3, 12, -30, -5, 3, 12, 31, 0,
01177 24, -49, 8, -9, 1, 33, 12, 29, -27, 18,
01178 -37, -21, -34, 17, 3, 11, -14, 23, -25, 2,
01179 }, {
01180 -13, -17, 15, -15, 3, -1, -33, -7, -1, 12,
01181 58, -5, -15, -13, -29, -3, 16, -13, 4, -57,
01182 10, -13, -11, 13, 21, 15, 9, -40, -55, 3,
01183 -14, -19, -44, 17, -24, -32, 5, -4, 21, 18,
01184 }, {
01185 -82, 3, 38, 23, 24, -15, -38, -2, -37, -15,
01186 39, 2, -23, 4, -15, 12, 3, -17, 15, -58,
01187 1, -29, -6, -2, 5, 26, -7, -4, -56, 9,
01188 -35, -3, -25, 33, -32, -36, -17, -7, 15, 9,
01189 }, {
01190 -52, -10, 27, -27, 18, -26, -38, -14, -23, 16,
01191 44, 33, -3, -20, -45, -10, 20, -15, 3, -31,
01192 50, -14, 10, 0, -5, 17, 15, -32, -24, 16,
01193 1, -15, -55, -20, -14, -8, 29, 12, 7, 32,
01194 }, {
01195 -121, 9, 50, 10, 40, -40, -43, -9, -58, -12,
01196 25, 41, -11, -2, -31, 5, 8, -19, 15, -32,
01197 41, -30, 16, -16, -20, 28, 0, 3, -26, 22,
01198 -19, 0, -36, -4, -22, -12, 6, 9, 1, 24,
01199 }, {
01200 36, -18, 24, 3, -28, 7, -16, 13, 26, 41,
01201 24, -1, 5, -26, -3, -12, 27, 46, 27, -10,
01202 -24, -34, -10, -8, 49, 2, 34, 0, -51, -12,
01203 -17, -38, -25, 56, 0, 0, 22, -3, -20, -22,
01204 }, {
01205 -32, 2, 47, 42, -7, -5, -21, 18, -9, 12,
01206 5, 5, -2, -8, 10, 4, 14, 42, 38, -10,
01207 -33, -49, -5, -24, 33, 12, 17, 35, -52, -6,
01208 -38, -22, -7, 72, -7, -3, 0, -6, -25, -30,
01209 }, {
01210 -2, -11, 36, -9, -13, -17, -21, 6, 5, 45,
01211 10, 36, 18, -33, -19, -19, 31, 44, 27, 15,
01212 16, -34, 11, -22, 22, 4, 40, 7, -21, 0,
01213 -1, -35, -36, 18, 10, 24, 46, 12, -34, -8,
01214 }, {
01215 -71, 9, 59, 29, 8, -30, -26, 11, -30, 16,
01216 -8, 44, 9, -14, -5, -2, 19, 40, 38, 15,
01217 7, -50, 17, -38, 7, 14, 24, 43, -22, 6,
01218 -22, -19, -17, 34, 2, 20, 23, 10, -39, -16,
01219 }, {
01220 -8, -6, 33, 4, -7, -44, -18, 21, 23, 48,
01221 46, -24, -9, -40, -3, -1, 32, 13, 11, -43,
01222 -7, -14, -3, -15, 26, -3, 21, -26, -50, -8,
01223 0, -16, -27, 34, -25, -23, 43, -17, 6, -1,
01224 }, {
01225 -77, 13, 56, 43, 13, -57, -23, 26, -11, 19,
01226 27, -16, -17, -22, 10, 15, 19, 10, 22, -43,
01227 -16, -30, 2, -31, 11, 6, 5, 9, -52, -2,
01228 -20, 0, -8, 50, -33, -27, 19, -19, 1, -9,
01229 }, {
01230 -47, 0, 45, -7, 7, -69, -23, 13, 2, 51,
01231 32, 14, 3, -47, -19, -8, 37, 11, 10, -16,
01232 32, -15, 19, -29, 0, -1, 28, -18, -20, 4,
01233 16, -13, -38, -3, -15, 0, 66, 0, -7, 13,
01234 }, {
01235 -116, 20, 68, 30, 28, -83, -28, 18, -32, 22,
01236 13, 21, -5, -28, -5, 7, 24, 8, 22, -17,
01237 23, -30, 25, -45, -15, 9, 11, 18, -22, 10,
01238 -4, 2, -19, 12, -23, -3, 43, -2, -12, 4,
01239 }, {
01240 72, -13, -29, -18, 4, 90, 37, -34, 4, -1,
01241 13, -9, -6, 11, 2, 24, -13, 3, -7, -11,
01242 -4, 4, -42, 25, 31, -1, -8, -29, -6, 17,
01243 -19, 2, -10, -6, 38, 22, -42, -19, -6, -11,
01244 }, {
01245 3, 7, -6, 20, 25, 77, 32, -29, -31, -30,
01246 -4, -2, -14, 29, 16, 40, -26, 0, 3, -12,
01247 -13, -10, -36, 9, 15, 8, -24, 6, -7, 22,
01248 -40, 17, 8, 9, 31, 18, -66, -22, -11, -19,
01249 }, {
01250 32, -6, -17, -31, 19, 65, 33, -41, -16, 1,
01251 0, 29, 6, 4, -13, 17, -9, 1, -8, 14,
01252 35, 3, -19, 11, 4, 0, -1, -21, 23, 30,
01253 -3, 5, -20, -44, 48, 46, -19, -3, -20, 3,
01254 }, {
01255 -36, 13, 5, 7, 40, 51, 28, -36, -52, -27,
01256 -18, 36, -2, 22, 0, 33, -21, -2, 3, 13,
01257 26, -11, -14, -4, -10, 10, -18, 14, 22, 36,
01258 -24, 21, -1, -28, 40, 42, -42, -5, -25, -5,
01259 }, {
01260 27, -1, -20, -17, 24, 38, 35, -26, 1, 4,
01261 35, -32, -21, -3, 2, 35, -8, -29, -24, -44,
01262 12, 24, -34, 18, 8, -7, -21, -55, -5, 21,
01263 -2, 23, -11, -28, 13, -1, -22, -33, 21, 10,
01264 }, {
01265 -41, 18, 2, 21, 45, 24, 30, -21, -33, -24,
01266 17, -24, -29, 15, 16, 51, -21, -33, -13, -45,
01267 3, 8, -28, 2, -7, 2, -37, -19, -7, 27,
01268 -22, 39, 7, -12, 5, -5, -45, -35, 15, 1,
01269 }, {
01270 -12, 4, -8, -29, 39, 12, 30, -33, -19, 8,
01271 21, 6, -8, -9, -13, 28, -4, -31, -24, -18,
01272 52, 23, -12, 4, -18, -5, -14, -47, 24, 34,
01273 14, 27, -22, -66, 22, 22, 1, -16, 6, 24,
01274 }, {
01275 -81, 25, 14, 8, 61, 0, 25, -28, -54, -20,
01276 3, 14, -17, 8, 0, 44, -16, -35, -13, -18,
01277 43, 7, -6, -11, -33, 4, -30, -11, 22, 40,
01278 -6, 43, -3, -50, 14, 18, -22, -18, 1, 16,
01279 }, {
01280 77, -2, -11, 1, -7, 47, 52, -5, 29, 33,
01281 1, -28, 0, -15, 28, 26, 2, 30, 0, 2,
01282 -22, 4, -33, -3, 36, -21, 3, -15, -2, 5,
01283 -4, 4, 6, 9, 37, 31, -5, -32, -20, -30,
01284 }, {
01285 8, 17, 10, 40, 13, 34, 47, 0, -5, 4,
01286 -16, -21, -8, 2, 42, 43, -10, 26, 10, 2,
01287 -31, -11, -27, -19, 21, -10, -12, 20, -3, 11,
01288 -25, 20, 25, 25, 29, 28, -28, -34, -25, -38,
01289 }, {
01290 37, 3, 0, -10, 7, 22, 48, -12, 8, 36,
01291 -12, 9, 12, -22, 12, 19, 6, 28, 0, 29,
01292 18, 3, -11, -17, 10, -18, 10, -7, 27, 18,
01293 11, 7, -3, -28, 47, 55, 18, -15, -34, -16,
01294 }, {
01295 -31, 24, 23, 27, 29, 9, 43, -8, -26, 7,
01296 -30, 17, 4, -3, 26, 35, -5, 24, 10, 28,
01297 9, -12, -5, -33, -5, -8, -5, 29, 26, 24,
01298 -9, 23, 14, -12, 39, 52, -5, -18, -39, -24,
01299 }, {
01300 32, 8, -3, 2, 13, -4, 50, 1, 27, 39,
01301 23, -51, -15, -30, 27, 37, 7, -1, -17, -29,
01302 -5, 23, -25, -10, 14, -26, -8, -41, -1, 9,
01303 13, 26, 5, -12, 12, 7, 14, -45, 6, -9,
01304 }, {
01305 -36, 29, 19, 41, 34, -18, 45, 6, -8, 10,
01306 5, -43, -23, -11, 42, 53, -5, -5, -6, -30,
01307 -14, 8, -20, -26, -1, -16, -25, -4, -3, 15,
01308 -7, 41, 23, 3, 4, 3, -8, -48, 1, -17,
01309 }, {
01310 -7, 15, 9, -9, 28, -29, 45, -5, 6, 43,
01311 9, -12, -2, -36, 12, 30, 11, -3, -17, -3,
01312 34, 22, -3, -24, -12, -24, -2, -32, 28, 22,
01313 29, 29, -5, -50, 21, 31, 38, -29, -7, 5,
01314 }, {
01315 -76, 35, 31, 28, 49, -43, 40, 0, -29, 14,
01316 -8, -5, -10, -18, 26, 46, 0, -7, -6, -3,
01317 25, 7, 2, -40, -28, -14, -18, 3, 27, 28,
01318 8, 45, 13, -34, 13, 27, 15, -31, -12, -3,
01319 }, {
01320 74, -17, 0, -31, -18, 73, -5, 0, 3, -5,
01321 25, 12, -3, -1, -22, 3, -9, 33, -12, -24,
01322 6, 2, -33, 9, 21, 5, 20, -27, -19, -7,
01323 -34, -37, -34, 22, 44, 0, -41, -29, -17, -21,
01324 }, {
01325 5, 3, 21, 7, 2, 60, -10, 5, -32, -34,
01326 7, 20, -11, 16, -8, 20, -21, 29, -1, -24,
01327 -2, -13, -27, -6, 5, 15, 3, 8, -21, -1,
01328 -55, -21, -15, 38, 37, -3, -65, -32, -23, -30,
01329 }, {
01330 35, -10, 11, -44, -3, 48, -10, -6, -17, -2,
01331 11, 51, 8, -8, -38, -3, -4, 31, -12, 2,
01332 46, 1, -10, -4, -5, 7, 26, -19, 10, 5,
01333 -18, -34, -45, -15, 54, 24, -18, -13, -31, -7,
01334 }, {
01335 -33, 10, 34, -5, 17, 35, -15, -1, -53, -30,
01336 -6, 59, 0, 10, -24, 13, -17, 27, -1, 1,
01337 37, -13, -4, -20, -20, 18, 10, 16, 8, 11,
01338 -39, -18, -26, 0, 46, 20, -41, -15, -37, -15,
01339 }, {
01340 29, -5, 7, -30, 1, 21, -7, 7, 0, 0,
01341 47, -9, -18, -15, -22, 14, -4, 0, -28, -57,
01342 23, 21, -25, 2, -1, 0, 7, -53, -19, -3,
01343 -17, -15, -36, 0, 19, -24, -21, -43, 9, 0,
01344 }, {
01345 -39, 14, 30, 8, 22, 8, -12, 12, -34, -27,
01346 29, -2, -26, 2, -8, 31, -16, -3, -17, -57,
01347 14, 6, -19, -13, -16, 10, -8, -17, -20, 2,
01348 -38, 0, -17, 16, 11, -27, -44, -45, 4, -8,
01349 }, {
01350 -9, 1, 20, -43, 17, -3, -12, 0, -20, 4,
01351 33, 29, -6, -22, -38, 7, 0, -1, -29, -30,
01352 63, 21, -3, -11, -27, 1, 14, -45, 10, 9,
01353 -1, -12, -47, -37, 28, 0, 2, -26, -4, 13,
01354 }, {
01355 -78, 21, 43, -4, 38, -17, -17, 5, -55, -24,
01356 15, 36, -14, -4, -24, 24, -12, -5, -17, -31,
01357 54, 5, 2, -27, -43, 12, -2, -9, 9, 15,
01358 -22, 3, -28, -21, 20, -3, -20, -28, -9, 5,
01359 }, {
01360 80, -6, 16, -11, -30, 30, 9, 28, 28, 29,
01361 13, -6, 2, -28, 3, 5, 7, 60, -5, -9,
01362 -11, 1, -24, -19, 27, -13, 32, -13, -15, -19,
01363 -19, -35, -17, 39, 43, 9, -4, -42, -32, -41,
01364 }, {
01365 11, 14, 39, 27, -9, 17, 4, 33, -6, 0,
01366 -4, 1, -5, -10, 17, 22, -5, 57, 5, -9,
01367 -20, -13, -18, -35, 11, -3, 16, 22, -17, -13,
01368 -40, -19, 1, 55, 35, 5, -27, -44, -37, -49,
01369 }, {
01370 40, 0, 28, -24, -14, 5, 4, 21, 7, 33,
01371 0, 32, 15, -35, -12, -1, 11, 58, -5, 16,
01372 28, 0, -1, -33, 0, -11, 39, -5, 14, -6,
01373 -3, -31, -28, 1, 53, 33, 19, -25, -46, -26,
01374 }, {
01375 -28, 20, 51, 14, 6, -7, 0, 26, -27, 4,
01376 -18, 40, 6, -16, 1, 15, 0, 55, 5, 16,
01377 19, -14, 3, -49, -14, -1, 22, 30, 12, 0,
01378 -24, -15, -9, 17, 45, 29, -4, -28, -51, -35,
01379 }, {
01380 34, 4, 25, -10, -9, -21, 7, 36, 26, 36,
01381 35, -28, -12, -42, 3, 16, 12, 28, -21, -42,
01382 5, 21, -16, -26, 4, -19, 19, -39, -15, -15,
01383 -1, -13, -19, 17, 17, -14, 15, -55, -4, -19,
01384 }, {
01385 -34, 25, 48, 28, 11, -34, 2, 41, -9, 7,
01386 17, -21, -20, -24, 17, 33, 0, 24, -10, -42,
01387 -3, 5, -10, -42, -11, -8, 3, -3, -16, -9,
01388 -22, 2, 0, 33, 10, -18, -7, -58, -10, -28,
01389 }, {
01390 -4, 11, 37, -23, 5, -46, 2, 29, 5, 39,
01391 21, 9, 0, -49, -12, 9, 16, 26, -22, -15,
01392 45, 20, 5, -40, -22, -17, 26, -31, 14, -2,
01393 14, -10, -30, -20, 27, 9, 39, -39, -18, -5,
01394 }, {
01395 -73, 32, 60, 15, 26, -59, -2, 33, -30, 10,
01396 3, 17, -8, -30, 1, 26, 4, 22, -10, -16,
01397 36, 5, 11, -56, -37, -6, 10, 5, 13, 3,
01398 -6, 5, -11, -4, 19, 5, 16, -41, -24, -13
01399 }
01400 };
01401
01402 const uint16_t ff_cb1_base[128]={
01403 19657, 18474, 18365, 17520, 21048, 18231, 18584, 16671,
01404 20363, 19069, 19409, 18430, 21844, 18753, 19613, 17411,
01405 20389, 21772, 20129, 21702, 20978, 20472, 19627, 19387,
01406 21477, 23134, 21841, 23919, 22089, 21519, 21134, 20852,
01407 19675, 17821, 19044, 17477, 19986, 16955, 18446, 16086,
01408 21138, 18899, 20952, 18929, 21452, 17833, 20104, 17159,
01409 19770, 20056, 20336, 20866, 19329, 18217, 18908, 18004,
01410 21556, 21948, 23079, 23889, 20922, 19544, 20984, 19781,
01411 19781, 20984, 19544, 20922, 23889, 23079, 21948, 21556,
01412 18004, 18908, 18217, 19329, 20866, 20336, 20056, 19770,
01413 17159, 20104, 17833, 21452, 18929, 20952, 18899, 21138,
01414 16086, 18446, 16955, 19986, 17477, 19044, 17821, 19675,
01415 20852, 21134, 21519, 22089, 23919, 21841, 23134, 21477,
01416 19387, 19627, 20472, 20978, 21702, 20129, 21772, 20389,
01417 17411, 19613, 18753, 21844, 18430, 19409, 19069, 20363,
01418 16671, 18584, 18231, 21048, 17520, 18365, 18474, 19657,
01419 };
01420
01421 const uint16_t ff_cb2_base[128]={
01422 12174, 13380, 13879, 13832, 13170, 13227, 13204, 12053,
01423 12410, 13988, 14348, 14631, 13100, 13415, 13224, 12268,
01424 11982, 13825, 13499, 14210, 13877, 14788, 13811, 13109,
01425 11449, 13275, 12833, 13717, 12728, 13696, 12759, 12405,
01426 10230, 12185, 11628, 13161, 11762, 13458, 12312, 12818,
01427 10443, 12773, 12011, 14020, 11818, 13825, 12453, 13226,
01428 10446, 13162, 11881, 14300, 12859, 16288, 13490, 15053,
01429 10155, 12820, 11519, 13973, 12041, 15081, 12635, 14198,
01430 14198, 12635, 15081, 12041, 13973, 11519, 12820, 10155,
01431 15053, 13490, 16288, 12859, 14300, 11881, 13162, 10446,
01432 13226, 12453, 13825, 11818, 14020, 12011, 12773, 10443,
01433 12818, 12312, 13458, 11762, 13161, 11628, 12185, 10230,
01434 12405, 12759, 13696, 12728, 13717, 12833, 13275, 11449,
01435 13109, 13811, 14788, 13877, 14210, 13499, 13825, 11982,
01436 12268, 13224, 13415, 13100, 14631, 14348, 13988, 12410,
01437 12053, 13204, 13227, 13170, 13832, 13879, 13380, 12174,
01438 };
01439
01440 const int16_t ff_energy_tab[32]={
01441 0, 16, 20, 25, 32, 41, 51, 65,
01442 81, 103, 129, 163, 205, 259, 326, 410,
01443 516, 650, 819, 1031, 1298, 1634, 2057, 2590,
01444 3261, 4105, 5168, 6507, 8192, 10313, 12983, 16345
01445 };
01446
01447 static const int16_t lpc_refl_cb1[64]={
01448 -4041, -4018, -3998, -3977, -3954, -3930, -3906, -3879,
01449 -3852, -3825, -3795, -3764, -3731, -3699, -3666, -3631,
01450 -3594, -3555, -3513, -3468, -3420, -3372, -3321, -3268,
01451 -3212, -3153, -3090, -3021, -2944, -2863, -2772, -2676,
01452 -2565, -2445, -2328, -2202, -2072, -1941, -1808, -1660,
01453 -1508, -1348, -1185, -994, -798, -600, -374, -110,
01454 152, 447, 720, 982, 1229, 1456, 1682, 1916,
01455 2130, 2353, 2595, 2853, 3118, 3363, 3588, 3814
01456 };
01457
01458 static const int16_t lpc_refl_cb2[32]={
01459 -3091, -2386, -1871, -1425, -1021, -649, -316, -20,
01460 267, 544, 810, 1065, 1305, 1534, 1756, 1970,
01461 2171, 2359, 2536, 2700, 2854, 2996, 3133, 3263,
01462 3386, 3499, 3603, 3701, 3789, 3870, 3947, 4020
01463 };
01464
01465 static const int16_t lpc_refl_cb3[32]={
01466 -3525, -3295, -3081, -2890, -2696, -2511, -2328, -2149,
01467 -1979, -1817, -1658, -1498, -1341, -1188, -1032, -876,
01468 -721, -561, -394, -228, -54, 119, 296, 484,
01469 683, 895, 1123, 1373, 1651, 1965, 2360, 2854
01470 };
01471
01472 static const int16_t lpc_refl_cb4[16]={
01473 -1845, -1057, -522, -77, 301, 647, 975, 1285,
01474 1582, 1873, 2163, 2452, 2735, 3017, 3299, 3569
01475 };
01476
01477 static const int16_t lpc_refl_cb5[16]={
01478 -2691, -2187, -1788, -1435, -1118, -837, -571, -316,
01479 -59, 201, 470, 759, 1077, 1457, 1908, 2495
01480 };
01481
01482 static const int16_t lpc_refl_cb6[8]={
01483 -1372, -474, 133, 632, 1100, 1571, 2075, 2672
01484 };
01485
01486 static const int16_t lpc_refl_cb7[8]={
01487 -2389, -1787, -1231, -717, -239, 234, 770, 1474
01488 };
01489
01490 static const int16_t lpc_refl_cb8[8]={
01491 -1569, -864, -296, 200, 670, 1151, 1709, 2385
01492 };
01493
01494 static const int16_t lpc_refl_cb9[8]={
01495 -2200, -1608, -1062, -569, -120, 338, 863, 1621
01496 };
01497
01498 static const int16_t lpc_refl_cb10[4]={
01499 -617, 190, 802, 1483
01500 };
01501
01502 const int16_t * const ff_lpc_refl_cb[10]={
01503 lpc_refl_cb1, lpc_refl_cb2, lpc_refl_cb3, lpc_refl_cb4, lpc_refl_cb5,
01504 lpc_refl_cb6, lpc_refl_cb7, lpc_refl_cb8, lpc_refl_cb9, lpc_refl_cb10
01505 };
01506
01507 static void ff_add_wav(int16_t *dest, int n, int skip_first, int *m, const int16_t *s1,
01508 const int8_t *s2, const int8_t *s3)
01509 {
01510 int i;
01511 int v[3];
01512
01513 v[0] = 0;
01514 for (i=!skip_first; i<3; i++)
01515 v[i] = (ff_gain_val_tab[n][i] * m[i]) >> ff_gain_exp_tab[n];
01516
01517 if (v[0]) {
01518 for (i=0; i < BLOCKSIZE; i++)
01519 dest[i] = (s1[i]*v[0] + s2[i]*v[1] + s3[i]*v[2]) >> 12;
01520 } else {
01521 for (i=0; i < BLOCKSIZE; i++)
01522 dest[i] = ( s2[i]*v[1] + s3[i]*v[2]) >> 12;
01523 }
01524 }
01525
01530 void ff_copy_and_dup(int16_t *target, const int16_t *source, int offset)
01531 {
01532 source += BUFFERSIZE - offset;
01533
01534 memcpy(target, source, FFMIN(BLOCKSIZE, offset)*sizeof(*target));
01535 if (offset < BLOCKSIZE)
01536 memcpy(target + offset, source, (BLOCKSIZE - offset)*sizeof(*target));
01537 }
01538
01545 int ff_eval_refl(int *refl, const int16_t *coefs, AVCodecContext *avctx)
01546 {
01547 int b, i, j;
01548 int buffer1[LPC_ORDER];
01549 int buffer2[LPC_ORDER];
01550 int *bp1 = buffer1;
01551 int *bp2 = buffer2;
01552
01553 for (i=0; i < LPC_ORDER; i++)
01554 buffer2[i] = coefs[i];
01555
01556 refl[LPC_ORDER-1] = bp2[LPC_ORDER-1];
01557
01558 if ((unsigned) bp2[LPC_ORDER-1] + 0x1000 > 0x1fff) {
01559 av_log(avctx, AV_LOG_ERROR, "Overflow. Broken sample?\n");
01560 return 1;
01561 }
01562
01563 for (i = LPC_ORDER-2; i >= 0; i--) {
01564 b = 0x1000-((bp2[i+1] * bp2[i+1]) >> 12);
01565
01566 if (!b)
01567 b = -2;
01568
01569 b = 0x1000000 / b;
01570 for (j=0; j <= i; j++)
01571 bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * b) >> 12;
01572
01573 if ((unsigned) bp1[i] + 0x1000 > 0x1fff)
01574 return 1;
01575
01576 refl[i] = bp1[i];
01577
01578 FFSWAP(int *, bp1, bp2);
01579 }
01580 return 0;
01581 }
01582
01587 void ff_eval_coefs(int *coefs, const int *refl)
01588 {
01589 int buffer[LPC_ORDER];
01590 int *b1 = buffer;
01591 int *b2 = coefs;
01592 int i, j;
01593
01594 for (i=0; i < LPC_ORDER; i++) {
01595 b1[i] = refl[i] << 4;
01596
01597 for (j=0; j < i; j++)
01598 b1[j] = ((refl[i] * b2[i-j-1]) >> 12) + b2[j];
01599
01600 FFSWAP(int *, b1, b2);
01601 }
01602
01603 for (i=0; i < LPC_ORDER; i++)
01604 coefs[i] >>= 4;
01605 }
01606
01607 void ff_int_to_int16(int16_t *out, const int *inp)
01608 {
01609 int i;
01610
01611 for (i = 0; i < LPC_ORDER; i++)
01612 *out++ = *inp++;
01613 }
01614
01619 int ff_t_sqrt(unsigned int x)
01620 {
01621 int s = 2;
01622 while (x > 0xfff) {
01623 s++;
01624 x >>= 2;
01625 }
01626
01627 return ff_sqrt(x << 20) << s;
01628 }
01629
01630 unsigned int ff_rms(const int *data)
01631 {
01632 int i;
01633 unsigned int res = 0x10000;
01634 int b = LPC_ORDER;
01635
01636 for (i = 0; i < LPC_ORDER; i++) {
01637 res = (((0x1000000 - data[i]*data[i]) >> 12) * res) >> 12;
01638
01639 if (res == 0)
01640 return 0;
01641
01642 while (res <= 0x3fff) {
01643 b++;
01644 res <<= 2;
01645 }
01646 }
01647
01648 return ff_t_sqrt(res) >> b;
01649 }
01650
01651 int ff_interp(RA144Context *ractx, int16_t *out, int a, int copyold, int energy)
01652 {
01653 int work[LPC_ORDER];
01654 int b = NBLOCKS - a;
01655 int i;
01656
01657
01658
01659 for (i = 0; i < LPC_ORDER; i++)
01660 out[i] = (a * ractx->lpc_coef[0][i] + b * ractx->lpc_coef[1][i])>> 2;
01661
01662 if (ff_eval_refl(work, out, ractx->avctx)) {
01663
01664
01665 ff_int_to_int16(out, ractx->lpc_coef[copyold]);
01666 return ff_rescale_rms(ractx->lpc_refl_rms[copyold], energy);
01667 } else {
01668 return ff_rescale_rms(ff_rms(work), energy);
01669 }
01670 }
01671
01672 unsigned int ff_rescale_rms(unsigned int rms, unsigned int energy)
01673 {
01674 return (rms * energy) >> 10;
01675 }
01676
01678 int ff_irms(const int16_t *data)
01679 {
01680 unsigned int i, sum = 0;
01681
01682 for (i=0; i < BLOCKSIZE; i++)
01683 sum += data[i] * data[i];
01684
01685 if (sum == 0)
01686 return 0;
01687
01688 return 0x20000000 / (ff_t_sqrt(sum) >> 8);
01689 }
01690
01691 void ff_subblock_synthesis(RA144Context *ractx, const uint16_t *lpc_coefs,
01692 int cba_idx, int cb1_idx, int cb2_idx,
01693 int gval, int gain)
01694 {
01695 uint16_t buffer_a[BLOCKSIZE];
01696 uint16_t *block;
01697 int m[3];
01698
01699 if (cba_idx) {
01700 cba_idx += BLOCKSIZE/2 - 1;
01701 ff_copy_and_dup(buffer_a, ractx->adapt_cb, cba_idx);
01702 m[0] = (ff_irms(buffer_a) * gval) >> 12;
01703 } else {
01704 m[0] = 0;
01705 }
01706 m[1] = (ff_cb1_base[cb1_idx] * gval) >> 8;
01707 m[2] = (ff_cb2_base[cb2_idx] * gval) >> 8;
01708 memmove(ractx->adapt_cb, ractx->adapt_cb + BLOCKSIZE,
01709 (BUFFERSIZE - BLOCKSIZE) * sizeof(*ractx->adapt_cb));
01710
01711 block = ractx->adapt_cb + BUFFERSIZE - BLOCKSIZE;
01712
01713 ff_add_wav(block, gain, cba_idx, m, cba_idx? buffer_a: NULL,
01714 ff_cb1_vects[cb1_idx], ff_cb2_vects[cb2_idx]);
01715
01716 memcpy(ractx->curr_sblock, ractx->curr_sblock + BLOCKSIZE,
01717 LPC_ORDER*sizeof(*ractx->curr_sblock));
01718
01719 if (ff_celp_lp_synthesis_filter(ractx->curr_sblock + LPC_ORDER, lpc_coefs,
01720 block, BLOCKSIZE, LPC_ORDER, 1, 0, 0xfff))
01721 memset(ractx->curr_sblock, 0, (LPC_ORDER+BLOCKSIZE)*sizeof(*ractx->curr_sblock));
01722 }