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 "libavutil/audioconvert.h"
00034 #include "aac.h"
00035 
00036 #include <stdint.h>
00037 
00038 
00039 
00040 
00041 static const float ltp_coef[8] = {
00042     0.570829, 0.696616, 0.813004, 0.911304,
00043     0.984900, 1.067894, 1.194601, 1.369533,
00044 };
00045 
00046 
00047 
00048 
00049 
00050 
00051 
00052 static const float tns_tmp2_map_1_3[4] = {
00053      0.00000000, -0.43388373,  0.64278758,  0.34202015,
00054 };
00055 
00056 static const float tns_tmp2_map_0_3[8] = {
00057      0.00000000, -0.43388373, -0.78183150, -0.97492790,
00058      0.98480773,  0.86602539,  0.64278758,  0.34202015,
00059 };
00060 
00061 static const float tns_tmp2_map_1_4[8] = {
00062      0.00000000, -0.20791170, -0.40673664, -0.58778524,
00063      0.67369562,  0.52643216,  0.36124167,  0.18374951,
00064 };
00065 
00066 static const float tns_tmp2_map_0_4[16] = {
00067      0.00000000, -0.20791170, -0.40673664, -0.58778524,
00068     -0.74314481, -0.86602539, -0.95105654, -0.99452192,
00069      0.99573416,  0.96182561,  0.89516330,  0.79801720,
00070      0.67369562,  0.52643216,  0.36124167,  0.18374951,
00071 };
00072 
00073 static const float * const tns_tmp2_map[4] = {
00074     tns_tmp2_map_0_3,
00075     tns_tmp2_map_0_4,
00076     tns_tmp2_map_1_3,
00077     tns_tmp2_map_1_4
00078 };
00079 
00080 
00081 static const int8_t tags_per_config[16] = { 0, 1, 1, 2, 3, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0 };
00082 
00083 static const uint8_t aac_channel_layout_map[7][5][2] = {
00084     { { TYPE_SCE, 0 }, },
00085     { { TYPE_CPE, 0 }, },
00086     { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, },
00087     { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, { TYPE_SCE, 1 }, },
00088     { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, { TYPE_CPE, 1 }, },
00089     { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, { TYPE_LFE, 0 }, { TYPE_CPE, 1 }, },
00090     { { TYPE_CPE, 0 }, { TYPE_SCE, 0 }, { TYPE_LFE, 0 }, { TYPE_CPE, 2 }, { TYPE_CPE, 1 }, },
00091 };
00092 
00093 static const uint64_t aac_channel_layout[8] = {
00094     AV_CH_LAYOUT_MONO,
00095     AV_CH_LAYOUT_STEREO,
00096     AV_CH_LAYOUT_SURROUND,
00097     AV_CH_LAYOUT_4POINT0,
00098     AV_CH_LAYOUT_5POINT0_BACK,
00099     AV_CH_LAYOUT_5POINT1_BACK,
00100     AV_CH_LAYOUT_7POINT1_WIDE,
00101     0,
00102 };
00103 
00104 #endif