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/codebook/hcb_5.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/codebook/hcb_5.h')
-rw-r--r-- | lib/rbcodec/codecs/libfaad/codebook/hcb_5.h | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libfaad/codebook/hcb_5.h b/lib/rbcodec/codecs/libfaad/codebook/hcb_5.h new file mode 100644 index 0000000000..0143482901 --- /dev/null +++ b/lib/rbcodec/codecs/libfaad/codebook/hcb_5.h | |||
@@ -0,0 +1,193 @@ | |||
1 | /* | ||
2 | ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | ||
3 | ** Copyright (C) 2003 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 | /* Binary search huffman table HCB_5 */ | ||
29 | |||
30 | |||
31 | static hcb_bin_pair hcb5[] ICONST_ATTR_FAAD_LARGE_IRAM = { | ||
32 | { /* 0 */ 0, { 1, 2 } }, | ||
33 | { /* 1 */ 1, { 0, 0 } }, /* 0 */ | ||
34 | { /* 2 */ 0, { 1, 2 } }, | ||
35 | { /* 3 */ 0, { 2, 3 } }, | ||
36 | { /* 4 */ 0, { 3, 4 } }, | ||
37 | { /* 5 */ 0, { 4, 5 } }, | ||
38 | { /* 6 */ 0, { 5, 6 } }, | ||
39 | { /* 7 */ 0, { 6, 7 } }, | ||
40 | { /* 8 */ 0, { 7, 8 } }, | ||
41 | { /* 9 */ 1, { -1, 0 } }, /* 1000 */ | ||
42 | { /* 10 */ 1, { 1, 0 } }, /* 1001 */ | ||
43 | { /* 11 */ 1, { 0, 1 } }, /* 1010 */ | ||
44 | { /* 12 */ 1, { 0, -1 } }, /* 1011 */ | ||
45 | { /* 13 */ 0, { 4, 5 } }, | ||
46 | { /* 14 */ 0, { 5, 6 } }, | ||
47 | { /* 15 */ 0, { 6, 7 } }, | ||
48 | { /* 16 */ 0, { 7, 8 } }, | ||
49 | { /* 17 */ 1, { 1, -1 } }, | ||
50 | { /* 18 */ 1, { -1, 1 } }, | ||
51 | { /* 19 */ 1, { -1, -1 } }, | ||
52 | { /* 20 */ 1, { 1, 1 } }, | ||
53 | { /* 21 */ 0, { 4, 5 } }, | ||
54 | { /* 22 */ 0, { 5, 6 } }, | ||
55 | { /* 23 */ 0, { 6, 7 } }, | ||
56 | { /* 24 */ 0, { 7, 8 } }, | ||
57 | { /* 25 */ 0, { 8, 9 } }, | ||
58 | { /* 26 */ 0, { 9, 10 } }, | ||
59 | { /* 27 */ 0, { 10, 11 } }, | ||
60 | { /* 28 */ 0, { 11, 12 } }, | ||
61 | { /* 29 */ 0, { 12, 13 } }, | ||
62 | { /* 30 */ 0, { 13, 14 } }, | ||
63 | { /* 31 */ 0, { 14, 15 } }, | ||
64 | { /* 32 */ 0, { 15, 16 } }, | ||
65 | { /* 33 */ 1, { -2, 0 } }, | ||
66 | { /* 34 */ 1, { 0, 2 } }, | ||
67 | { /* 35 */ 1, { 2, 0 } }, | ||
68 | { /* 36 */ 1, { 0, -2 } }, | ||
69 | { /* 37 */ 0, { 12, 13 } }, | ||
70 | { /* 38 */ 0, { 13, 14 } }, | ||
71 | { /* 39 */ 0, { 14, 15 } }, | ||
72 | { /* 40 */ 0, { 15, 16 } }, | ||
73 | { /* 41 */ 0, { 16, 17 } }, | ||
74 | { /* 42 */ 0, { 17, 18 } }, | ||
75 | { /* 43 */ 0, { 18, 19 } }, | ||
76 | { /* 44 */ 0, { 19, 20 } }, | ||
77 | { /* 45 */ 0, { 20, 21 } }, | ||
78 | { /* 46 */ 0, { 21, 22 } }, | ||
79 | { /* 47 */ 0, { 22, 23 } }, | ||
80 | { /* 48 */ 0, { 23, 24 } }, | ||
81 | { /* 49 */ 1, { -2, -1 } }, | ||
82 | { /* 50 */ 1, { 2, 1 } }, | ||
83 | { /* 51 */ 1, { -1, -2 } }, | ||
84 | { /* 52 */ 1, { 1, 2 } }, | ||
85 | { /* 53 */ 1, { -2, 1 } }, | ||
86 | { /* 54 */ 1, { 2, -1 } }, | ||
87 | { /* 55 */ 1, { -1, 2 } }, | ||
88 | { /* 56 */ 1, { 1, -2 } }, | ||
89 | { /* 57 */ 1, { -3, 0 } }, | ||
90 | { /* 58 */ 1, { 3, 0 } }, | ||
91 | { /* 59 */ 1, { 0, -3 } }, | ||
92 | { /* 60 */ 1, { 0, 3 } }, | ||
93 | { /* 61 */ 0, { 12, 13 } }, | ||
94 | { /* 62 */ 0, { 13, 14 } }, | ||
95 | { /* 63 */ 0, { 14, 15 } }, | ||
96 | { /* 64 */ 0, { 15, 16 } }, | ||
97 | { /* 65 */ 0, { 16, 17 } }, | ||
98 | { /* 66 */ 0, { 17, 18 } }, | ||
99 | { /* 67 */ 0, { 18, 19 } }, | ||
100 | { /* 68 */ 0, { 19, 20 } }, | ||
101 | { /* 69 */ 0, { 20, 21 } }, | ||
102 | { /* 70 */ 0, { 21, 22 } }, | ||
103 | { /* 71 */ 0, { 22, 23 } }, | ||
104 | { /* 72 */ 0, { 23, 24 } }, | ||
105 | { /* 73 */ 1, { -3, -1 } }, | ||
106 | { /* 74 */ 1, { 1, 3 } }, | ||
107 | { /* 75 */ 1, { 3, 1 } }, | ||
108 | { /* 76 */ 1, { -1, -3 } }, | ||
109 | { /* 77 */ 1, { -3, 1 } }, | ||
110 | { /* 78 */ 1, { 3, -1 } }, | ||
111 | { /* 79 */ 1, { 1, -3 } }, | ||
112 | { /* 80 */ 1, { -1, 3 } }, | ||
113 | { /* 81 */ 1, { -2, 2 } }, | ||
114 | { /* 82 */ 1, { 2, 2 } }, | ||
115 | { /* 83 */ 1, { -2, -2 } }, | ||
116 | { /* 84 */ 1, { 2, -2 } }, | ||
117 | { /* 85 */ 0, { 12, 13 } }, | ||
118 | { /* 86 */ 0, { 13, 14 } }, | ||
119 | { /* 87 */ 0, { 14, 15 } }, | ||
120 | { /* 88 */ 0, { 15, 16 } }, | ||
121 | { /* 89 */ 0, { 16, 17 } }, | ||
122 | { /* 90 */ 0, { 17, 18 } }, | ||
123 | { /* 91 */ 0, { 18, 19 } }, | ||
124 | { /* 92 */ 0, { 19, 20 } }, | ||
125 | { /* 93 */ 0, { 20, 21 } }, | ||
126 | { /* 94 */ 0, { 21, 22 } }, | ||
127 | { /* 95 */ 0, { 22, 23 } }, | ||
128 | { /* 96 */ 0, { 23, 24 } }, | ||
129 | { /* 97 */ 1, { -3, -2 } }, | ||
130 | { /* 98 */ 1, { 3, -2 } }, | ||
131 | { /* 99 */ 1, { -2, 3 } }, | ||
132 | { /* 00 */ 1, { 2, -3 } }, | ||
133 | { /* 01 */ 1, { 3, 2 } }, | ||
134 | { /* 02 */ 1, { 2, 3 } }, | ||
135 | { /* 03 */ 1, { -3, 2 } }, | ||
136 | { /* 04 */ 1, { -2, -3 } }, | ||
137 | { /* 05 */ 1, { 0, -4 } }, | ||
138 | { /* 06 */ 1, { -4, 0 } }, | ||
139 | { /* 07 */ 1, { 4, 1 } }, | ||
140 | { /* 08 */ 1, { 4, 0 } }, | ||
141 | { /* 09 */ 0, { 12, 13 } }, | ||
142 | { /* 10 */ 0, { 13, 14 } }, | ||
143 | { /* 11 */ 0, { 14, 15 } }, | ||
144 | { /* 12 */ 0, { 15, 16 } }, | ||
145 | { /* 13 */ 0, { 16, 17 } }, | ||
146 | { /* 14 */ 0, { 17, 18 } }, | ||
147 | { /* 15 */ 0, { 18, 19 } }, | ||
148 | { /* 16 */ 0, { 19, 20 } }, | ||
149 | { /* 17 */ 0, { 20, 21 } }, | ||
150 | { /* 18 */ 0, { 21, 22 } }, | ||
151 | { /* 19 */ 0, { 22, 23 } }, | ||
152 | { /* 20 */ 0, { 23, 24 } }, | ||
153 | { /* 21 */ 1, { -4, -1 } }, | ||
154 | { /* 22 */ 1, { 0, 4 } }, | ||
155 | { /* 23 */ 1, { 4, -1 } }, | ||
156 | { /* 24 */ 1, { -1, -4 } }, | ||
157 | { /* 25 */ 1, { 1, 4 } }, | ||
158 | { /* 26 */ 1, { -1, 4 } }, | ||
159 | { /* 27 */ 1, { -4, 1 } }, | ||
160 | { /* 28 */ 1, { 1, -4 } }, | ||
161 | { /* 29 */ 1, { 3, -3 } }, | ||
162 | { /* 30 */ 1, { -3, -3 } }, | ||
163 | { /* 31 */ 1, { -3, 3 } }, | ||
164 | { /* 32 */ 1, { -2, 4 } }, | ||
165 | { /* 33 */ 1, { -4, -2 } }, | ||
166 | { /* 34 */ 1, { 4, 2 } }, | ||
167 | { /* 35 */ 1, { 2, -4 } }, | ||
168 | { /* 36 */ 1, { 2, 4 } }, | ||
169 | { /* 37 */ 1, { 3, 3 } }, | ||
170 | { /* 38 */ 1, { -4, 2 } }, | ||
171 | { /* 39 */ 0, { 6, 7 } }, | ||
172 | { /* 40 */ 0, { 7, 8 } }, | ||
173 | { /* 41 */ 0, { 8, 9 } }, | ||
174 | { /* 42 */ 0, { 9, 10 } }, | ||
175 | { /* 43 */ 0, { 10, 11 } }, | ||
176 | { /* 44 */ 0, { 11, 12 } }, | ||
177 | { /* 45 */ 1, { -2, -4 } }, | ||
178 | { /* 46 */ 1, { 4, -2 } }, | ||
179 | { /* 47 */ 1, { 3, -4 } }, | ||
180 | { /* 48 */ 1, { -4, -3 } }, | ||
181 | { /* 49 */ 1, { -4, 3 } }, | ||
182 | { /* 50 */ 1, { 3, 4 } }, | ||
183 | { /* 51 */ 1, { -3, 4 } }, | ||
184 | { /* 52 */ 1, { 4, 3 } }, | ||
185 | { /* 53 */ 1, { 4, -3 } }, | ||
186 | { /* 54 */ 1, { -3, -4 } }, | ||
187 | { /* 55 */ 0, { 2, 3 } }, | ||
188 | { /* 56 */ 0, { 3, 4 } }, | ||
189 | { /* 57 */ 1, { 4, -4 } }, | ||
190 | { /* 58 */ 1, { -4, 4 } }, | ||
191 | { /* 59 */ 1, { 4, 4 } }, | ||
192 | { /* 60 */ 1, { -4, -4 } } | ||
193 | }; | ||