summaryrefslogtreecommitdiff
path: root/libavcodec/aacdectab.h
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@gmail.com>2008-08-18 19:39:08 +0000
committerRobert Swain <robert.swain@gmail.com>2008-08-18 19:39:08 +0000
commitc7f4d983a4d9d73a50b104cc9eb51acc534cef20 (patch)
treeabd7ba290c0f56a401e91c57e15866ea462d12d3 /libavcodec/aacdectab.h
parente48891bd9b431f885392daec932e153abf70b625 (diff)
More OKed AAC decoder code hunks
Originally committed as revision 14828 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aacdectab.h')
-rw-r--r--libavcodec/aacdectab.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/aacdectab.h b/libavcodec/aacdectab.h
index b7a9787a30..c10eb71bd0 100644
--- a/libavcodec/aacdectab.h
+++ b/libavcodec/aacdectab.h
@@ -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 */