2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
3 ** Copyright (C) 2003-2005 M. Bakker, Nero AG, http://www.nero.com
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 ** Any non-GPL usage of this software or parts of this software is strictly
22 ** The "appropriate copyright message" mentioned in section 2c of the GPLv2
23 ** must read: "Code from FAAD2 is copyright (c) Nero AG, www.nero.com"
25 ** Commercial non-GPL licensing of this software is possible.
26 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
28 ** $Id: syntax.h,v 1.60 2009/01/26 23:51:17 menno Exp $
48 #define DRM_ER_LC 27 /* special object type for DRM */
58 #define SBR_UPSAMPLED 1
59 #define SBR_DOWNSAMPLED 2
60 #define NO_SBR_UPSAMPLED 3
62 /* DRM channel definitions */
64 #define DRMCH_STEREO 2
65 #define DRMCH_SBR_MONO 3
66 #define DRMCH_SBR_STEREO 4
67 #define DRMCH_SBR_PS_STEREO 5
70 /* First object type that has ER */
71 #define ER_OBJECT_START 17
80 #define EXT_FILL_DATA 1
81 #define EXT_DATA_ELEMENT 2
82 #define EXT_DYNAMIC_RANGE 11
95 #define ONLY_LONG_SEQUENCE 0x0
96 #define LONG_START_SEQUENCE 0x1
97 #define EIGHT_SHORT_SEQUENCE 0x2
98 #define LONG_STOP_SEQUENCE 0x3
101 #define FIRST_PAIR_HCB 5
106 #define INTENSITY_HCB2 14
107 #define INTENSITY_HCB 15
109 #define INVALID_SBR_ELEMENT 255
111 int8_t GASpecificConfig(bitfile *ld, mp4AudioSpecificConfig *mp4ASC,
112 program_config *pce);
114 uint8_t adts_frame(adts_header *adts, bitfile *ld);
115 void get_adif_header(adif_header *adif, bitfile *ld);
116 void raw_data_block(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo,
117 bitfile *ld, program_config *pce, drc_info *drc);
118 uint8_t reordered_spectral_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld,
119 int16_t *spectral_data);
121 void DRM_aac_scalable_main_element(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo,
122 bitfile *ld, program_config *pce, drc_info *drc);
124 uint32_t faad_latm_frame(latm_header *latm, bitfile *ld);