Mercurial > mplayer.hg
annotate libfaad2/syntax.h @ 13980:e0d400094e88
24bit LPCM is signed...
author | reimar |
---|---|
date | Fri, 19 Nov 2004 14:42:17 +0000 |
parents | 6d50ef45a058 |
children | 2ae5ab4331ca |
rev | line source |
---|---|
10725 | 1 /* |
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | |
12527 | 3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com |
10725 | 4 ** |
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. | |
9 ** | |
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. | |
14 ** | |
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. | |
18 ** | |
19 ** Any non-GPL usage of this software or parts of this software is strictly | |
20 ** forbidden. | |
21 ** | |
22 ** Commercial non-GPL licensing of this software is possible. | |
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | |
24 ** | |
12625
d81145997036
More information about modifications to comply more closely with GPL 2a.
diego
parents:
12527
diff
changeset
|
25 ** Initially modified for use with MPlayer by Arpad Gereöffy on 2003/08/30 |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
26 ** $Id: syntax.h,v 1.4 2004/06/23 13:50:53 diego Exp $ |
12625
d81145997036
More information about modifications to comply more closely with GPL 2a.
diego
parents:
12527
diff
changeset
|
27 ** detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/ |
10725 | 28 **/ |
29 | |
30 #ifndef __SYNTAX_H__ | |
31 #define __SYNTAX_H__ | |
32 | |
33 #ifdef __cplusplus | |
34 extern "C" { | |
35 #endif | |
36 | |
37 #include "decoder.h" | |
38 #include "bits.h" | |
39 | |
10989 | 40 #define MAIN 1 |
41 #define LC 2 | |
42 #define SSR 3 | |
43 #define LTP 4 | |
44 #define HE_AAC 5 | |
10725 | 45 #define LD 23 |
46 #define ER_LC 17 | |
47 #define ER_LTP 19 | |
48 #define DRM_ER_LC 27 /* special object type for DRM */ | |
49 | |
10989 | 50 /* header types */ |
51 #define RAW 0 | |
52 #define ADIF 1 | |
53 #define ADTS 2 | |
54 | |
55 /* SBR signalling */ | |
56 #define NO_SBR 0 | |
57 #define SBR_UPSAMPLED 1 | |
58 #define SBR_DOWNSAMPLED 2 | |
59 #define NO_SBR_UPSAMPLED 3 | |
60 | |
61 /* DRM channel definitions */ | |
62 #define DRMCH_MONO 1 | |
63 #define DRMCH_STEREO 2 | |
64 #define DRMCH_SBR_MONO 3 | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
65 #define DRMCH_SBR_STEREO 4 |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
66 #define DRMCH_SBR_PS_STEREO 5 |
10989 | 67 |
10725 | 68 |
69 /* First object type that has ER */ | |
70 #define ER_OBJECT_START 17 | |
71 | |
72 | |
73 /* Bitstream */ | |
74 #define LEN_SE_ID 3 | |
75 #define LEN_TAG 4 | |
76 #define LEN_BYTE 8 | |
77 | |
78 #define EXT_FIL 0 | |
79 #define EXT_FILL_DATA 1 | |
80 #define EXT_DATA_ELEMENT 2 | |
81 #define EXT_DYNAMIC_RANGE 11 | |
82 #define ANC_DATA 0 | |
83 | |
84 /* Syntax elements */ | |
85 #define ID_SCE 0x0 | |
86 #define ID_CPE 0x1 | |
87 #define ID_CCE 0x2 | |
88 #define ID_LFE 0x3 | |
89 #define ID_DSE 0x4 | |
90 #define ID_PCE 0x5 | |
91 #define ID_FIL 0x6 | |
92 #define ID_END 0x7 | |
93 | |
94 #define ONLY_LONG_SEQUENCE 0x0 | |
95 #define LONG_START_SEQUENCE 0x1 | |
96 #define EIGHT_SHORT_SEQUENCE 0x2 | |
97 #define LONG_STOP_SEQUENCE 0x3 | |
98 | |
99 #define ZERO_HCB 0 | |
100 #define FIRST_PAIR_HCB 5 | |
101 #define ESC_HCB 11 | |
102 #define QUAD_LEN 4 | |
103 #define PAIR_LEN 2 | |
104 #define NOISE_HCB 13 | |
105 #define INTENSITY_HCB2 14 | |
106 #define INTENSITY_HCB 15 | |
107 | |
12527 | 108 #define INVALID_SBR_ELEMENT 255 |
109 | |
10725 | 110 int8_t GASpecificConfig(bitfile *ld, mp4AudioSpecificConfig *mp4ASC, |
111 program_config *pce); | |
112 | |
113 uint8_t adts_frame(adts_header *adts, bitfile *ld); | |
114 void get_adif_header(adif_header *adif, bitfile *ld); | |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
115 void raw_data_block(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, |
12527 | 116 bitfile *ld, program_config *pce, drc_info *drc); |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
117 uint8_t reordered_spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld, |
12527 | 118 int16_t *spectral_data); |
13453
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
119 void aac_scalable_main_element(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, |
6d50ef45a058
Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents:
12625
diff
changeset
|
120 bitfile *ld, program_config *pce, drc_info *drc); |
10725 | 121 |
122 | |
123 #ifdef __cplusplus | |
124 } | |
125 #endif | |
126 #endif |