📄 aac_enc_psy_tables_fp.c
字号:
/*//// INTEL CORPORATION PROPRIETARY INFORMATION// This software is supplied under the terms of a license agreement or// nondisclosure agreement with Intel Corporation and may not be copied// or disclosed except in accordance with the terms of that agreement.// Copyright(c) 2003-2005 Intel Corporation. All Rights Reserved.//// Intel Integrated Performance Primitives AAC Encode Sample for Windows*//// By downloading and installing this sample, you hereby agree that the// accompanying Materials are being provided to you under the terms and// conditions of the End User License Agreement for the Intel Integrated// Performance Primitives product previously accepted by you. Please refer// to the file ipplic.htm located in the root directory of your Intel IPP// product installation for more information.//// MPEG-4 and AAC are international standards promoted by ISO, IEC, ITU, ETSI// and other organizations. Implementations of these standards, or the standard// enabled platforms may require licenses from various entities, including// Intel Corporation.//*/#include "aac_enc_psychoacoustic_fp.h"intpsy_table_w_low_8000_long [] ={ /* w_low */ 0, 9, 18, 27, 36, 45, 54, 63, 72, 81, 90, 99, 109, 119, 129, 139, 149, 160, 171, 182, 193, 205, 217, 229, 242, 255, 269, 283, 298, 313, 329, 346, 364, 382, 401, 421, 442, 465, 489, 515, 542, 571, 602, 635, 671, 709, 750, 794, 842, 894, 950, 1010};intpsy_table_w_low_11025_long [] ={ /* w_low */ 0, 7, 14, 21, 28, 35, 42, 49, 56, 63, 70, 77, 84, 91, 98, 106, 114, 122, 130, 138, 147, 156, 165, 174, 184, 194, 204, 215, 226, 238, 250, 263, 276, 290, 305, 321, 338, 356, 375, 395, 416, 439, 463, 489, 517, 547, 580, 615, 653, 694, 738, 786, 837, 892, 951, 1015};intpsy_table_w_low_12000_long [] ={ /* w_low */ 0, 6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 73, 80, 87, 94, 101, 108, 115, 123, 131, 139, 147, 155, 164, 173, 182, 192, 202, 213, 224, 236, 248, 261, 274, 288, 303, 319, 336, 354, 373, 393, 415, 438, 463, 490, 519, 550, 584, 620, 659, 701, 746, 795, 848, 905, 966};intpsy_table_w_low_16000_long [] ={ /* w_low */ 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 81, 87, 93, 99, 105, 111, 117, 124, 131, 138, 145, 153, 161, 169, 178, 187, 197, 207, 218, 229, 241, 254, 268, 283, 299, 316, 334, 353, 374, 396, 420, 446, 474, 504, 537, 572, 610, 651, 695, 742, 792, 846, 904, 966};intpsy_table_w_low_22050_long [] ={ /* w_low */ 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 77, 82, 87, 92, 97, 102, 108, 114, 120, 126, 133, 140, 147, 155, 163, 172, 181, 191, 201, 212, 224, 237, 251, 266, 282, 299, 318, 338, 360, 383, 408, 435, 464, 495, 528, 564, 602, 643, 687, 734, 785, 840, 899, 963};intpsy_table_w_low_24000_long [] ={ /* w_low */ 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 82, 87, 92, 97, 102, 108, 114, 120, 126, 133, 140, 147, 155, 163, 172, 181, 191, 202, 214, 226, 239, 253, 268, 285, 303, 322, 343, 365, 389, 415, 443, 473, 505, 539, 576, 615, 657, 702, 751, 804, 861, 923, 990};intpsy_table_w_low_32000_long [] ={ /* w_low */ 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 61, 65, 69, 73, 77, 81, 85, 90, 95, 100, 105, 111, 117, 123, 130, 137, 145, 153, 162, 172, 182, 193, 205, 218, 232, 247, 263, 280, 299, 319, 341, 364, 389, 416, 445, 476, 509, 544, 582, 623, 668, 716, 769, 827, 891, 962};intpsy_table_w_low_44100_long [] ={ /* w_low */ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 67, 71, 75, 79, 83, 88, 93, 98, 104, 110, 117, 124, 132, 140, 149, 158, 168, 179, 191, 204, 218, 233, 249, 266, 284, 304, 325, 348, 372, 398, 426, 456, 489, 525, 564, 607, 654, 707, 766, 833, 909, 997};intpsy_table_w_low_48000_long [] ={ /* w_low */ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 41, 44, 47, 50, 53, 56, 59, 62, 66, 70, 74, 78, 82, 87, 92, 97, 103, 109, 116, 123, 131, 139, 148, 158, 168, 179, 191, 204, 218, 233, 249, 266, 284, 304, 325, 348, 372, 398, 426, 457, 491, 528, 568, 613, 663, 719, 782, 854, 938};intpsy_table_w_low_64000_long [] ={ /* w_low */ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 45, 48, 51, 54, 57, 60, 64, 68, 72, 76, 81, 86, 91, 97, 103, 110, 117, 125, 133, 142, 152, 162, 173, 185, 198, 212, 227, 243, 260, 278, 298, 319, 342, 367, 395, 425, 459, 496, 538, 585, 639, 702, 775, 862, 967};intpsy_table_w_low_88200_long [] ={ /* w_low */ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 43, 46, 49, 52, 55, 59, 63, 67, 71, 76, 81, 86, 92, 98, 105, 112, 120, 128, 137, 147, 157, 168, 180, 193, 207, 222, 238, 256, 275, 296, 319, 345, 374, 406, 443, 485, 534, 592, 661, 746, 852, 989};intpsy_table_w_low_96000_long [] ={ /* w_low */ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 44, 47, 50, 53, 56, 60, 64, 68, 73, 78, 83, 89, 95, 102, 109, 117, 125, 134, 144, 154, 165, 177, 190, 204, 219, 235, 253, 272, 293, 317, 343, 373, 407, 446, 491, 544, 608, 686, 784, 911};intpsy_table_w_high_8000_long [] ={ /* w_high */ 8, 17, 26, 35, 44, 53, 62, 71, 80, 89, 98, 108, 118, 128, 138, 148, 159, 170, 181, 192, 204, 216, 228, 241, 254, 268, 282, 297, 312, 328, 345, 363, 381, 400, 420, 441, 464, 488, 514, 541, 570, 601, 634, 670, 708, 749, 793, 841, 893, 949, 1009, 1023};intpsy_table_w_high_11025_long [] ={ /* w_high */ 6, 13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 105, 113, 121, 129, 137, 146, 155, 164, 173, 183, 193, 203, 214, 225, 237, 249, 262, 275, 289, 304, 320, 337, 355, 374, 394, 415, 438, 462, 488, 516, 546, 579, 614, 652, 693, 737, 785, 836, 891, 950, 1014, 1023};intpsy_table_w_high_12000_long [] ={ /* w_high */ 5, 11, 17, 23, 29, 35, 41, 47, 53, 59, 65, 72, 79, 86, 93, 100, 107, 114, 122, 130, 138, 146, 154, 163, 172, 181, 191, 201, 212, 223, 235, 247, 260, 273, 287, 302, 318, 335, 353, 372, 392, 414, 437, 462, 489, 518, 549, 583, 619, 658, 700, 745, 794, 847, 904, 965, 1023};intpsy_table_w_high_16000_long [] ={ /* w_high */ 4, 9, 14, 19, 24, 29, 34, 39, 44, 49, 54, 59, 64, 69, 74, 80, 86, 92, 98, 104, 110, 116, 123, 130, 137, 144, 152, 160, 168, 177, 186, 196, 206, 217, 228, 240, 253, 267, 282, 298, 315, 333, 352, 373, 395, 419, 445, 473, 503, 536, 571, 609, 650, 694, 741, 791, 845, 903, 965, 1023};intpsy_table_w_high_22050_long [] ={ /* w_high */ 3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 76, 81, 86, 91, 96, 101, 107, 113, 119, 125, 132, 139, 146, 154, 162, 171, 180, 190, 200, 211, 223, 236, 250, 265, 281, 298, 317, 337, 359, 382, 407, 434, 463, 494, 527, 563, 601, 642, 686, 733, 784, 839, 898, 962, 1023};intpsy_table_w_high_24000_long [] ={ /* w_high */ 2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 81, 86, 91, 96, 101, 107, 113, 119, 125, 132, 139, 146, 154, 162, 171, 180, 190, 201, 213, 225, 238, 252, 267, 284, 302, 321, 342, 364, 388, 414, 442, 472, 504, 538, 575, 614, 656, 701, 750, 803, 860, 922, 989, 1023};intpsy_table_w_high_32000_long [] ={ /* w_high */ 2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 60, 64, 68, 72, 76, 80, 84, 89, 94, 99, 104, 110, 116, 122, 129, 136, 144, 152, 161, 171, 181, 192, 204, 217, 231, 246, 262, 279, 298, 318, 340, 363, 388, 415, 444, 475, 508, 543, 581, 622, 667, 715, 768, 826, 890, 961, 1023};intpsy_table_w_high_44100_long [] ={ /* w_high */ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 66, 70, 74, 78, 82, 87, 92, 97, 103, 109, 116, 123, 131, 139, 148, 157, 167, 178, 190, 203, 217, 232, 248, 265, 283, 303, 324, 347, 371, 397, 425, 455, 488, 524, 563, 606, 653, 706, 765, 832, 908, 996, 1023};intpsy_table_w_high_48000_long [] ={ /* w_high */ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 40, 43, 46, 49, 52, 55, 58, 61, 65, 69, 73, 77, 81, 86, 91, 96, 102, 108, 115, 122, 130, 138, 147, 157, 167, 178, 190, 203, 217, 232, 248, 265, 283, 303, 324, 347, 371, 397, 425, 456, 490, 527, 567, 612, 662, 718, 781, 853, 937, 1023};intpsy_table_w_high_64000_long [] ={ /* w_high */ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 44, 47, 50, 53, 56, 59, 63, 67, 71, 75, 80, 85, 90, 96, 102, 109, 116, 124, 132, 141, 151, 161, 172, 184, 197, 211, 226, 242, 259, 277, 297, 318, 341, 366, 394, 424, 458, 495, 537, 584, 638, 701, 774, 861, 966, 1023};intpsy_table_w_high_88200_long [] ={ /* w_high */ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 42, 45, 48, 51, 54, 58, 62, 66, 70, 75, 80, 85, 91, 97, 104, 111, 119, 127, 136, 146, 156, 167, 179, 192, 206, 221, 237, 255, 274, 295, 318, 344, 373, 405, 442, 484, 533, 591, 660, 745, 851, 988, 1023};intpsy_table_w_high_96000_long [] ={ /* w_high */ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 43, 46, 49, 52, 55, 59, 63, 67, 72, 77, 82, 88, 94, 101, 108, 116, 124, 133, 143, 153, 164, 176, 189, 203, 218, 234, 252, 271, 292, 316, 342, 372, 406, 445, 490, 543, 607, 685, 783, 910, 1023};floatpsy_table_width_8000_long[] ={ /* width */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 13, 13, 14, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 23, 24, 26, 27, 29, 31, 33, 36, 38, 41, 44, 48, 52, 56, 60, 14};floatpsy_table_width_11025_long[] ={ /* width */ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 33, 35, 38, 41, 44, 48, 51, 55, 59, 64, 9};floatpsy_table_width_12000_long[] ={ /* width */ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 25, 27, 29, 31, 34, 36, 39, 42, 45, 49, 53, 57, 61, 58};floatpsy_table_width_16000_long[] ={ /* width */ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 26, 28, 30, 33, 35, 38, 41, 44, 47, 50, 54, 58, 62, 58};floatpsy_table_width_22050_long[] ={ /* width */ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 22, 23, 25, 27, 29, 31, 33, 36, 38, 41, 44, 47, 51, 55, 59, 64, 61};floatpsy_table_width_24000_long[] ={ /* width */ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 17, 18, 19, 21, 22, 24, 26, 28, 30, 32, 34, 37, 39, 42, 45, 49, 53, 57, 62, 67, 34};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -