📄 aac_enc_psy_tables_int.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) 2004-2006 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 ippEULA.rtf or ippEULA.txt 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_int.h"
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp32s psy_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
};
static Ipp16s psy_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
};
static Ipp16s psy_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
};
static Ipp16s psy_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
};
static Ipp16s psy_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
};
static Ipp16s psy_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
};
static Ipp16s psy_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
};
static Ipp16s psy_table_width_32000_long[] =
{ /* width */
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5,
5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 10, 10, 11, 12,
13, 14, 15, 16, 17, 19, 20, 22, 23, 25, 27, 29, 31, 33,
35, 38, 41, 45, 48, 53, 58, 64, 71, 62
};
static Ipp16s psy_table_width_44100_long[] =
{ /* width */
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4,
4, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9,
9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 23, 24,
26, 28, 30, 33, 36, 39, 43, 47, 53, 59, 67, 76, 88, 27
};
static Ipp16s psy_table_width_48000_long[] =
{ /* width */
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4,
4, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9,
10, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 23, 24,
26, 28, 31, 34, 37, 40, 45, 50, 56, 63, 72, 84, 86
};
static Ipp16s psy_table_width_64000_long[] =
{ /* width */
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4,
4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10,
10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 23, 25, 28,
30, 34, 37, 42, 47, 54, 63, 73, 87, 105, 57
};
static Ipp16s psy_table_width_88200_long[] =
{ /* width */
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6,
6, 7, 7, 8, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16,
18, 19, 21, 23, 26, 29, 32, 37, 42, 49, 58, 69, 85, 106,
137, 35
};
static Ipp16s psy_table_width_96000_long[] =
{ /* width */
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6,
6, 7, 7, 8, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16,
18, 19, 21, 24, 26, 30, 34, 39, 45, 53, 64, 78, 98, 127,
113
};
static Ipp16s psy_table_bval_8000_long [] =
{ /* bval Q10 */
184, 543, 911, 1270, 1628, 1987, 2345, 2693,
3052, 3389, 3738, 4086, 4454, 4823, 5171, 5519,
5878, 6246, 6605, 6953, 7301, 7660, 8008, 8366,
8714, 9062, 9421, 9769, 10117, 10465, 10813, 11172,
11520, 11858, 12196, 12534, 12882, 13230, 13578, 13916,
14264, 14602, 14950, 15288, 15636, 15974, 16312, 16650,
16998, 17336, 17674, 17889
};
static Ipp16s psy_table_bval_11025_long [] =
{ /* bval Q10 */
195, 584, 973, 1362, 1751, 2130, 2509, 2888,
3256, 3625, 3983, 4342, 4700, 5038, 5407, 5786,
6154, 6513, 6861, 7229, 7598, 7956, 8305, 8663,
9032, 9380, 9728, 10086, 10435, 10793, 11141, 11489,
11837, 12186, 12534, 12892, 13251, 13599, 13947, 14295,
14633, 14981, 15319, 15657, 16005, 16343, 16691, 17029,
17377, 17715, 18063, 18401, 18739, 19087, 19425, 19620
};
static Ipp16s psy_table_bval_12000_long [] =
{ /* bval Q10 */
184, 543, 911, 1270, 1628, 1987, 2345, 2693,
3052, 3389, 3738, 4096, 4485, 4864, 5233, 5601,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -