More OKed AAC decoder code hunks
authorRobert Swain <robert.swain@gmail.com>
Mon, 18 Aug 2008 19:39:08 +0000 (19:39 +0000)
committerRobert Swain <robert.swain@gmail.com>
Mon, 18 Aug 2008 19:39:08 +0000 (19:39 +0000)
Originally committed as revision 14828 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/aac.h
libavcodec/aacdectab.h

index 91b18a1..a64497d 100644 (file)
@@ -232,6 +232,14 @@ typedef struct {
     /** @} */
 
     /**
+     * @defgroup temporary aligned temporary buffers (We do not want to have these on the stack.)
+     * @{
+     */
+    DECLARE_ALIGNED_16(float, buf_mdct[2048]);
+    DECLARE_ALIGNED_16(float, revers[1024]);
+    /** @} */
+
+    /**
      * @defgroup tables   Computed / set up during initialization.
      * @{
      */
index b7a9787..c10eb71 100644 (file)
@@ -156,4 +156,19 @@ static const uint16_t *swb_offset_128[] = {
 
 // @}
 
+/* @name tns_max_bands
+ * The maximum number of scalefactor bands on which TNS can operate for the long
+ * and short transforms respectively. The index to these tables is related to
+ * the sample rate of the audio.
+ * @{
+ */
+static const uint8_t tns_max_bands_1024[] = {
+    31, 31, 34, 40, 42, 51, 46, 46, 42, 42, 42, 39
+};
+
+static const uint8_t tns_max_bands_128[] = {
+    9, 9, 10, 14, 14, 14, 14, 14, 14, 14, 14, 14
+};
+// @}
+
 #endif /* FFMPEG_AACDECTAB_H */