2008-08-09 12:46:27 +02:00
|
|
|
/*
|
|
|
|
* AAC decoder data
|
|
|
|
* Copyright (c) 2005-2006 Oded Shimon ( ods15 ods15 dyndns org )
|
|
|
|
* Copyright (c) 2006-2007 Maxim Gavrilov ( maxim.gavrilov gmail com )
|
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-04-20 16:45:34 +02:00
|
|
|
* @file
|
2008-08-09 12:46:27 +02:00
|
|
|
* AAC decoder data
|
|
|
|
* @author Oded Shimon ( ods15 ods15 dyndns org )
|
|
|
|
* @author Maxim Gavrilov ( maxim.gavrilov gmail com )
|
|
|
|
*/
|
|
|
|
|
2008-08-31 09:39:47 +02:00
|
|
|
#ifndef AVCODEC_AACDECTAB_H
|
|
|
|
#define AVCODEC_AACDECTAB_H
|
2008-08-09 12:46:27 +02:00
|
|
|
|
2012-11-10 16:00:00 +01:00
|
|
|
#include "libavutil/channel_layout.h"
|
2008-08-09 12:46:27 +02:00
|
|
|
#include "aac.h"
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2015-06-04 15:35:51 +02:00
|
|
|
static const int8_t tags_per_config[16] = { 0, 1, 1, 2, 3, 3, 4, 5, 0, 0, 0, 4, 5, 0, 5, 0 };
|
2009-09-28 17:35:13 +02:00
|
|
|
|
2015-06-04 15:35:51 +02:00
|
|
|
static const uint8_t aac_channel_layout_map[16][5][3] = {
|
2012-02-01 00:54:21 +01:00
|
|
|
{ { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, },
|
|
|
|
{ { TYPE_CPE, 0, AAC_CHANNEL_FRONT }, },
|
2012-02-03 03:59:15 +01:00
|
|
|
{ { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT }, },
|
|
|
|
{ { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT }, { TYPE_SCE, 1, AAC_CHANNEL_BACK }, },
|
|
|
|
{ { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 1, AAC_CHANNEL_BACK }, },
|
|
|
|
{ { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 1, AAC_CHANNEL_BACK }, { TYPE_LFE, 0, AAC_CHANNEL_LFE }, },
|
|
|
|
{ { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 1, AAC_CHANNEL_FRONT }, { TYPE_CPE, 2, AAC_CHANNEL_BACK }, { TYPE_LFE, 0, AAC_CHANNEL_LFE }, },
|
2015-06-04 15:35:51 +02:00
|
|
|
{ { 0, } },
|
|
|
|
{ { 0, } },
|
|
|
|
{ { 0, } },
|
|
|
|
{ { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 1, AAC_CHANNEL_BACK }, { TYPE_SCE, 1, AAC_CHANNEL_BACK }, { TYPE_LFE, 0, AAC_CHANNEL_LFE }, },
|
|
|
|
{ { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 1, AAC_CHANNEL_SIDE }, { TYPE_CPE, 2, AAC_CHANNEL_BACK }, { TYPE_LFE, 0, AAC_CHANNEL_LFE }, },
|
|
|
|
{ { 0, } },
|
|
|
|
/* TODO: Add 7+1 TOP configuration */
|
2009-09-28 17:35:13 +02:00
|
|
|
};
|
|
|
|
|
2015-06-04 15:35:51 +02:00
|
|
|
static const uint64_t aac_channel_layout[16] = {
|
2010-11-21 21:06:22 +01:00
|
|
|
AV_CH_LAYOUT_MONO,
|
|
|
|
AV_CH_LAYOUT_STEREO,
|
|
|
|
AV_CH_LAYOUT_SURROUND,
|
|
|
|
AV_CH_LAYOUT_4POINT0,
|
|
|
|
AV_CH_LAYOUT_5POINT0_BACK,
|
|
|
|
AV_CH_LAYOUT_5POINT1_BACK,
|
2012-01-31 23:25:35 +01:00
|
|
|
AV_CH_LAYOUT_7POINT1_WIDE_BACK,
|
2009-09-28 17:35:13 +02:00
|
|
|
0,
|
2015-06-04 15:35:51 +02:00
|
|
|
0,
|
|
|
|
0,
|
|
|
|
AV_CH_LAYOUT_6POINT1,
|
|
|
|
AV_CH_LAYOUT_7POINT1,
|
|
|
|
0,
|
|
|
|
/* AV_CH_LAYOUT_7POINT1_TOP, */
|
2009-09-28 17:35:13 +02:00
|
|
|
};
|
|
|
|
|
2008-08-31 09:39:47 +02:00
|
|
|
#endif /* AVCODEC_AACDECTAB_H */
|