00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00030 #ifndef AVCODEC_AACDECTAB_H
00031 #define AVCODEC_AACDECTAB_H
00032
00033 #include "aac.h"
00034
00035 #include <stdint.h>
00036
00037
00038
00039
00040
00041
00042
00043 static const float tns_tmp2_map_1_3[4] = {
00044 0.00000000, -0.43388373, 0.64278758, 0.34202015,
00045 };
00046
00047 static const float tns_tmp2_map_0_3[8] = {
00048 0.00000000, -0.43388373, -0.78183150, -0.97492790,
00049 0.98480773, 0.86602539, 0.64278758, 0.34202015,
00050 };
00051
00052 static const float tns_tmp2_map_1_4[8] = {
00053 0.00000000, -0.20791170, -0.40673664, -0.58778524,
00054 0.67369562, 0.52643216, 0.36124167, 0.18374951,
00055 };
00056
00057 static const float tns_tmp2_map_0_4[16] = {
00058 0.00000000, -0.20791170, -0.40673664, -0.58778524,
00059 -0.74314481, -0.86602539, -0.95105654, -0.99452192,
00060 0.99573416, 0.96182561, 0.89516330, 0.79801720,
00061 0.67369562, 0.52643216, 0.36124167, 0.18374951,
00062 };
00063
00064 static const float * const tns_tmp2_map[4] = {
00065 tns_tmp2_map_0_3,
00066 tns_tmp2_map_0_4,
00067 tns_tmp2_map_1_3,
00068 tns_tmp2_map_1_4
00069 };
00070
00071
00072 static const int8_t tags_per_config[16] = { 0, 1, 1, 2, 3, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0 };
00073
00074 static const uint8_t aac_channel_layout_map[7][5][2] = {
00075 { { TYPE_SCE, 0 }, },
00076 { { TYPE_CPE, 0 }, },
00077 { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, },
00078 { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, { TYPE_SCE, 1 }, },
00079 { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, { TYPE_CPE, 1 }, },
00080 { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, { TYPE_LFE, 0 }, { TYPE_CPE, 1 }, },
00081 { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, { TYPE_LFE, 0 }, { TYPE_CPE, 2 }, { TYPE_CPE, 1 }, },
00082 };
00083
00084 static const int64_t aac_channel_layout[8] = {
00085 CH_LAYOUT_MONO,
00086 CH_LAYOUT_STEREO,
00087 CH_LAYOUT_SURROUND,
00088 CH_LAYOUT_4POINT0,
00089 CH_LAYOUT_5POINT0_BACK,
00090 CH_LAYOUT_5POINT1_BACK,
00091 CH_LAYOUT_7POINT1_WIDE,
00092 0,
00093 };
00094
00095 #endif