Update translations from 2.2.x branch
[vlc.git] / modules / packetizer / mpeg4audio.h
blob361c4e516fe44020c8ff17327bd524834def1a59
1 /*****************************************************************************
2 * mpeg4audio.h: MPEG 4 audio definitions
3 *****************************************************************************
4 * Copyright (C) 2001-2017 VLC authors and VideoLAN
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
20 enum
22 AOT_AAC_MAIN = 1,
23 AOT_AAC_LC,
24 AOT_AAC_SSR,
25 AOT_AAC_LTP,
26 AOT_AAC_SBR,
27 AOT_AAC_SC,
28 AOT_ER_AAC_LC = 17,
29 AOT_ER_AAC_LTP = 19,
30 AOT_ER_AAC_SC = 20,
31 AOT_ER_AAC_LD = 23,
32 AOT_AAC_PS = 29,
33 AOT_ER_AAC_ELD = 39,
36 enum
38 AAC_PROFILE_MAIN = AOT_AAC_MAIN - 1,
39 AAC_PROFILE_LC,
40 AAC_PROFILE_SSR,
41 AAC_PROFILE_LTP,
42 AAC_PROFILE_HE,
43 AAC_PROFILE_LD = AOT_ER_AAC_LD - 1,
44 AAC_PROFILE_HEv2 = AOT_AAC_PS - 1,
45 AAC_PROFILE_ELD = AOT_ER_AAC_ELD - 1,
46 /* Similar shift signaling as avcodec, as signaling should have been
47 done in ADTS header. Values defaults to MPEG4 */
48 AAC_PROFILE_MPEG2_LC = AAC_PROFILE_LC + 128,
49 AAC_PROFILE_MPEG2_HE = AAC_PROFILE_HE + 128,
52 #define MPEG4_ASC_MAX_INDEXEDPOS 9
54 static const uint32_t mpeg4_asc_channelsbyindex[MPEG4_ASC_MAX_INDEXEDPOS] =
56 0, /* Set later */
58 AOUT_CHAN_CENTER, AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT,
60 AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | AOUT_CHAN_LFE,
62 AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT,
64 AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT |
65 AOUT_CHAN_CENTER,
67 AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT |
68 AOUT_CHAN_CENTER | AOUT_CHAN_LFE,
70 AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | AOUT_CHAN_MIDDLELEFT |
71 AOUT_CHAN_MIDDLERIGHT | AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT |
72 AOUT_CHAN_CENTER,
74 AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | AOUT_CHAN_MIDDLELEFT |
75 AOUT_CHAN_MIDDLERIGHT | AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT |
76 AOUT_CHAN_CENTER | AOUT_CHAN_LFE