|
|
|
@ -110,3 +110,70 @@ const int16_t ff_adpcm_afc_coeffs[2][16] = { |
|
|
|
|
{ 0, 2048, 0, 1024, 4096, 3584, 3072, 4608, 4200, 4800, 5120, 2048, 1024, 64512, 64512, 63488 }, |
|
|
|
|
{ 0, 0, 2048, 1024, 63488, 64000, 64512, 62976, 63288, 63236, 62464, 63488, 64512, 1024, 0, 0 } |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const int16_t ff_adpcm_mtaf_stepsize[32][16] = { |
|
|
|
|
{ 1, 5, 9, 13, 16, 20, 24, 28, |
|
|
|
|
-1, -5, -9, -13, -16, -20, -24, -28, }, |
|
|
|
|
{ 2, 6, 11, 15, 20, 24, 29, 33, |
|
|
|
|
-2, -6, -11, -15, -20, -24, -29, -33, }, |
|
|
|
|
{ 2, 7, 13, 18, 23, 28, 34, 39, |
|
|
|
|
-2, -7, -13, -18, -23, -28, -34, -39, }, |
|
|
|
|
{ 3, 9, 15, 21, 28, 34, 40, 46, |
|
|
|
|
-3, -9, -15, -21, -28, -34, -40, -46, }, |
|
|
|
|
{ 3, 11, 18, 26, 33, 41, 48, 56, |
|
|
|
|
-3, -11, -18, -26, -33, -41, -48, -56, }, |
|
|
|
|
{ 4, 13, 22, 31, 40, 49, 58, 67, |
|
|
|
|
-4, -13, -22, -31, -40, -49, -58, -67, }, |
|
|
|
|
{ 5, 16, 26, 37, 48, 59, 69, 80, |
|
|
|
|
-5, -16, -26, -37, -48, -59, -69, -80, }, |
|
|
|
|
{ 6, 19, 31, 44, 57, 70, 82, 95, |
|
|
|
|
-6, -19, -31, -44, -57, -70, -82, -95, }, |
|
|
|
|
{ 7, 22, 38, 53, 68, 83, 99, 114, |
|
|
|
|
-7, -22, -38, -53, -68, -83, -99, -114, }, |
|
|
|
|
{ 9, 27, 45, 63, 81, 99, 117, 135, |
|
|
|
|
-9, -27, -45, -63, -81, -99, -117, -135, }, |
|
|
|
|
{ 10, 32, 53, 75, 96, 118, 139, 161, |
|
|
|
|
-10, -32, -53, -75, -96, -118, -139, -161, }, |
|
|
|
|
{ 12, 38, 64, 90, 115, 141, 167, 193, |
|
|
|
|
-12, -38, -64, -90, -115, -141, -167, -193, }, |
|
|
|
|
{ 15, 45, 76, 106, 137, 167, 198, 228, |
|
|
|
|
-15, -45, -76, -106, -137, -167, -198, -228, }, |
|
|
|
|
{ 18, 54, 91, 127, 164, 200, 237, 273, |
|
|
|
|
-18, -54, -91, -127, -164, -200, -237, -273, }, |
|
|
|
|
{ 21, 65, 108, 152, 195, 239, 282, 326, |
|
|
|
|
-21, -65, -108, -152, -195, -239, -282, -326, }, |
|
|
|
|
{ 25, 77, 129, 181, 232, 284, 336, 388, |
|
|
|
|
-25, -77, -129, -181, -232, -284, -336, -388, }, |
|
|
|
|
{ 30, 92, 153, 215, 276, 338, 399, 461, |
|
|
|
|
-30, -92, -153, -215, -276, -338, -399, -461, }, |
|
|
|
|
{ 36, 109, 183, 256, 329, 402, 476, 549, |
|
|
|
|
-36, -109, -183, -256, -329, -402, -476, -549, }, |
|
|
|
|
{ 43, 130, 218, 305, 392, 479, 567, 654, |
|
|
|
|
-43, -130, -218, -305, -392, -479, -567, -654, }, |
|
|
|
|
{ 52, 156, 260, 364, 468, 572, 676, 780, |
|
|
|
|
-52, -156, -260, -364, -468, -572, -676, -780, }, |
|
|
|
|
{ 62, 186, 310, 434, 558, 682, 806, 930, |
|
|
|
|
-62, -186, -310, -434, -558, -682, -806, -930, }, |
|
|
|
|
{ 73, 221, 368, 516, 663, 811, 958, 1106, |
|
|
|
|
-73, -221, -368, -516, -663, -811, -958, -1106, }, |
|
|
|
|
{ 87, 263, 439, 615, 790, 966, 1142, 1318, |
|
|
|
|
-87, -263, -439, -615, -790, -966, -1142, -1318, }, |
|
|
|
|
{ 104, 314, 523, 733, 942, 1152, 1361, 1571, |
|
|
|
|
-104, -314, -523, -733, -942, -1152, -1361, -1571, }, |
|
|
|
|
{ 124, 374, 623, 873, 1122, 1372, 1621, 1871, |
|
|
|
|
-124, -374, -623, -873, -1122, -1372, -1621, -1871, }, |
|
|
|
|
{ 148, 445, 743, 1040, 1337, 1634, 1932, 2229, |
|
|
|
|
-148, -445, -743, -1040, -1337, -1634, -1932, -2229, }, |
|
|
|
|
{ 177, 531, 885, 1239, 1593, 1947, 2301, 2655, |
|
|
|
|
-177, -531, -885, -1239, -1593, -1947, -2301, -2655, }, |
|
|
|
|
{ 210, 632, 1053, 1475, 1896, 2318, 2739, 3161, |
|
|
|
|
-210, -632, -1053, -1475, -1896, -2318, -2739, -3161, }, |
|
|
|
|
{ 251, 753, 1255, 1757, 2260, 2762, 3264, 3766, |
|
|
|
|
-251, -753, -1255, -1757, -2260, -2762, -3264, -3766, }, |
|
|
|
|
{ 299, 897, 1495, 2093, 2692, 3290, 3888, 4486, |
|
|
|
|
-299, -897, -1495, -2093, -2692, -3290, -3888, -4486, }, |
|
|
|
|
{ 356, 1068, 1781, 2493, 3206, 3918, 4631, 5343, |
|
|
|
|
-356, -1068, -1781, -2493, -3206, -3918, -4631, -5343, }, |
|
|
|
|
{ 424, 1273, 2121, 2970, 3819, 4668, 5516, 6365, |
|
|
|
|
-424, -1273, -2121, -2970, -3819, -4668, -5516, -6365, }, |
|
|
|
|
}; |
|
|
|
|