diff options
author | Sean Bartell <wingedtachikoma@gmail.com> | 2011-06-25 21:32:25 -0400 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-04-25 22:13:20 +0200 |
commit | f40bfc9267b13b54e6379dfe7539447662879d24 (patch) | |
tree | 9b20069d5e62809ff434061ad730096836f916f2 /lib/rbcodec/codecs/libfaad/syntax.h | |
parent | a0009907de7a0107d49040d8a180f140e2eff299 (diff) | |
download | rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.gz rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.zip |
Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97
Reviewed-on: http://gerrit.rockbox.org/137
Reviewed-by: Nils Wallménius <nils@rockbox.org>
Tested-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'lib/rbcodec/codecs/libfaad/syntax.h')
-rw-r--r-- | lib/rbcodec/codecs/libfaad/syntax.h | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libfaad/syntax.h b/lib/rbcodec/codecs/libfaad/syntax.h new file mode 100644 index 0000000000..f9efde7d9b --- /dev/null +++ b/lib/rbcodec/codecs/libfaad/syntax.h | |||
@@ -0,0 +1,124 @@ | |||
1 | /* | ||
2 | ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | ||
3 | ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com | ||
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 | ** | ||
25 | ** $Id$ | ||
26 | **/ | ||
27 | |||
28 | #ifndef __SYNTAX_H__ | ||
29 | #define __SYNTAX_H__ | ||
30 | |||
31 | #ifdef __cplusplus | ||
32 | extern "C" { | ||
33 | #endif | ||
34 | |||
35 | #include "decoder.h" | ||
36 | #include "bits.h" | ||
37 | |||
38 | #define MAIN 1 | ||
39 | #define LC 2 | ||
40 | #define SSR 3 | ||
41 | #define LTP 4 | ||
42 | #define HE_AAC 5 | ||
43 | #define LD 23 | ||
44 | #define ER_LC 17 | ||
45 | #define ER_LTP 19 | ||
46 | #define DRM_ER_LC 27 /* special object type for DRM */ | ||
47 | |||
48 | /* header types */ | ||
49 | #define RAW 0 | ||
50 | #define ADIF 1 | ||
51 | #define ADTS 2 | ||
52 | |||
53 | /* SBR signalling */ | ||
54 | #define NO_SBR 0 | ||
55 | #define SBR_UPSAMPLED 1 | ||
56 | #define SBR_DOWNSAMPLED 2 | ||
57 | #define NO_SBR_UPSAMPLED 3 | ||
58 | |||
59 | /* DRM channel definitions */ | ||
60 | #define DRMCH_MONO 1 | ||
61 | #define DRMCH_STEREO 2 | ||
62 | #define DRMCH_SBR_MONO 3 | ||
63 | #define DRMCH_SBR_STEREO 4 | ||
64 | #define DRMCH_SBR_PS_STEREO 5 | ||
65 | |||
66 | |||
67 | /* First object type that has ER */ | ||
68 | #define ER_OBJECT_START 17 | ||
69 | |||
70 | |||
71 | /* Bitstream */ | ||
72 | #define LEN_SE_ID 3 | ||
73 | #define LEN_TAG 4 | ||
74 | #define LEN_BYTE 8 | ||
75 | |||
76 | #define EXT_FIL 0 | ||
77 | #define EXT_FILL_DATA 1 | ||
78 | #define EXT_DATA_ELEMENT 2 | ||
79 | #define EXT_DYNAMIC_RANGE 11 | ||
80 | #define ANC_DATA 0 | ||
81 | |||
82 | /* Syntax elements */ | ||
83 | #define ID_SCE 0x0 | ||
84 | #define ID_CPE 0x1 | ||
85 | #define ID_CCE 0x2 | ||
86 | #define ID_LFE 0x3 | ||
87 | #define ID_DSE 0x4 | ||
88 | #define ID_PCE 0x5 | ||
89 | #define ID_FIL 0x6 | ||
90 | #define ID_END 0x7 | ||
91 | |||
92 | #define ONLY_LONG_SEQUENCE 0x0 | ||
93 | #define LONG_START_SEQUENCE 0x1 | ||
94 | #define EIGHT_SHORT_SEQUENCE 0x2 | ||
95 | #define LONG_STOP_SEQUENCE 0x3 | ||
96 | |||
97 | #define ZERO_HCB 0 | ||
98 | #define FIRST_PAIR_HCB 5 | ||
99 | #define ESC_HCB 11 | ||
100 | #define QUAD_LEN 4 | ||
101 | #define PAIR_LEN 2 | ||
102 | #define NOISE_HCB 13 | ||
103 | #define INTENSITY_HCB2 14 | ||
104 | #define INTENSITY_HCB 15 | ||
105 | |||
106 | #define INVALID_SBR_ELEMENT 255 | ||
107 | |||
108 | int8_t GASpecificConfig(bitfile *ld, mp4AudioSpecificConfig *mp4ASC, | ||
109 | program_config *pce); | ||
110 | |||
111 | uint8_t adts_frame(adts_header *adts, bitfile *ld); | ||
112 | void get_adif_header(adif_header *adif, bitfile *ld); | ||
113 | void raw_data_block(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, | ||
114 | bitfile *ld, program_config *pce, drc_info *drc); | ||
115 | uint8_t reordered_spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld, | ||
116 | int16_t *spectral_data); | ||
117 | void aac_scalable_main_element(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, | ||
118 | bitfile *ld, program_config *pce, drc_info *drc); | ||
119 | |||
120 | |||
121 | #ifdef __cplusplus | ||
122 | } | ||
123 | #endif | ||
124 | #endif | ||