annotate libfaad2/syntax.h @ 31447:bb6a85295322

Shut up strict prototype warnings from the gui subdirectory. The GTK headers spit out too many warnings and drown out everything useful.
author diego
date Mon, 21 Jun 2010 10:58:02 +0000
parents e83eef58b30a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
1 /*
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com
29264
e83eef58b30a Remove all kind of trailing whitespaces from all MPlayer's files.
bircoph
parents: 25834
diff changeset
4 **
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
5 ** This program is free software; you can redistribute it and/or modify
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
6 ** it under the terms of the GNU General Public License as published by
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
7 ** the Free Software Foundation; either version 2 of the License, or
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
8 ** (at your option) any later version.
29264
e83eef58b30a Remove all kind of trailing whitespaces from all MPlayer's files.
bircoph
parents: 25834
diff changeset
9 **
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
10 ** This program is distributed in the hope that it will be useful,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
13 ** GNU General Public License for more details.
29264
e83eef58b30a Remove all kind of trailing whitespaces from all MPlayer's files.
bircoph
parents: 25834
diff changeset
14 **
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
15 ** You should have received a copy of the GNU General Public License
29264
e83eef58b30a Remove all kind of trailing whitespaces from all MPlayer's files.
bircoph
parents: 25834
diff changeset
16 ** along with this program; if not, write to the Free Software
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
18 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
19 ** Any non-GPL usage of this software or parts of this software is strictly
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
20 ** forbidden.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
21 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
22 ** Commercial non-GPL licensing of this software is possible.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
24 **
18141
59b6fa5b4201 Update to faad2 cvs 20040915+MPlayer fixes
rtognimp
parents: 14727
diff changeset
25 ** $Id: syntax.h,v 1.54 2004/09/04 14:56:29 menno Exp $
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
26 **/
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
27
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
28 #ifndef __SYNTAX_H__
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
29 #define __SYNTAX_H__
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
30
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
31 #ifdef __cplusplus
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
32 extern "C" {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
33 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
34
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
35 #include "decoder.h"
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
36 #include "bits.h"
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
37
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
38 #define MAIN 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
39 #define LC 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
40 #define SSR 3
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
41 #define LTP 4
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
42 #define HE_AAC 5
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
43 #define LD 23
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
44 #define ER_LC 17
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
45 #define ER_LTP 19
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
46 #define DRM_ER_LC 27 /* special object type for DRM */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
47
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
48 /* header types */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
49 #define RAW 0
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
50 #define ADIF 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
51 #define ADTS 2
25834
69a4d646e55d generic functions and structures to parse and statekeep LATM streams
nicodvb
parents: 18141
diff changeset
52 #define LATM 3
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
53
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
54 /* SBR signalling */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
55 #define NO_SBR 0
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
56 #define SBR_UPSAMPLED 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
57 #define SBR_DOWNSAMPLED 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
58 #define NO_SBR_UPSAMPLED 3
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
59
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
60 /* DRM channel definitions */
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
61 #define DRMCH_MONO 1
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
62 #define DRMCH_STEREO 2
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
63 #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
64 #define DRMCH_SBR_STEREO 4
6d50ef45a058 Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents: 12625
diff changeset
65 #define DRMCH_SBR_PS_STEREO 5
10989
3185f64f6350 synced with current cvs
alex
parents: 10725
diff changeset
66
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
67
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
68 /* First object type that has ER */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
69 #define ER_OBJECT_START 17
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
70
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
71
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
72 /* Bitstream */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
73 #define LEN_SE_ID 3
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
74 #define LEN_TAG 4
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
75 #define LEN_BYTE 8
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
76
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
77 #define EXT_FIL 0
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
78 #define EXT_FILL_DATA 1
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
79 #define EXT_DATA_ELEMENT 2
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
80 #define EXT_DYNAMIC_RANGE 11
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
81 #define ANC_DATA 0
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
82
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
83 /* Syntax elements */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
84 #define ID_SCE 0x0
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
85 #define ID_CPE 0x1
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
86 #define ID_CCE 0x2
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
87 #define ID_LFE 0x3
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
88 #define ID_DSE 0x4
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
89 #define ID_PCE 0x5
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
90 #define ID_FIL 0x6
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
91 #define ID_END 0x7
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
92
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
93 #define ONLY_LONG_SEQUENCE 0x0
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
94 #define LONG_START_SEQUENCE 0x1
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
95 #define EIGHT_SHORT_SEQUENCE 0x2
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
96 #define LONG_STOP_SEQUENCE 0x3
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
97
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
98 #define ZERO_HCB 0
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
99 #define FIRST_PAIR_HCB 5
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
100 #define ESC_HCB 11
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
101 #define QUAD_LEN 4
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
102 #define PAIR_LEN 2
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
103 #define NOISE_HCB 13
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
104 #define INTENSITY_HCB2 14
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
105 #define INTENSITY_HCB 15
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
106
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
107 #define INVALID_SBR_ELEMENT 255
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
108
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
109 int8_t GASpecificConfig(bitfile *ld, mp4AudioSpecificConfig *mp4ASC,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
110 program_config *pce);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
111
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
112 uint8_t adts_frame(adts_header *adts, bitfile *ld);
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
113 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
114 void raw_data_block(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
115 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
116 uint8_t reordered_spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld,
12527
4a370c80fe5c update to the 2.0 release of faad, patch by adland
diego
parents: 10989
diff changeset
117 int16_t *spectral_data);
13453
6d50ef45a058 Update FAAD to a 2.1 beta CVS snapshot from 2004.07.12.
diego
parents: 12625
diff changeset
118 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
119 bitfile *ld, program_config *pce, drc_info *drc);
25834
69a4d646e55d generic functions and structures to parse and statekeep LATM streams
nicodvb
parents: 18141
diff changeset
120 uint32_t faad_latm_frame(latm_header *latm, bitfile *ld);
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
121
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
122
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
123 #ifdef __cplusplus
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
124 }
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
125 #endif
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
126 #endif