Browse code

More OKed AAC decoder code hunks

Originally committed as revision 14828 to svn://svn.ffmpeg.org/ffmpeg/trunk

Robert Swain authored on 2008/08/19 04:39:08
Showing 2 changed files
... ...
@@ -232,6 +232,14 @@ typedef struct {
232 232
     /** @} */
233 233
 
234 234
     /**
235
+     * @defgroup temporary aligned temporary buffers (We do not want to have these on the stack.)
236
+     * @{
237
+     */
238
+    DECLARE_ALIGNED_16(float, buf_mdct[2048]);
239
+    DECLARE_ALIGNED_16(float, revers[1024]);
240
+    /** @} */
241
+
242
+    /**
235 243
      * @defgroup tables   Computed / set up during initialization.
236 244
      * @{
237 245
      */
... ...
@@ -156,4 +156,19 @@ static const uint16_t *swb_offset_128[] = {
156 156
 
157 157
 // @}
158 158
 
159
+/* @name tns_max_bands
160
+ * The maximum number of scalefactor bands on which TNS can operate for the long
161
+ * and short transforms respectively. The index to these tables is related to
162
+ * the sample rate of the audio.
163
+ * @{
164
+ */
165
+static const uint8_t tns_max_bands_1024[] = {
166
+    31, 31, 34, 40, 42, 51, 46, 46, 42, 42, 42, 39
167
+};
168
+
169
+static const uint8_t tns_max_bands_128[] = {
170
+    9, 9, 10, 14, 14, 14, 14, 14, 14, 14, 14, 14
171
+};
172
+// @}
173
+
159 174
 #endif /* FFMPEG_AACDECTAB_H */