• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavcodec/aacdectab.h

Go to the documentation of this file.
00001 /*
00002  * AAC decoder data
00003  * Copyright (c) 2005-2006 Oded Shimon ( ods15 ods15 dyndns org )
00004  * Copyright (c) 2006-2007 Maxim Gavrilov ( maxim.gavrilov gmail com )
00005  *
00006  * This file is part of FFmpeg.
00007  *
00008  * FFmpeg is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * FFmpeg is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with FFmpeg; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00021  */
00022 
00030 #ifndef AVCODEC_AACDECTAB_H
00031 #define AVCODEC_AACDECTAB_H
00032 
00033 #include "aac.h"
00034 
00035 #include <stdint.h>
00036 
00037 /* @name tns_tmp2_map
00038  * Tables of the tmp2[] arrays of LPC coefficients used for TNS.
00039  * The suffix _M_N[] indicate the values of coef_compress and coef_res
00040  * respectively.
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 /* AVCODEC_AACDECTAB_H */

Generated on Fri Sep 16 2011 17:17:32 for FFmpeg by  doxygen 1.7.1