changeset 7608:850a1625bee4 libavcodec

More OKed AAC decoder code hunks
author superdump
date Mon, 18 Aug 2008 19:39:08 +0000
parents 87f68803080a
children 3f6fc60f1ed3
files aac.h aacdectab.h
diffstat 2 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/aac.h	Mon Aug 18 12:03:59 2008 +0000
+++ b/aac.h	Mon Aug 18 19:39:08 2008 +0000
@@ -232,6 +232,14 @@
     /** @} */
 
     /**
+     * @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.
      * @{
      */
--- a/aacdectab.h	Mon Aug 18 12:03:59 2008 +0000
+++ b/aacdectab.h	Mon Aug 18 19:39:08 2008 +0000
@@ -156,4 +156,19 @@
 
 // @}
 
+/* @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 */