X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Faacenctab.h;h=c6658a4a6f41204a4eb1258d347f7f7c823ccf85;hb=64ceeac26a441ede6eaf4bb99a5c3224b1803745;hp=9157cff810124fa83dd1a188c4d82d54f3f0ae0f;hpb=d0186a4ec4c4391906bf7dcd83d3ea3e3b858d82;p=ffmpeg diff --git a/libavcodec/aacenctab.h b/libavcodec/aacenctab.h index 9157cff8101..c6658a4a6f4 100644 --- a/libavcodec/aacenctab.h +++ b/libavcodec/aacenctab.h @@ -36,7 +36,14 @@ /** Total number of codebooks, including special ones **/ #define CB_TOT_ALL 15 -#define AAC_MAX_CHANNELS 6 +/** Profile option settings **/ +#define OPT_AUTO -1 +#define OPT_BANNED -256 +#define OPT_NEEDS_LTP -384 +#define OPT_NEEDS_MAIN -512 +#define OPT_REQUIRED -768 + +#define AAC_MAX_CHANNELS 8 extern const uint8_t *ff_aac_swb_size_1024[]; extern const int ff_aac_swb_size_1024_len; @@ -44,13 +51,15 @@ extern const uint8_t *ff_aac_swb_size_128[]; extern const int ff_aac_swb_size_128_len; /** default channel configurations */ -static const uint8_t aac_chan_configs[6][5] = { - {1, TYPE_SCE}, // 1 channel - single channel element - {1, TYPE_CPE}, // 2 channels - channel pair - {2, TYPE_SCE, TYPE_CPE}, // 3 channels - center + stereo - {3, TYPE_SCE, TYPE_CPE, TYPE_SCE}, // 4 channels - front center + stereo + back center - {3, TYPE_SCE, TYPE_CPE, TYPE_CPE}, // 5 channels - front center + stereo + back stereo - {4, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_LFE}, // 6 channels - front center + stereo + back stereo + LFE +static const uint8_t aac_chan_configs[AAC_MAX_CHANNELS][6] = { + {1, TYPE_SCE}, // 1 channel - single channel element + {1, TYPE_CPE}, // 2 channels - channel pair + {2, TYPE_SCE, TYPE_CPE}, // 3 channels - center + stereo + {3, TYPE_SCE, TYPE_CPE, TYPE_SCE}, // 4 channels - front center + stereo + back center + {3, TYPE_SCE, TYPE_CPE, TYPE_CPE}, // 5 channels - front center + stereo + back stereo + {4, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_LFE}, // 6 channels - front center + stereo + back stereo + LFE + {0}, // 7 channels - invalid without PCE + {5, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_CPE, TYPE_LFE}, // 8 channels - front center + front stereo + side stereo + back stereo + LFE }; /** @@ -63,6 +72,8 @@ static const uint8_t aac_chan_maps[AAC_MAX_CHANNELS][AAC_MAX_CHANNELS] = { { 2, 0, 1, 3 }, { 2, 0, 1, 3, 4 }, { 2, 0, 1, 4, 5, 3 }, + { 0 }, + { 2, 0, 1, 6, 7, 4, 5, 3 }, }; /* duplicated from avpriv_mpeg4audio_sample_rates to avoid shared build